//
// 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 SIMSWebLanguage = 'ENGLISH';
var SIMSWebLanguagesAvailable = 5;
var SIMSWebLanguages = new Array(SIMSWebLanguagesAvailable);
//
// Array of Languages:
SIMSWebLanguages[1]='BULGARIAN';
SIMSWebLanguages[2]='DUTCH';
SIMSWebLanguages[3]='ENGLISH';
SIMSWebLanguages[4]='FRENCH';
SIMSWebLanguages[5]='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      = '-1'
var MemorizeUserName           = '-1'
var AllowOnlyHexAccountNumbers = '-1'
//
SIMSWebDispoNames = new Array("Any Disposition");
SIMSWebDispoNames[1]='FALSE-NOT DISPATCHED     A';
SIMSWebDispoNames[2]='Subsequent Alarm         B';
SIMSWebDispoNames[3]='OPENING/CLOSING SIGNAL   C';
SIMSWebDispoNames[4]='Cancel Code              D';
SIMSWebDispoNames[5]='DISPATCHED               E';
SIMSWebDispoNames[6]='Trouble                  F';
SIMSWebDispoNames[7]='ON TEST/OFF TEST         G';
SIMSWebDispoNames[8]='Dispatched & cancelled   H';
SIMSWebDispoNames[9]='OTHER                    I';
SIMSWebDispoNames[10]='Breakin - Real           J';
SIMSWebDispoNames[11]='DISREGARDED PER COMMENTS K';
SIMSWebDispoNames[12]='Line cut - not disp      L';
SIMSWebDispoNames[13]='DISPATCHED BY GUARDCO    M';
SIMSWebDispoNames[14]='Keyholder will handle    N';
SIMSWebDispoNames[15]='OPERATOR COMMENTS        O';
SIMSWebDispoNames[16]='API   SERVICE FLAT       P';
SIMSWebDispoNames[17]='REMINDER DONE            Q';
SIMSWebDispoNames[18]='DISPATCH PER             R';
SIMSWebDispoNames[19]='FIRE/MEDICAL DISPATCH    S';
SIMSWebDispoNames[20]='TROUBLE/RESTORE          T';
SIMSWebDispoNames[21]='GUARD DISPATCH DIRECT    U';
SIMSWebDispoNames[22]='GUARD DISPATCH FLAT      V';
SIMSWebDispoNames[23]='SERVICE LOGIN/OUT        Y';
SIMSWebDispoNames[24]='Account Priority Reduced';
SIMSWebDispoNames[25]='Placed Account 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();

