//jobtitle 
<!-- created by mahesh yadav on 11 oct 2008 passing the page and sub1 in js function -->
var xmlHttp

function search_job_by_jobtitle(str,page,sub1)
{ 
document.getElementById('show_default').style.display='none';
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
var currentTime = new Date()
/*   var url_next='ajaxmenu.php?id=' + id + "&dt=" +currentTime; */ 
var url="search_result_job.php";
url=url+"?jobtitle="+str+"&page="+page+"&sub1="+sub1+"&dt=" +currentTime;
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("search_result").innerHTML=xmlHttp.responseText 
 } 
}

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;
}





