//
// This file stores site specific information that Javascript needs
// access to.  The site.template file is read by the software and 
// written out as site.js which is what the clients access.  
//
// Do NOT modify this file directly, it will be overwritten the next
// time that configuration is saved on the server.
//
var forceAgreement = true;
var SIMSWebLanguage = 'ENGLISH';
var SIMSWebLanguagesAvailable = 2;
var SIMSWebLanguages = new Array(SIMSWebLanguagesAvailable);
//
// Array of Languages:
SIMSWebLanguages[1]='ENGLISH';
SIMSWebLanguages[2]='SPANISH';
//
//                       
var SIMSWebDateForm            = '1';
var SIMSWebDateMask            = 'mm/dd/yyyy';
var Txt_Y                      = 'Y';
var Txt_N                      = 'N';
var Txt_AM_MinutesShort        = 'M';
var Txt_AM_HoursShort          = 'H';
var Txt_AM_DaysShort           = 'D';
var SIMSWebPhoneFormat         = 'American';
var ShowDisabledMenuItems      = '0'
var MemorizeUserName           = '-1'
var AllowOnlyHexAccountNumbers = '0'
//
SIMSWebDispoNames = new Array("Any Disposition");
SIMSWebDispoNames[1]='(a) CUSTOMER ERROR/ABORTED';
SIMSWebDispoNames[2]='(b) CUST. ABORT/DISP CXL\'D';
SIMSWebDispoNames[3]='(C) POLICE DISPATCHED';
SIMSWebDispoNames[4]='(d) FIRE DISPATCHED';
SIMSWebDispoNames[5]='(e) COMMENTS';
SIMSWebDispoNames[6]='(f) TRANSMISSION ERROR';
SIMSWebDispoNames[7]='(g) ADDITIONAL INFORMATION';
SIMSWebDispoNames[8]='(h) ACCOUNT TESTING';
SIMSWebDispoNames[9]='(i) A/C FAILURE';
SIMSWebDispoNames[10]='(j) LOW BATTERY';
SIMSWebDispoNames[11]='(k) TELCO TROUBLE';
SIMSWebDispoNames[12]='(l) CUSTOMER TESTING';
SIMSWebDispoNames[13]='(m) CALLER ID MISMATCH';
SIMSWebDispoNames[14]='(n) WIRELESS MISSED TEST';
SIMSWebDispoNames[15]='(o) DID NOT TEST';
SIMSWebDispoNames[16]='(p) EMS DISPATCHED';
SIMSWebDispoNames[17]='(q) SYSTEM TROUBLE';
SIMSWebDispoNames[18]='(r) UNDEFINED SIGNAL';
SIMSWebDispoNames[19]='(s) DISPATCH REFUSED';
SIMSWebDispoNames[20]='(t) DISPATCHED GUARD';
SIMSWebDispoNames[21]='(u) NOTIFY TECH ONLY';
SIMSWebDispoNames[22]='(v) LOG ONLY';
SIMSWebDispoNames[23]='(w) ACTUAL ALARM';
SIMSWebDispoNames[24]='Event Priority Downgraded';
SIMSWebDispoNames[25]='Placed Event On Hold';
//
//
var Array_OCDayCodes = new Array(OCDaysOfWeekTypes);
Array_OCDayCodes[1]='   ';
Array_OCDayCodes[2]='ALL';
Array_OCDayCodes[3]='MON';
Array_OCDayCodes[4]='M-T';
Array_OCDayCodes[5]='M-W';
Array_OCDayCodes[6]='MTH';
Array_OCDayCodes[7]='M-F';
Array_OCDayCodes[8]='M-S';
Array_OCDayCodes[9]='MWF';
Array_OCDayCodes[10]='TUE';
Array_OCDayCodes[11]='T&T';
Array_OCDayCodes[12]='WED';
Array_OCDayCodes[13]='W-T';
Array_OCDayCodes[14]='W-F';
Array_OCDayCodes[15]='THU';
Array_OCDayCodes[16]='FRI';
Array_OCDayCodes[17]='F-S';
Array_OCDayCodes[18]='SAT';
Array_OCDayCodes[19]='S-S';
Array_OCDayCodes[20]='SUN';
Array_OCDayCodes[21]='S-T';
//
var OCDaysOfWeekTypes = Array_OCDayCodes.length;
//
var MenuPrefix = '<font color="silver">'
var MenuPostfix = '</font>'
//
// The Txt_JavaScriptError variable holds the contents of the message that
// will appear to the user if there is a JavaScript error.  Because it
// is needed in all JavaScript files, it has to be located here instead of
// in the language specific files.  Under normal circumstances you
// shouldn't need to change it anyway.
//
var Txt_JavaScriptError = '******* AN ERROR HAS OCCURRED ******** \n \n' +
    'SIMSWeb has detected an error has occured in the client \n' +
    'side Javascript running in your browser to check data fields \n' +
    'for accuracy and completeness.  This can be caused by Firewall or \n' +
    'Ad blocking software which inhibits client side Javascript from \n' +
    'running properly.  You may have to set a permission to allow this site \n' +
    'to operate as intended.  If the error continues, you will need to \n' +
    'provide the following information to technical support: \n\n' +
    '--------------------------------------------------------------------- \n\n' +
    'Error details are below:'

//
//
//  Do NOT change anything with the javascript below or the web site
//  may no longer work as expected !
//
function xgetcookie(name) {
   //
   // Read a cookie from those currently available to this document.
   //
   var start = document.cookie.indexOf(name+"=");
   var allcookie = document.cookie
   var len = start+name.length+1;
   var cookiestart = document.cookie.substring(0,name.length)
   if ((!start) && (name != cookiestart)) return null;
   var thiscookie=''
   if (start != -1) {
          var end = document.cookie.indexOf(";",len);
          if (end == -1) end = document.cookie.length;
          thiscookie = document.cookie.substring(len,end);
   }
   if (thiscookie == 'null') { thiscookie = '' }
   return thiscookie;
}

var userLNG = xgetcookie('LNG');
if (userLNG != '') { SIMSWebLanguage = userLNG }

if (ShowDisabledMenuItems != '-1') {
    //
    // This causes the text in the disabled menu items to be inside a
    // comment, which effectively makes the text disappear.
    //
        MenuPrefix = '<!-- '
        MenuPostfix = ' -->'
}
//
// Common variables follow, DO NOT MODIFY THEM !!!
//
var dq = '"';
var sq = "'";
var lt = '<';
var gt = '>';
var nb = '&nbsp;';
var CR = unescape('%0d');
var LF = unescape('%0a');
var CRLF = CR + LF
var temp = new Date();
var BrowserGMTOffset = temp.getTimezoneOffset();

