/**********************************************************************************************		Author:  Jaison Jacob		Last Modified:  12 DEC 2006		Parameters: 		Purpose: Check to see if the XML Source is down***********************************************************************************************/function notifyXMLErrorCode(url) {var xml = new ActiveXObject("MSXML2.DOMDocument.4.0");xml.async = false;xml.load(url);if (xml.parseError.errorCode != 0) {var errorText = 'Xml Load Error:'+xml.parseError.reason +' (unable to download the data from the url '+ url +')'var loc =window.location.toString().toLowerCase();domainURL= loc.substring(0,loc.indexOf('.nsf')) +'.nsf/notify+XML+Errors?OpenAgent'makeRequest(domainURL +'&Id1=JobListLoadError&Id2=' +errorText )}}/**********************************************************************************************		Author:  Jaison Jacob		Last Modified:  12 DEC 2006		Parameters: 		Purpose: Parse the error text and error codes in the XML data received***********************************************************************************************/function notifyXMLDataError(errorText) {var loc =window.location.toString().toLowerCase();domainURL= loc.substring(0,loc.indexOf('.nsf')) +'.nsf/notify+XML+Errors?OpenAgent'makeRequest(domainURL +'&Id1=JobListDataError&Id2=' +errorText )}/**********************************************************************************************		Author:  Jaison Jacob		Last Modified:  18 DEC 2006		Parameters: 		Purpose: Check to see if the Job Details XML Source is down***********************************************************************************************/function notifyJobDetailsErrorCode(url) {var xml = new ActiveXObject("MSXML2.DOMDocument.4.0");xml.async = false;xml.load(url);if (xml.parseError.errorCode != 0) {var errorText = 'Xml Job Details Load Error:'+xml.parseError.reason +' (unable to download the data from the url '+ url +')'var loc =window.location.toString().toLowerCase();domainURL= loc.substring(0,loc.indexOf('.nsf')) +'.nsf/notify+XML+Errors?OpenAgent'makeRequest(domainURL +'&Id1=JobDetailsLoadError&Id2=' +errorText )}}/**********************************************************************************************		Author:  Jaison Jacob		Last Modified:  18 DEC 2006		Parameters: 		Purpose: Parse the error text and error codes in the Job Details XML data received***********************************************************************************************/function notifyJobDetailsDataError(errorText) {var loc =window.location.toString().toLowerCase();domainURL= loc.substring(0,loc.indexOf('.nsf')) +'.nsf/notify+XML+Errors?OpenAgent'makeRequest(domainURL +'&Id1=JobDetailsDataError&Id2=' +errorText )}/**********************************************************************************************		Author:  Jaison Jacob		Last Modified:  12 DEC 2006		Parameters: 		Purpose: Notify admin team in the background***********************************************************************************************/function makeRequest(url) {        http_request = false;        if (window.XMLHttpRequest) { // Mozilla, Safari,...            http_request = new XMLHttpRequest();            if (http_request.overrideMimeType) {                http_request.overrideMimeType('text/xml');                // See note below about this line            }        } else if (window.ActiveXObject) { // IE            try {                http_request = new ActiveXObject("Msxml2.XMLHTTP");            } catch (e) {                try {                    http_request = new ActiveXObject("Microsoft.XMLHTTP");                } catch (e) {}            }        }        if (!http_request) {            //alert('Giving up :( Cannot create an XMLHTTP instance');            return false;        }        http_request.onreadystatechange = alertContents;        http_request.open('GET', url, true);        http_request.send(null);    }    function alertContents() {        if (http_request.readyState == 4) {            if (http_request.status == 200) {               responseText =http_request.responseText;}            else { } //alert('There was a problem with the request.');   }        }      }