var xmlHttp
var host="http://"+get_location();function get_location(){var a=document.URL.split("//");var path="";var i=0;a=(a[1]?a[1]:a[0]).split("/");while(a[i]!="Admin"&&a[i]!="admin"&&i<5)
{path+=a[i]+"/";i++;}
return path;}
function show_state(str,all)
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var url=host+"show_combo.php?id="+str+"&key=1&all="+all;xmlHttp.onreadystatechange=stateChanged_state;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function show_state1(str,all)
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var url=host+"show_combo.php?id="+str+"&key=3&all="+all;xmlHttp.onreadystatechange=stateChanged_state;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function show_city(str,all)
{xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var url=host+"show_combo.php?id="+str+"&key=2&all="+all;xmlHttp.onreadystatechange=stateChanged_city;xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function stateChanged_state()
{if(xmlHttp.readyState==4)
{document.getElementById("state").innerHTML=xmlHttp.responseText;}}
function stateChanged_city()
{if(xmlHttp.readyState==4)
{document.getElementById("city").innerHTML=xmlHttp.responseText;}}
function GetXmlHttpObject()
{var xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
