﻿// JScript File
	function proceed(bFlag){
		with(document.frmZip){ 
			if (zip.value == '<%= msgZipCode %>') {return false;}
			
			var strActionPage = new String();
			strActionPage	= "<% call RedirecttoIQuote(True) %>";		
			arActionPage	= strActionPage.split("'");
			arActionPage	= arActionPage[1].split("?");
			strActionPage = arActionPage[0] + '?source=&criteria=&referralid=71253'
			if(strActionPage.length == 0){ strActionPage = "https://iquote.responseinsurance.com/default.aspx?source=&criteria=&referralid=71253";}
			if (strActionPage.indexOf('?') == -1) {strActionPage = strActionPage + '?'}		
			method = "post";
			var search_term = 'sitedown.asp';
			var str = document.URL;
		   var url_check = strActionPage.indexOf( search_term );
			action = strActionPage + "&action=new";

			if (bFlag) {submit();}
			return true;
		}		
	}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("dmenu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {						
				this.className+="over";		
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}

}

function updateTopMenu(topMenuID, mouseBrowseType){	
	navRoot = document.getElementById(topMenuID);
	switch(mouseBrowseType){
	case 'over': 
		navRoot.className = 'topmenuliover';
		break;
	case 'out':
		navRoot.className = 'topmenuli';	
		break;
	}	
}
window.onload=startList;
