var xmlHttp
var host="http://"+location.host+"/";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;}
