﻿<!--
var curX, curY;

function Move(evt) {
	var e = evt ? evt : event;
	
	curX = (screenLeft + e.x);
	curY = (screenTop + e.y);
}

if (document.layers)
	document.captureEvents(Event.MOUSEMOVE); 

document.onmousemove = Move;

var preloadFlag = false;

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = _rootPath + arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		//Nav01 = newImage("/images/navigation/home-OVER.png");
		//Nav02 = newImage("/images/navigation/consumer-services-OVER.png");
		//Nav03 = newImage("/images/navigation/commercial-services-OVER.png");
		//Nav04 = newImage("/images/navigation/client-login-OVER.png");
		//Nav05 = newImage("/images/navigation/contact-us-OVER.png");
		//Nav06 = newImage("/images/navigation/careers-OVER.png");

		preloadFlag = true;
	}
}

var winLegal = null;
function goPrivacy() {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('privacy.aspx', 'winLegal', windowFeatures);
	winLegal.focus();
}

function goNotices(form) {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('notices.aspx', 'winLegal', windowFeatures);
	winLegal.focus();
}

var winLegal = null;
function goApplicationPrivacy() {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('Content/application-privacy.htm', 'winLegal', windowFeatures);
	winLegal.focus();
}

function goApplicationNotices(form) {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('Content/application-notices.htm', 'winLegal', windowFeatures);
	winLegal.focus();
}

var winFeePopUp = null;
function goFeePopUp(anchor){
	var windowWidth = 850;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	if ((winFeePopUp != null) && !winFeePopUp.closed){
		winFeePopUp.close();
	};
	
	winFeePopUp = open('fee-structure.aspx' + anchor, 'winFeePopUp', windowFeatures);
	winFeePopUp.focus();
}

function showDDLIfChecked(chk, ddl) {
	document.getElementById(ddl).disabled = ! document.getElementById(chk).checked;
}

