<!--
var objXml = null;
function Co3ScriptObject() {
	this.loaderInterval = null;
}

function getClientTime() {
	var date = new Date();
	return(date);
}
function getXmlHttpProperty(strMethod,strUrl,strXPath,strType) {
	
	var rtnValue = null;
	var XmlDoc = null;
	if (this.Browser.ie) {
		objXml = new ActiveXObject("MSXML2.XMLHTTP");
		XmlDoc = new ActiveXObject("Microsoft.XMLDOM");
		objXml.open(strMethod,strUrl,false);
		objXml.send(null);
		
		XmlDoc = objXml.responseXML;
		if (strType == "property") {
			rtnValue = XmlDoc.selectSingleNode(strXPath).text;
		}
		
	} else {
		objXml = new XMLHttpRequest();
		objXml.open(strMethod,strUrl,false);
		objXml.send(null);
		
		XmlDoc = objXml.responseXML;
		if (strType == "property") {
			var splitXpath = strXPath.split('/');
			var xx = XmlDoc.getElementsByTagName(splitXpath[splitXpath.length-1]);
			rtnValue = xx[0].firstChild.data;
		}
	}
	
	if (strType == "object") {
		rtnValue = XmlDoc;
	}
	return(rtnValue);
}
function getServerTime() {		
	
	var rtnValue = this.AjaxRequest("GET","/CustomASP/server.asp","/response/time","property");
	var date = new Date(rtnValue);
	return(date);
}
function getHolidayDates() {
	var dates = new Array();
	var val = this.AjaxRequest("GET","/CustomASP/holidays.asp","/response/dato","object");
	var xmlDocument = val;
	if (this.Browser.ie) {
		var Nodes = xmlDocument.selectNodes("/response/dato");
		for (i = 0; i < Nodes.length; i++) {
			var myDate = new Date(Nodes[i].firstChild.data);
			dates[i] = myDate;
		}
	} else {
		var Nodes = xmlDocument.getElementsByTagName("dato");
		for (i = 0; i < Nodes.length; i++) {
			var myDate = new Date(Nodes[i].firstChild.data);
			dates[i] = myDate;
		}
	}
	return(dates);
}
function browser() {
	this.ver=navigator.appVersion;
	this.agent=navigator.userAgent.toLowerCase();
	this.dom=document.getElementById?1:0;
	this.op=window.opera;
	this.moz=(this.agent.indexOf("gecko")>-1||window.sidebar);
	this.ie=this.agent.indexOf("msie")>-1&&!this.op;
	if(this.ie){
		this.ie5=(this.agent.indexOf("msie 5")>-1);
		this.ie55=(this.ie5&&this.agent.indexOf("msie 5.5")>-1);
		this.ie6=(this.dom&&!this.ie4&&!this.ie5&&!this.ie55&&this.agent.indexOf("msie 6")>-1);
		this.ie7=this.dom&&!this.ie4&&!this.ie5&&!this.ie55&&!this.ie6;
	}
	this.mac=(this.agent.indexOf("mac")>-1);
	return this;
}
function weekDayCounter(objStartDate, objEndDate) {   
    var weekdayCount = 0;
    objStartDate.setDate(objStartDate.getDate()+1);
    while (objStartDate <= objEndDate) {
        if (objStartDate.getDay() > 0 && objStartDate.getDay() < 6) {
            weekdayCount++;
        }
        objStartDate.setDate(objStartDate.getDate()+1);
    }
    return(weekdayCount);
}
function isWeekday(objDate) {
    var rtnValue = false;

    if (objDate.getDay() > 0 && objDate.getDay() < 6) {
        rtnValue = true
    }
    return(rtnValue);
}
function containsFourNumbers(strInput) {
    var rtnValue = false;
    var checkChars = "0123456789";
    var numberCounter = 0;
    for (i = 0; i < strInput.length; i++) {
        if (checkChars.indexOf(strInput.substr(i,1)) >= 0) {
            numberCounter++;
        }
    }
    if (numberCounter == 4) {
        rtnValue = true;
    }
    return(rtnValue);
}
Co3ScriptObject.prototype.AjaxRequest = getXmlHttpProperty;
Co3ScriptObject.prototype.GetClientTime = getClientTime;
Co3ScriptObject.prototype.GetServerTime = getServerTime;
Co3ScriptObject.prototype.Browser = new browser();
Co3ScriptObject.prototype.GetHolidays = getHolidayDates;
Co3ScriptObject.prototype.GetWeekdays = weekDayCounter;
Co3ScriptObject.prototype.IsWeekday = isWeekday;
Co3ScriptObject.prototype.FourNumberCheck = containsFourNumbers;

var objScript = new Co3ScriptObject();
-->
