function toggle(who2, who3, who4, who5,who6,bkg_image,bkg_div) 
{
		document.getElementById(who2).style.display =  "block";
		document.getElementById(who3).style.display = "none";
		document.getElementById(who4).style.display = "none";
		document.getElementById(who5).style.display = "none";
		document.getElementById(who6).style.display = "none";
		
		//document.getElementById(bkg_div).style.background ="#00ffcc"
		//document.getElementById(bkg_div).style.backgroundImage = "resources/images/img_empowerbanner.gif"; 
		//image1 = "url("+bkg_image+")";
		//alert(image1);
		document.getElementById(bkg_div).style.background = "url("+bkg_image+")";
		
}

function pulldownmenu(type,mainpage)
{
	var showmenu = document.getElementById("pulldown"+type);
	if(mainpage == 1){var showcontent = document.getElementById("content"+type);}
	for(i=1;i<=6;i++)
	{
	var hidemenu = document.getElementById("pulldown"+i);
	hidemenu.style.display = "none";
		if(mainpage == 1)
		{
		var hidecontent = document.getElementById("content"+i);
		hidecontent.style.display = "none";
		}
	}
	showmenu.style.display = "block";
	if(mainpage == 1){showcontent.style.display = "block";}
}


// hotjob iframe//
function GetXmlHttpObject(){
	 var xmlHttp=null;
	 try
	   {
	   // Firefox, Opera 8.0+, Safari
	   xmlHttp=new XMLHttpRequest();
	   }
	 catch (e)
	   {
	   // Internet Explorer
	   try
	     {
	     xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	     }
	   catch (e)
	     {
	     xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	     }
	   }
	 return xmlHttp;
}
var xmlHttp
function sendvalue(pageurl,param,targetDiv){
	targetAjaxDiv = targetDiv;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null){
	  alert ("Your browser does not support AJAX!");
	  return;
	 } 
	var url=pageurl;
	url=url+"?"+param;
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
function stateChanged(){ 
	if (xmlHttp.readyState==4){ 
		document.getElementById(targetAjaxDiv).innerHTML=xmlHttp.responseText;
	}
}