function checkBrowser(){var aB=navigator.userAgent;var aJ=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(aJ.exec(aB)!=null){rv=parseFloat(RegExp.$1)}if(navigator.appName=="Microsoft Internet Explorer"&&rv<=6){var bC="Did you know that your Internet Explorer is out of date?";var bE="To get the best possible experience using our website we recommend that you upgrade to a newer version or other web browser. A list of the most popular web browsers can be found below.";var bG="Just click on the icons to get to the download page";var bK="Internet Explorer 8+";var aZ="Firefox 3+";var a0="Safari 4+";var a2="Opera 10.5+";var a3="Chrome 6+";var bl="http://www.microsoft.com/windows/Internet-explorer/default.aspx";var bn="http://www.mozilla.com/firefox/";var a8="http://www.apple.com/safari/download/";var a9="http://www.opera.com/download/";var aX="http://www.google.com/chrome";var bz=document.getElementsByTagName("body")[0];var a5=document.createElement("div");var a7=document.createElement("div");var a6=document.createElement("h1");var bu=document.createElement("p");var bv=document.createElement("p");var aG=document.createElement("ul");var aS=document.createElement("li");var aU=document.createElement("li");var aV=document.createElement("li");var aW=document.createElement("li");var ba=document.createElement("li");var aI=document.createElement("div");var aK=document.createElement("div");var aM=document.createElement("div");var aO=document.createElement("div");var aP=document.createElement("div");var bw=document.createElement("div");var bs=document.createElement("div");var ay=document.createElement("div");var az=document.createElement("div");var aA=document.createElement("div");bz.appendChild(a7);bz.appendChild(a5);a5.appendChild(a6);a5.appendChild(bu);a5.appendChild(bv);a5.appendChild(aG);aG.appendChild(aS);aG.appendChild(aU);aG.appendChild(aV);aG.appendChild(aW);aG.appendChild(ba);aS.appendChild(aI);aU.appendChild(aK);aV.appendChild(aM);aW.appendChild(aO);ba.appendChild(aP);aS.appendChild(bw);aU.appendChild(bs);aV.appendChild(ay);aW.appendChild(az);ba.appendChild(aA);a5.setAttribute("id","_d");a7.setAttribute("id","_l");a6.setAttribute("id","_h");bu.setAttribute("id","_p1");bv.setAttribute("id","_p2");aG.setAttribute("id","_ul");aS.setAttribute("id","_li1");aU.setAttribute("id","_li2");aV.setAttribute("id","_li3");aW.setAttribute("id","_li4");ba.setAttribute("id","_li5");aI.setAttribute("id","_ico1");aK.setAttribute("id","_ico2");aM.setAttribute("id","_ico3");aO.setAttribute("id","_ico4");aP.setAttribute("id","_ico5");bw.setAttribute("id","_lit1");bs.setAttribute("id","_lit2");ay.setAttribute("id","_lit3");az.setAttribute("id","_lit4");aA.setAttribute("id","_lit5");var bq=document.documentElement.clientWidth;var bB=document.documentElement.clientHeight;var bI=document.getElementById("_l");bI.style.width=bq+"px";bI.style.height=bB*3+"px";bI.style.position="absolute";bI.style.top="0px";bI.style.left="0px";bI.style.filter="alpha(opacity=30)";bI.style.background="#fff";bI.style.zIndex=1000;var bF=document.getElementById("_d");_ddw=660;_ddh=260;bF.style.width=_ddw+"px";bF.style.height=_ddh+"px";bF.style.position="absolute";bF.style.top=((bB-_ddh)/2)+"px";bF.style.left=((bq-_ddw)/2)+"px";bF.style.padding="20px";bF.style.background="#fff";bF.style.border="1px solid #ccc";bF.style.fontFamily="'Lucida Grande','Lucida Sans Unicode',Arial,Verdana,sans-serif";bF.style.listStyleType="none";bF.style.color="#4F4F4F";bF.style.fontSize="12px";bF.style.zIndex=1001;a6.appendChild(document.createTextNode(bC));var bo=document.getElementById("_h");bo.style.display="block";bo.style.fontSize="1.3em";bo.style.marginBottom="0.5em";bo.style.color="#333";bo.style.fontFamily="Helvetica,Arial,sans-serif";bo.style.fontWeight="bold";bu.appendChild(document.createTextNode(bE));var aD=document.getElementById("_p1");aD.style.marginBottom="1em";bv.appendChild(document.createTextNode(bG));var br=document.getElementById("_p2");br.style.marginBottom="1em";var bd=document.getElementById("_ul");bd.style.listStyleImage="none";bd.style.listStylePosition="outside";bd.style.listStyleType="none";bd.style.margin="0 px auto";bd.style.padding="0px";bd.style.paddingLeft="10px";var a1=document.getElementById("_li1");var aH=document.getElementById("_li2");var aQ=document.getElementById("_li3");var bk=document.getElementById("_li4");var aC=document.getElementById("_li5");var aN=a1.style;var aT=aH.style;var bb=aQ.style;var bf=bk.style;var bi=aC.style;aN.background=aT.background=bb.background=bf.background=bi.background="transparent url('Images/background_browser.gif') no-repeat scroll left top";aN.cursor=aT.cursor=bb.cursor=bf.cursor=bi.cursor="pointer";a1.onclick=function(){window.location=bl};aH.onclick=function(){window.location=bn};aQ.onclick=function(){window.location=a8};bk.onclick=function(){window.location=a9};aC.onclick=function(){window.location=aX};aN.styleFloat=aT.styleFloat=bb.styleFloat=bf.styleFloat=bi.styleFloat="left";aN.width=aT.width=bb.width=bf.width=bi.width="120px";aN.height=aT.height=bb.height=bf.height=bi.height="122px";aN.margin=aT.margin=bb.margin=bf.margin=bi.margin="0 10px 10px 0";var bm=document.getElementById("_ico1");var aE=document.getElementById("_ico2");var by=document.getElementById("_ico3");var aY=document.getElementById("_ico4");var aF=document.getElementById("_ico5");var bx=bm.style;var bA=aE.style;var bD=by.style;var bH=aY.style;var bJ=aF.style;bx.width=bA.width=bD.width=bH.width=bJ.width="100px";bx.height=bA.height=bD.height=bH.height=bJ.height="100px";bx.margin=bA.margin=bD.margin=bH.margin=bJ.margin="1px auto";bx.background="transparent url('Images/browser_ie.gif') no-repeat scroll left top";bA.background="transparent url('Images/browser_firefox.gif') no-repeat scroll left top";bD.background="transparent url('Images/browser_safari.gif') no-repeat scroll left top";bH.background="transparent url('Images/browser_opera.gif') no-repeat scroll left top";bJ.background="transparent url('Images/browser_chrome.gif') no-repeat scroll left top";bw.appendChild(document.createTextNode(bK));bs.appendChild(document.createTextNode(aZ));ay.appendChild(document.createTextNode(a0));az.appendChild(document.createTextNode(a2));aA.appendChild(document.createTextNode(a3));var a4=document.getElementById("_lit1");var aL=document.getElementById("_lit2");var be=document.getElementById("_lit3");var bt=document.getElementById("_lit4");var bp=document.getElementById("_lit5");var aR=a4.style;var bc=aL.style;var bg=be.style;var bj=bt.style;var bh=bp.style;aR.color=bc.color=bg.color=bj.color=bh.color="#808080";aR.fontSize=bc.fontSize=bg.fontSize=bj.fontSize=bh.fontSize="0.8em";aR.height=bc.height=bg.height=bj.height=bh.height="18px";aR.lineHeight=bc.lineHeight=bg.lineHeight=bj.lineHeight=bh.lineHeight="17px";aR.margin=bc.margin=bg.margin=bj.margin=bh.margin="1px auto";aR.width=bc.width=bg.width=bj.width=bh.width="118px";aR.textAlign=bc.textAlign=bg.textAlign=bj.textAlign=bh.textAlign="center"}};

