﻿// JScript 文件
function getcityInfo() 
			{ 
				var PID=document.getElementById("ddprovince");
				AntianxiaDB.AjaxTest.GetCityNamePID(PID.value,getcity1);
			}
			
			function getcity1(response)
			{
				if (response.value != null)
				{					
					document.all("ddcity").length=0;　　　　			
　　　　			var dt = response.value;
					if(dt != null && typeof(dt) == "object")
					{	document.all("ddcity").options.add(new Option("请选择"))			
						for(var i=0; i<dt.Rows.length; i++)
　　　　				{
　　　　					var name=dt.Rows[i].city;
　　　　　　				var id=dt.Rows[i].citysID;　　　　　　				
　　　　　　				document.all("ddcity").options.add(new Option(name));
　　　　				}
					}
				}				
				
			}
			function getcity() 
			{ 
				var PID=document.getElementById("ddlPro");
				AntianxiaDB.AjaxTest.GetCityNamePID(PID.value,getcityDate);
			}
			
			function getcityDate(response)
			{
				if (response.value != null)
				{					
					document.all("ddlCity").length=0;　　　　			
　　　　			var dt = response.value;
					if(dt != null && typeof(dt) == "object")
					{	document.all("ddlCity").options.add(new Option("请选择"))			
						for(var i=0; i<dt.Rows.length; i++)
　　　　				{
　　　　					var name=dt.Rows[i].city;
　　　　　　				var id=dt.Rows[i].citysID;　　　　　　				
　　　　　　				document.all("ddlCity").options.add(new Option(name));
　　　　				}
					}
				}				
				
			}

