﻿			//城市------------------------------
			function cityResult() 
			{ 
				var city=document.getElementById("province");
				loadtypeajax.GetCityList(city.value,get_city_Result_CallBack);
			}
			
			function get_city_Result_CallBack(response)
			{
				if (response.value != null)
				{					
					document.all("city").length=0;　　　　			
　　　　			var ds = response.value;
					if(ds != null && typeof(ds) == "object" && ds.Tables != null)
					{					
　　　　　　			document.all("city").options.add(new Option("所在城市"," "));
						for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　				{
　　　　					var name=ds.Tables[0].Rows[i].city_name;
　　　　　　				var id=ds.Tables[0].Rows[i].city;
　　　　　　				document.all("city").options.add(new Option(name,id));
　　　　				}
					}
				}				
				return
			}
			//市区----------------------------------------
			function areaResult() 
			{ 
				var area=document.getElementById("city");
				loadtypeajax.GetAreaList(area.value,get_area_Result_CallBack);
			}
			function get_area_Result_CallBack(response)
			{
				if (response.value != null)
				{					
					document.all("region").length=0;　　　　			
　　　　			var ds = response.value;
					if(ds != null && typeof(ds) == "object" && ds.Tables != null)
					{					
　　　　　　		    document.all("region").options.add(new Option("地理区域"," "));
						for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　				{
　　　　　　				var name=ds.Tables[0].Rows[i].region_name;
　　　　　　				var id=ds.Tables[0].Rows[i].region;
　　　　　　				document.all("region").options.add(new Option(name,id));
　　　　				}				
					}
				}
				return
			}

			function getData()
			{
				var province=document.getElementById("province");
				var pindex = province.selectedIndex;
				var pValue = province.options[pindex].value;
				var pText  = province.options[pindex].text;
				
				var city=document.getElementById("city");
				var cindex = city.selectedIndex;
				var cValue = city.options[cindex].value;
				var cText  = city.options[cindex].text;
				
				var area=document.getElementById("region");
				var aindex = area.selectedIndex;
				var aValue = area.options[aindex].value;
				var aText  = area.options[aindex].text;
				
			}


