
function fmSubmit(siteId,pageId,menuId,ItemId){
	
	/*alert("siteId "+siteId);
	alert("page "+pageId);
	alert("menuId "+menuId);
	alert("ItemId "+ItemId);*/
	
	document.forms[0].hidNextSiteId.value = siteId;	
	document.forms[0].hidNextPageId.value = pageId;	
	document.forms[0].hidNextMenuId.value = menuId;
	document.forms[0].hidNextItemId.value = ItemId;		
	document.forms[0].submit();
}

function invokeMenuLink(pageId,siteId,menuId){

	document.forms[0].hidMapSelectedState.value = "";
	document.forms[0].hidNextSiteId.value = siteId;	
	document.forms[0].hidNextPageId.value = pageId;
	document.forms[0].hidNextMenuId.value = menuId;
	document.forms[0].submit();
}



//For all menu and internal page links....
function invokeLink(pageId){	
	document.forms[0].hidNextSiteId.value = "";	
	document.forms[0].hidNextPageId.value = pageId;
	document.forms[0].submit();
}

//For invoking homeLink.. 
function invokeHomePage(idval){	
	document.forms[0].hidHomePage.value = idval.id;	
	document.forms[0].submit();
}

function invokePageContent(pageId,siteId){
	document.forms[0].hidNextSiteId.value = siteId;	
	document.forms[0].hidNextPageId.value = pageId;
	document.forms[0].submit();
}

function invokeFooterInfo(pageId,siteId){
	window.open("?hidNextSiteId="+siteId+"&hidNextPageId="+pageId,"myNewWin","scrollbars=yes,resizable");	
}

function fetchStateDetails(state){
	
document.forms[0].hidMapSelectedState.value = state;
document.forms[0].hidNextSiteId.value = "12";	
document.forms[0].hidNextPageId.value = "19";
document.forms[0].submit();
}


function GetState(st){
	var state;
	var path;
	path = "ES_OurWholesaleBrokers_2.htm#" + st;
	window.navigate(path);
}
function revpage(){
	//window.navigate("AgentMap.htm");
	window.navigate("agentsearch.asp");

}
function clr(){
		menuspace.innerHTML = "";
}

function printWindow(){
	browserVersion = parseInt(navigator.appVersion)
	if (browserVersion >= 4) window.print()
	}

