
<!--[CDATA[
function AjaxCreateObj(){
	var XmlHttp;
	//windows
	try{XmlHttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");} 
	catch(e){
		try{XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");}
		catch(e){
			try{XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");} 
			catch(e){XmlHttp = false;}}}
	//other
	if (!XmlHttp){
		try{XmlHttp = new XMLHttpRequest();}
		catch(e){XmlHttp = false;	}}
	return XmlHttp;
}

function GetProvinceText(QId,SId){
	var xmlhttp = new AjaxCreateObj() //new ActiveXObject("Microsoft.XMLHTTP");	
	xmlhttp.onreadystatechange= function(){
		if(xmlhttp.readyState==4){
//			CunText.innerHTML="&nbsp;<select name='Cun' style='width:100px;height:19px'><option value='' selected>行政村</option></select></select>";
			CunZText.innerHTML="&nbsp;<select name='CunZ' style='width:100px;height:19px'><option value='' selected>村民小组</option></select></select>";
			XiangText.innerHTML="&nbsp;<select name='Xiang' style='width:100px;height:19px'><option value='' selected>乡镇街道办</option></select></select>";
			CountyText.innerHTML="&nbsp;<select name='County' style='width:100px;height:19px'><option value='' selected>县级市、县</option></select>";
			CityText.innerHTML="&nbsp;<select name='City' style='width:100px;height:19px'><option value='' selected>地级市</option></select></select>";
			ProvinceText.innerHTML=unescape(xmlhttp.responseText);}}	
	xmlhttp.open("get","/Zinc/Get_ChinaArea.asp?Action=Province&QId="+QId+"&SId="+SId,false); 
	xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlhttp.send(null);
}

function GetCityText(QId,SId){
	var xmlhttp = new AjaxCreateObj()//new ActiveXObject("Microsoft.XMLHTTP");
	xmlhttp.onreadystatechange= function(){
		if(xmlhttp.readyState==4){
//			CunText.innerHTML="&nbsp;<select name='Cun' style='width:100px;height:19px'><option value='' selected>行政村</option></select></select>";
			CunZText.innerHTML="&nbsp;<select name='CunZ' style='width:100px;height:19px'><option value='' selected>村民小组</option></select></select>";
			XiangText.innerHTML="&nbsp;<select name='Xiang' style='width:100px;height:19px'><option value='' selected>乡镇街道办</option></select></select>";
			CountyText.innerHTML="&nbsp;<select name='County' style='width:100px;height:19px'><option value='' selected>县级区、市、县</option></select>";
			CityText.innerHTML=unescape(xmlhttp.responseText);}}
	xmlhttp.open("get","/Zinc/Get_ChinaArea.asp?Action=City&QId="+QId+"&SId="+SId,false); 
	xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlhttp.send(null);
}

function GetCountyText(QId,SId){
	var xmlhttp = new AjaxCreateObj()//new ActiveXObject("Microsoft.XMLHTTP");
	xmlhttp.onreadystatechange= function(){
		if(xmlhttp.readyState==4){
//			CunText.innerHTML="&nbsp;<select name='Cun' style='width:100px;height:19px'><option value='' selected>行政村</option></select></select>";
			CunZText.innerHTML="&nbsp;<select name='CunZ' style='width:100px;height:19px'><option value='' selected>村民小组</option></select></select>";
			XiangText.innerHTML="&nbsp;<select name='Xiang' style='width:100px;height:19px'><option value='' selected>乡镇街道办</option></select></select>";

			CountyText.innerHTML=unescape(xmlhttp.responseText);}}
	xmlhttp.open("get","/Zinc/Get_ChinaArea.asp?Action=County&QId="+QId+"&SId="+SId,false); 
	xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlhttp.send(null);
}

function GetXiangText(QId,SId){
	var xmlhttp = new AjaxCreateObj()//new ActiveXObject("Microsoft.XMLHTTP");
	xmlhttp.onreadystatechange= function(){
		if(xmlhttp.readyState==4){
//			CunText.innerHTML="&nbsp;<select name='Cun' style='width:100px;height:19px'><option value='' selected>行政村</option></select></select>";
			CunZText.innerHTML="&nbsp;<select name='CunZ' style='width:100px;height:19px'><option value='' selected>村民小组</option></select></select>";
			XiangText.innerHTML=unescape(xmlhttp.responseText);}}
	xmlhttp.open("get","/Zinc/Get_ChinaArea.asp?Action=Xiang&QId="+QId+"&SId="+SId,false); 
	xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlhttp.send(null);
}

function GetCunZText(QId,SId){
	var xmlhttp = new AjaxCreateObj()//new ActiveXObject("Microsoft.XMLHTTP");
	xmlhttp.onreadystatechange= function(){
		if(xmlhttp.readyState==4){
//			CunText.innerHTML="&nbsp;<select name='Cun' style='width:100px;height:19px'><option value='' selected>行政村</option></select></select>";
			CunZText.innerHTML=unescape(xmlhttp.responseText);}}
	xmlhttp.open("get","/Zinc/Get_ChinaArea.asp?Action=CunZ&QId="+QId+"&SId="+SId,false); 
	xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlhttp.send(null);
}

function GetCunText(QId,SId){
	var xmlhttp = new AjaxCreateObj()//new ActiveXObject("Microsoft.XMLHTTP");
	xmlhttp.onreadystatechange= function(){
		if(xmlhttp.readyState==4){
			CunText.innerHTML=unescape(xmlhttp.responseText);}}
	xmlhttp.open("get","/Zinc/Get_ChinaArea.asp?Action=Cun&QId="+QId+"&SId="+SId,false); 
	xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlhttp.send(null);
}




//]]-->