function pageInit(){
	preloadImages();
	checkBrowser();
}

var dtCh= "/";
var minYear=1900;
var maxYear=2100;

function isInteger(s){
	var i;
		for (i = 0; i < s.length; i++){   
				// Check that current character is number.
				var c = s.charAt(i);
				if (((c < "0") || (c > "9"))) return false;
		}
		// All characters are numbers.
		return true;
}

function stripCharsInBag(s, bag){
	var i;
		var returnString = "";
		// Search through string's characters one by one.
		// If character is not in bag, append to returnString.
		for (i = 0; i < s.length; i++){   
				var c = s.charAt(i);
				if (bag.indexOf(c) == -1) returnString += c;
		}
		return returnString;
}

function daysInFebruary (year){
	// February has 29 days in any year evenly divisible by four,
		// EXCEPT for centurial years which are not also divisible by 400.
		return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) {
	for (var i = 1; i <= n; i++) {
		this[i] = 31
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
	 } 
	 return this
}

function isDate(dtStr){
	var daysInMonth = DaysArray(12)
	var pos1=dtStr.indexOf(dtCh)
	var pos2=dtStr.indexOf(dtCh,pos1+1)
	var strMonth=dtStr.substring(0,pos1)
	var strDay=dtStr.substring(pos1+1,pos2)
	var strYear=dtStr.substring(pos2+1)
	strYr=strYear
	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1){
		//alert("The date format should be : mm/dd/yyyy")
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		//alert("Please enter a valid month")
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
		//alert("Please enter a valid day")
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
		//alert("Please enter a valid 4 digit year between "+minYear+" and "+maxYear)
		return false
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
		//alert("Please enter a valid date")
		return false
	}
return true
}

var winSummary = null;
function viewSummary(){
	var windowWidth = 400;
	var windowHeight = 600;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';

	if ((winSummary != null) && !winSummary.closed) {
		winSummary.close();
	};
	
	winSummary = open('view-summary.aspx', 'winSummary', windowFeatures);
	winSummary.focus();
}
// -->
