var xmlHttp
 
 //start of edit country...
 
 
//start of pager....
function pagerJobLocation(page)
{
 // alert(page); return false;
  
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
  
	var url="js/job_location.php";
	url=url+"?page="+page;
	url=url+"&pager="+page;
	
	url=url+"&sid="+Math.random();
	
	//alert(url);
	xmlHttp.onreadystatechange=newAirlinesPage;
	xmlHttp.open("GET",url,true);
	xmlHttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
	xmlHttp.send(null);
   
}
function newAirlinesPage() 
{ 
   if(xmlHttp.readyState==1)
	{	
	    document.getElementById("job_location").innerHTML="";
	    document.getElementById("job_location").innerHTML="<br><br><br><div id='loading' align='center' ><img src='admin/images/loader.gif' />&nbsp;please wait....</div>"; 
		 }
   if (xmlHttp.readyState==4)
    {

		if(xmlHttp.status==200)
			{ 
			
			     document.getElementById("job_location").innerHTML=xmlHttp.responseText; 
			
			}else if(xmlHttp.status==404)
				document.getElementById("job_location").innerHTML = "Page Does not Exist";
			else	//for other error
					document.getElementById("job_location").innerHTML = "Error:".xmlHttp.status; 	
		
			
			
			}
	}

//end of pager...
// start of jobpage
function pagerJobByCountry(js_c_id,page)
{
 //alert(page); return false;
  
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
  
	var url="js/job_location.php";
	url=url+"?js_c_id="+js_c_id;
	url=url+"&page="+page;
	
	url=url+"&sid="+Math.random();
	
	//alert(url);
	xmlHttp.onreadystatechange=chngJobPage;
	xmlHttp.open("GET",url,true);
	xmlHttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
	xmlHttp.send(null);
   
}
function chngJobPage() 
{ 
   if(xmlHttp.readyState==1)
	{	
	    document.getElementById("job_detail").innerHTML="";
	    document.getElementById("job_detail").innerHTML="<br><br><br><div id='loading' align='center' ><img src='admin/images/loader.gif' />&nbsp;please wait....</div>"; 
		 }
   if (xmlHttp.readyState==4)
    {

		if(xmlHttp.status==200)
			{ 
			
			     document.getElementById("job_detail").innerHTML=xmlHttp.responseText; 
			
			}else if(xmlHttp.status==404)
				document.getElementById("job_detail").innerHTML = "Page Does not Exist";
			else	//for other error
					document.getElementById("job_detail").innerHTML = "Error:".xmlHttp.status; 	
		
			
			
			}
	}
// end fo jobpage

// end of new delete
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;
}
