﻿// JScript 文件
	//学科------------------------------	
			function getSubCourse() 
			{ 
				var city=document.getElementById("ddlClass");			
				AjaxMethod.GetCityList(city.value,get_city_Result_CallBack);								
			}
			
			function get_city_Result_CallBack(response)
			{			   
				
				//document.write(response.value);
				if (response.value != null)
				{					
					//debugger;
					document.all("ddlSubClass").length=0;　　　　			
　　　　			var ds = response.value;　　　　			
					if(ds != null && typeof(ds) == "object" && ds.Tables != null)
					{					
						for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　				{
　　　　					var name=ds.Tables[0].Rows[i].subclass;
　　　　　　				var id=ds.Tables[0].Rows[i].subclassid;
　　　　　　				document.all("ddlSubClass").options.add(new Option(name,id));
　　　　				}
					}
				}				
				return
			}
			
			//子学科----------------------------------------
			function areaResult() 
			{ 
				var area=document.getElementById("ddlSubClass");
				AjaxMethod.GetAreaList(area.value,get_area_Result_CallBack);
			}
			function get_area_Result_CallBack(response)
			{
				if (response.value != null)
				{					
					document.all("DropDownListTown").length=0;　　　　			
　　　　			var ds = response.value;
					if(ds != null && typeof(ds) == "object" && ds.Tables != null)
					{					
						for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　				{
　　　　　　				var name=ds.Tables[0].Rows[i].CodeMasterName;
　　　　　　				var id=ds.Tables[0].Rows[i].CodeMasterID;
　　　　　　				document.all("DropDownListTown").options.add(new Option(name,id));
　　　　				}				
					}
				}
				return
			}	
