
var xmlHttp

function loadpage(city,cid)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }

xmlHttp.onreadystatechange=stateChanged ;
xmlHttp.open("POST","load_page.php",true);
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");


xmlHttp.send("package_id="+cid+"&city="+city);


}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 loadtable();	
  document.getElementById("loader").style.visibility="hidden";
 document.getElementById("load_result").innerHTML=xmlHttp.responseText 
 loadtable();
 }else{
 document.getElementById("loader").style.visibility="visible";
	 }
 
}

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;
}

