function newAccount(option)
 {
 
 
	 xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
//alert(option);
	var url="js/client_signup.php";
	url=url+"?option="+option;
	
	url=url+"&sid="+Math.random();
	
	//alert(url);
	xmlHttp.onreadystatechange=chngNewEmployer;
	xmlHttp.open("GET",url,true);
	xmlHttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
	xmlHttp.send(null);
   
}
function chngNewEmployer() 
{ 
   if(xmlHttp.readyState==1)
	{	
	    document.getElementById("main_body").innerHTML="";
	    document.getElementById("main_body").innerHTML="<br><br><br><div id='loading' align='center' ><img src='./image/loader.gif' />&nbsp;please wait....</div>"; 
		 }
   if (xmlHttp.readyState==4)
    {

		if(xmlHttp.status==200)
			{ 
			
			     document.getElementById("main_body").innerHTML=xmlHttp.responseText; 
			
			}else if(xmlHttp.status==404)
				document.getElementById("main_body").innerHTML = "Page Does not Exist";
			else	//for other error
					document.getElementById("main_body").innerHTML = "Error:".xmlHttp.status; 	
		
			
			
			}
	
	}
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;
}
	
