// JavaScript Document
//Developed by Premanand Tripathi on 18/09/2008 this page is ajax file of function that will search job according to desired //province 
<!-- modified by mahesh yadav on 19 sep 2008 passing the page and sub1 in js function -->
var xmlHttp
function search_job_by_province(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+"?province="+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;
}
