<!--
function ValidateForm()
{
	var strErr = "";
	
	var tmpZip = trim(document.quote.zip.value);
	document.quote.zip.value = tmpZip;
	if (tmpZip.search(/^\d{5}/) == -1 ||  tmpZip.length > 5) {
		strErr = strErr + " \n Zip Code is required and must be in the format: \n\n 00000.\n";
	}
/*	if (!document.getQuoteForm.Insured[0].checked && !document.getQuoteForm.Insured[1].checked) {
		strErr = strErr + "\n Currently Insured is required and you must select: \n\n Yes or No.\n";
	}
*/
	if (strErr != "") {
		alert(strErr);
		return false;
	}
	return true;
}

function trim(str){
	return((" "+ str).replace(/^\s*([\s\S]*\S+)\s*$|^\s*$/,"$1"));
}

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

function popupCenter(filename,xWindow,yWindow,instruct){
    var myWidth=0, myHeight=0, xOffset, yOffset;
    if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        xOffset = window.screenLeft+(document.documentElement.clientWidth-xWindow)/2;
        yOffset = window.screenTop+(document.documentElement.clientHeight-yWindow)/2;
    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        xOffset = window.screenLeft+(document.body.clientWidth-xWindow)/2;
        yOffset = window.screenTop+(document.body.clientHeight-yWindow)/2;
    }else if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
        xOffset = window.screenX+(window.outerWidth-xWindow)/2;
        yOffset = window.screenY+(window.outerHeight-yWindow)/2;
    }
    window.open(filename,'newwindow','width='+xWindow+',height='+yWindow+',top='+yOffset+',left='+xOffset+instruct);
    return false;
}

	  function swapImg1() {
			var img1 = "url(/img/button_sNavTopOn.png)";
			var img2 = "url(/img/button_sNavMiddleOff.png)";
			var img3 = "url(/img/button_sNavBottomOff.png)";
			document.getElementById('sNav_li1').style.backgroundImage = img1;
			document.getElementById('sNav_li2').style.backgroundImage = img2;
			document.getElementById('sNav_li3').style.backgroundImage = img2;
			document.getElementById('sNav_li4').style.backgroundImage = img3;
      }
	  function swapImg2() {
			var img1 = "url(/img/button_sNavTopOff.png)";
			var img2 = "url(/img/button_sNavMiddleOn.png)";
			var img3 = "url(/img/button_sNavMiddleOff.png)";
			var img4 = "url(/img/button_sNavBottomOff.png)";
			document.getElementById('sNav_li1').style.backgroundImage = img1;
			document.getElementById('sNav_li2').style.backgroundImage = img2;
			document.getElementById('sNav_li3').style.backgroundImage = img3;
			document.getElementById('sNav_li4').style.backgroundImage = img4;
      }
	  function swapImg3() {
			var img1 = "url(/img/button_sNavTopOff.png)";
			var img2 = "url(/img/button_sNavMiddleOff.png)";
			var img3 = "url(/img/button_sNavMiddleOn.png)";
			var img4 = "url(/img/button_sNavBottomOff.png)";
			document.getElementById('sNav_li1').style.backgroundImage = img1;
			document.getElementById('sNav_li2').style.backgroundImage = img2;
			document.getElementById('sNav_li3').style.backgroundImage = img3;
			document.getElementById('sNav_li4').style.backgroundImage = img4;
      }
 	 function swapImg4() {
			var img1 = "url(/img/button_sNavTopOff.png)";
			var img2 = "url(/img/button_sNavMiddleOff.png)";
			var img3 = "url(/img/button_sNavMiddleOff.png)";
			var img4 = "url(/img/button_sNavBottomOn.png)";
			document.getElementById('sNav_li1').style.backgroundImage = img1;
			document.getElementById('sNav_li2').style.backgroundImage = img2;
			document.getElementById('sNav_li3').style.backgroundImage = img3;
			document.getElementById('sNav_li4').style.backgroundImage = img4;
      }
	  
-->
