
/////////////廓曝
	function ddlCitySelect()
	{ 
	  var city=document.getElementById("SellControl1_ddlCity");	  
	  AjaxMethod.GetDistrictList(city.value,get_District_Result_CallBack) ;
	}	
	function get_District_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("SellControl1_ddlDistrict").length=0;　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {  
                        document.all("SellControl1_ddlDistrict").options.add(new Option("畠何廓曝",''));                                       
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {
　　　　                    var name=ds.Tables[0].Rows[i].DistrictCname;
　　　　　　                var id=ds.Tables[0].Rows[i].DistrictId;
　　　　　　                document.all("SellControl1_ddlDistrict").options.add(new Option(name,id));
　　　　                }
　　　　                　　　                
                    }
                     // 賠腎頭曝\促徒
　　　　                document.all("SellControl1_ddlArea").length=0;　
　　　　                document.all("SellControl1_ddlArea").options.add(new Option("畠何頭曝",'')); 
　　　　                document.all("SellControl1_ddlEstate").length=0;　
　　　　                document.all("SellControl1_ddlEstate").options.add(new Option("畠何促徒",''));
                }                
                return
            }

/////////////頭曝
	function ddlDistrictSelect()
	{   
	  var district=document.getElementById("SellControl1_ddlDistrict");	
	  AjaxMethod.GetAreaList(district.value,get_Area_Result_CallBack) ;
	}	
	function get_Area_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("SellControl1_ddlArea").length=0;　　　          
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("SellControl1_ddlArea").options.add(new Option("畠何頭曝",''));             
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].AreaCname;
　　　　　　                var id=ds.Tables[0].Rows[i].AreaId;
　　　　　　                document.all("SellControl1_ddlArea").options.add(new Option(name,id));
　　　　                }　　　　                
                    }
                     document.all("SellControl1_ddlEstate").length=0;　
　　　　             document.all("SellControl1_ddlEstate").options.add(new Option("畠何促徒",''));
                }                
                return
            }
            
            /////////////促徒
	function ddlAreaSelect()
	{ 
	  var area=document.getElementById("SellControl1_ddlArea");	  
	  AjaxMethod.GetEstateList(area.value,get_Estate_Result_CallBack) ;
	}	
	function get_Estate_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("SellControl1_ddlEstate").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("SellControl1_ddlEstate").options.add(new Option("畠何促徒",''));                
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].EstateCname;
　　　　　　                var id=ds.Tables[0].Rows[i].EstateId;
　　　　　　                document.all("SellControl1_ddlEstate").options.add(new Option(name,id));
　　　　                }
                    }
                }                
                return
            }
            
////////訳周怏栽
      function whereValue()
		{
		  var strWhere ;		
		  with(document.all("SellControl1_ddlDistrict"))
		   { var district = options[selectedIndex].value;		   	 
		   }
		  with(document.all("SellControl1_ddlArea"))
		   { var area = options[selectedIndex].value;		   	 
		   }
		 with(document.all("SellControl1_ddlEstate"))
		   { var estate = options[selectedIndex].value;		   	 
		   }	
		 strWhere="&DistrictId="+district+"&AreaId="+area+"&EstateId="+estate;
		 document.all.txtWhere.value = strWhere ;
		 //alert(document.all.txtWhere.value) ;
		}	
		
		/////////////廓曝
	function ddlCitySelect1()
	{ 
	  var city=document.getElementById("SellControl2_ddlCity");	  
	  AjaxMethod.GetDistrictList(city.value,get_District_Result_CallBack1) ;
	}	
	function get_District_Result_CallBack1(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("SellControl2_ddlDistrict").length=0;　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {  
                        document.all("SellControl2_ddlDistrict").options.add(new Option("畠何廓曝",''));                                       
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {
　　　　                    var name=ds.Tables[0].Rows[i].DistrictCname;
　　　　　　                var id=ds.Tables[0].Rows[i].DistrictId;
　　　　　　                document.all("SellControl2_ddlDistrict").options.add(new Option(name,id));
　　　　                }
                    }
                        // 賠腎頭曝\促徒
　　　　            document.all("SellControl2_ddlArea").length=0;　
　　　　            document.all("SellControl2_ddlArea").options.add(new Option("畠何頭曝",'')); 
　　　　            document.all("SellControl2_ddlEstate").length=0;　
　　　　            document.all("SellControl2_ddlEstate").options.add(new Option("畠何促徒",''));
                }                
                return
            }

/////////////頭曝
	function ddlDistrictSelect1()
	{  
	 var district=document.getElementById("SellControl2_ddlDistrict");	 
	  AjaxMethod.GetAreaList(district.value,get_Area_Result_CallBack1) ;
	}	
	function get_Area_Result_CallBack1(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("SellControl2_ddlArea").length=0;　　　          
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("SellControl2_ddlArea").options.add(new Option("畠何頭曝",''));             
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].AreaCname;
　　　　　　                var id=ds.Tables[0].Rows[i].AreaId;
　　　　　　                document.all("SellControl2_ddlArea").options.add(new Option(name,id));
　　　　                }
                    }
                    //
                    document.all("SellControl2_ddlEstate").length=0;　
　　　　            document.all("SellControl2_ddlEstate").options.add(new Option("畠何促徒",''));
                }                
                return
            }
            
            /////////////促徒
	function ddlAreaSelect1()
	{ 
	  var area=document.getElementById("SellControl2_ddlArea");	  
	  AjaxMethod.GetEstateList(area.value,get_Estate_Result_CallBack1) ;
	}	
	function get_Estate_Result_CallBack1(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("SellControl2_ddlEstate").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("SellControl2_ddlEstate").options.add(new Option("畠何促徒",''));                
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].EstateCname;
　　　　　　                var id=ds.Tables[0].Rows[i].EstateId;
　　　　　　                document.all("SellControl2_ddlEstate").options.add(new Option(name,id));
　　　　                }
                    }
                }                
                return
            }
            
////////訳周怏栽
      function whereValue1()
		{
		  var strWhere ;		
		  with(document.all("SellControl2_ddlDistrict"))
		   { var district = options[selectedIndex].value;		   	 
		   }
		  with(document.all("SellControl2_ddlArea"))
		   { var area = options[selectedIndex].value;		   	 
		   }
		 with(document.all("SellControl2_ddlEstate"))
		   { var estate = options[selectedIndex].value;		   	 
		   }	
		 strWhere="&DistrictId="+district+"&AreaId="+area+"&EstateId="+estate;
		 document.all.txtWhere.value = strWhere ;
		 //alert(document.all.txtWhere.value) ;
		}			
		

//択型和性崇兜兵晒
function onitSellControl()
{
    ddlDistrictSelect();
    ddlAreaSelect() ;
	
}

/////////////廓曝
	function rent_ddlCitySelect()
	{ 
	  var city=document.getElementById("RentControl1_ddlCity");	  
	  AjaxMethod.GetDistrictList(city.value,rent_get_District_Result_CallBack) ;
	}	
	function rent_get_District_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("RentControl1_ddlDistrict").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {  
                        document.all("RentControl1_ddlDistrict").options.add(new Option("畠何廓曝",''));                                        
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {
　　　　                    var name=ds.Tables[0].Rows[i].DistrictCname;
　　　　　　                var id=ds.Tables[0].Rows[i].DistrictId;
　　　　　　                document.all("RentControl1_ddlDistrict").options.add(new Option(name,id));
　　　　                }
                    }
                     //嶷仟賠腎 頭曝\促徒
                    document.all("RentControl1_ddlArea").length=0;
                    document.all("RentControl1_ddlArea").options.add(new Option("畠何頭曝",''));
                    document.all("RentControl1_ddlEstate").length=0;
                    document.all("RentControl1_ddlEstate").options.add(new Option("畠何促徒",''));
                }                
                return
            }

/////////////頭曝
	function rent_ddlDistrictSelect()
	{ 
	  var district=document.getElementById("RentControl1_ddlDistrict");	  
	  AjaxMethod.GetAreaList(district.value,rent_get_Area_Result_CallBack) ;
	}	
	function rent_get_Area_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("RentControl1_ddlArea").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("RentControl1_ddlArea").options.add(new Option("畠何頭曝",''));                
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].AreaCname;
　　　　　　                var id=ds.Tables[0].Rows[i].AreaId;
　　　　　　                document.all("RentControl1_ddlArea").options.add(new Option(name,id));
　　　　                }
                    }
                    //嶷仟賠腎 促徒
                    document.all("RentControl1_ddlEstate").length=0;
                    document.all("RentControl1_ddlEstate").options.add(new Option("畠何促徒",''));
                }                
                return
            }
            
            /////////////促徒
	function rent_ddlAreaSelect()
	{ 
	  var area=document.getElementById("RentControl1_ddlArea");	  
	  AjaxMethod.GetEstateList(area.value,rent_get_Estate_Result_CallBack) ;
	}	
	function rent_get_Estate_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("RentControl1_ddlEstate").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("RentControl1_ddlEstate").options.add(new Option("畠何促徒",''));                
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].EstateCname;
　　　　　　                var id=ds.Tables[0].Rows[i].EstateId;
　　　　　　                document.all("RentControl1_ddlEstate").options.add(new Option(name,id));
　　　　                }
                    }
                }                
                return
            }
            
////////訳周怏栽
      function rent_whereValue()
		{
		  var strWhere ;		
		  with(document.all("RentControl1_ddlDistrict"))
		   { var district = options[selectedIndex].value;		   	 
		   }
		  with(document.all("RentControl1_ddlArea"))
		   { var area = options[selectedIndex].value;		   	 
		   }
		 with(document.all("RentControl1_ddlEstate"))
		   { var estate = options[selectedIndex].value;		   	 
		   }	
		 strWhere="&DistrictId="+district+"&AreaId="+area+"&EstateId="+estate;
		 document.all.txtWhere.value = strWhere ;
		 //alert(document.all.txtWhere.value) ;
		}	
		
		
		/////////////廓曝
	function rent_ddlCitySelect1()
	{ 
	  var city=document.getElementById("RentControl2_ddlCity");	  
	  AjaxMethod.GetDistrictList(city.value,rent_get_District_Result_CallBack1) ;
	}	
	function rent_get_District_Result_CallBack1(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("RentControl2_ddlDistrict").length=0;　                    
                    　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {  
                        document.all("RentControl2_ddlDistrict").options.add(new Option("畠何廓曝",''));                                        
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {
　　　　                    var name=ds.Tables[0].Rows[i].DistrictCname;
　　　　　　                var id=ds.Tables[0].Rows[i].DistrictId;
　　　　　　                document.all("RentControl2_ddlDistrict").options.add(new Option(name,id));
　　　　                }
                    }
                    //嶷仟賠腎 頭曝\促徒
                    document.all("RentControl2_ddlArea").length=0;
                    document.all("RentControl2_ddlArea").options.add(new Option("畠何頭曝",''));
                    document.all("RentControl2_ddlEstate").length=0;
                    document.all("RentControl2_ddlEstate").options.add(new Option("畠何促徒",''));
                }                
                return
            }

/////////////頭曝
	function rent_ddlDistrictSelect1()
	{ 
	  var district=document.getElementById("RentControl2_ddlDistrict");	  
	  AjaxMethod.GetAreaList(district.value,rent_get_Area_Result_CallBack1) ;
	}	
	function rent_get_Area_Result_CallBack1(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("RentControl2_ddlArea").length=0;
                                         　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("RentControl2_ddlArea").options.add(new Option("畠何頭曝",''));                
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].AreaCname;
　　　　　　                var id=ds.Tables[0].Rows[i].AreaId;
　　　　　　                document.all("RentControl2_ddlArea").options.add(new Option(name,id));
　　　　                }
                    }
                    //嶷仟賠腎 促徒
                    document.all("RentControl2_ddlEstate").length=0;
                    document.all("RentControl2_ddlEstate").options.add(new Option("畠何促徒",''));
                }                
                return
            }
            
            /////////////促徒
	function rent_ddlAreaSelect1()
	{ 
	  var area=document.getElementById("RentControl2_ddlArea");	  
	  AjaxMethod.GetEstateList(area.value,rent_get_Estate_Result_CallBack1) ;
	}	
	function rent_get_Estate_Result_CallBack1(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("RentControl2_ddlEstate").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("RentControl2_ddlEstate").options.add(new Option("畠何促徒",''));                
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].EstateCname;
　　　　　　                var id=ds.Tables[0].Rows[i].EstateId;
　　　　　　                document.all("RentControl2_ddlEstate").options.add(new Option(name,id));
　　　　                }
                    }
                }                
                return
            }
            
////////訳周怏栽
      function rent_whereValue1()
		{
		  var strWhere ;		
		  with(document.all("RentControl2_ddlDistrict"))
		   { var district = options[selectedIndex].value;		   	 
		   }
		  with(document.all("RentControl2_ddlArea"))
		   { var area = options[selectedIndex].value;		   	 
		   }
		 with(document.all("RentControl2_ddlEstate"))
		   { var estate = options[selectedIndex].value;		   	 
		   }	
		 strWhere="&DistrictId="+district+"&AreaId="+area+"&EstateId="+estate;
		 document.all.txtWhere.value = strWhere ;
		 //alert(document.all.txtWhere.value) ;
		}					

//怩型和性崇兜兵晒
function onitRentControl()
{
    rent_ddlDistrictSelect();
    rent_ddlAreaSelect() ;  
}



/////////////廓曝
	function agency_ddlCitySelect()
	{ 
	  var city=document.getElementById("AgencyControl1_ddlCity");	  
	  AjaxMethod.GetDistrictList(city.value,agency_get_District_Result_CallBack) ;
	}	
	function agency_get_District_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("AgencyControl1_ddlDistrict").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {  
                        document.all("AgencyControl1_ddlDistrict").options.add(new Option("畠何廓曝",''));                                        
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {
　　　　                    var name=ds.Tables[0].Rows[i].DistrictCname;
　　　　　　                var id=ds.Tables[0].Rows[i].DistrictId;
　　　　　　                document.all("AgencyControl1_ddlDistrict").options.add(new Option(name,id));
　　　　                }
                    }
                    //賠腎頭曝\巷望
                    document.all("AgencyControl1_ddlArea").length=0;　
                    document.all("AgencyControl1_ddlArea").options.add(new Option("畠何頭曝",'')); 
                    document.all("AgencyControl1_ddlCompany").length=0;
                    document.all("AgencyControl1_ddlCompany").options.add(new Option("畠何嶄初巷望",''));
                }                
                return
            }

/////////////頭曝
	function agency_ddlDistrictSelect()
	{ 
	  var district=document.getElementById("AgencyControl1_ddlDistrict");	  
	  AjaxMethod.GetAreaList(district.value,agency_get_Area_Result_CallBack) ;
	}	
	function agency_get_Area_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("AgencyControl1_ddlArea").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("AgencyControl1_ddlArea").options.add(new Option("畠何頭曝",''));                
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].AreaCname;
　　　　　　                var id=ds.Tables[0].Rows[i].AreaId;
　　　　　　                document.all("AgencyControl1_ddlArea").options.add(new Option(name,id));
　　　　                }
                    }
                    document.all("AgencyControl1_ddlCompany").length=0;
                    document.all("AgencyControl1_ddlCompany").options.add(new Option("畠何嶄初巷望",''));
                }                
                return
            }
            
            /////////////巷望
	function agency_ddlAreaSelect()
	{ 
	  var area=document.getElementById("AgencyControl1_ddlArea");	  
	  AjaxMethod.GetCompanyList(area.value,agency_get_Company_Result_CallBack) ;
	}	
	function agency_get_Company_Result_CallBack(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("AgencyControl1_ddlCompany").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("AgencyControl1_ddlCompany").options.add(new Option("畠何嶄初巷望",''));                
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].ComCname;
　　　　　　                var id=ds.Tables[0].Rows[i].CompanyId;
　　　　　　                document.all("AgencyControl1_ddlCompany").options.add(new Option(name,id));
　　　　                }
                    }
                }                
                return
            }
            
////////訳周怏栽
      function agency_whereValue()
		{
		  var strWhere ;		
		  with(document.all("AgencyControl1_ddlDistrict"))
		   { var district = options[selectedIndex].value;		   	 
		   }
		  with(document.all("AgencyControl1_ddlArea"))
		   { var area = options[selectedIndex].value;		   	 
		   }
		 with(document.all("AgencyControl1_ddlCompany"))
		   { var company = options[selectedIndex].value;		   	 
		   }	
		 strWhere="&DistrictId="+district+"&AreaId="+area+"&CompanyId="+company;
		 document.all.txtWhere.value = strWhere ;
		 //alert(document.all.txtWhere.value) ;
		}		


/////////////廓曝
	function agency_ddlCitySelect1()
	{ 
	  var city=document.getElementById("AgencyControl2_ddlCity");	  
	  AjaxMethod.GetDistrictList(city.value,agency_get_District_Result_CallBack1) ;
	}	
	function agency_get_District_Result_CallBack1(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("AgencyControl2_ddlDistrict").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {  
                        document.all("AgencyControl2_ddlDistrict").options.add(new Option("畠何廓曝",''));                                        
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {
　　　　                    var name=ds.Tables[0].Rows[i].DistrictCname;
　　　　　　                var id=ds.Tables[0].Rows[i].DistrictId;
　　　　　　                document.all("AgencyControl2_ddlDistrict").options.add(new Option(name,id));
　　　　                }
                    }
                    //賠腎頭曝\巷望
                    document.all("AgencyControl2_ddlArea").length=0;　
                    document.all("AgencyControl2_ddlArea").options.add(new Option("畠何頭曝",'')); 
                    document.all("AgencyControl2_ddlCompany").length=0;
                    document.all("AgencyControl2_ddlCompany").options.add(new Option("畠何嶄初巷望",''));
                }                
                return
            }

/////////////頭曝
	function agency_ddlDistrictSelect1()
	{ 
	  var district=document.getElementById("AgencyControl2_ddlDistrict");	  
	  AjaxMethod.GetAreaList(district.value,agency_get_Area_Result_CallBack1) ;
	}	
	function agency_get_Area_Result_CallBack1(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("AgencyControl2_ddlArea").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("AgencyControl2_ddlArea").options.add(new Option("畠何頭曝",''));                
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].AreaCname;
　　　　　　                var id=ds.Tables[0].Rows[i].AreaId;
　　　　　　                document.all("AgencyControl2_ddlArea").options.add(new Option(name,id));
　　　　                }
                    }
                    document.all("AgencyControl2_ddlCompany").length=0;
                    document.all("AgencyControl2_ddlCompany").options.add(new Option("畠何嶄初巷望",''));
                }                
                return
            }
            
            /////////////巷望
	function agency_ddlAreaSelect1()
	{ 
	  var area=document.getElementById("AgencyControl2_ddlArea");	  
	  AjaxMethod.GetCompanyList(area.value,agency_get_Company_Result_CallBack1) ;
	}	
	function agency_get_Company_Result_CallBack1(response)
            {
                if (response.value != null)
                {                    
                    //debugger;
                    document.all("AgencyControl2_ddlCompany").length=0;　　　　            
　　　　            var ds = response.value;
                    if(ds != null && typeof(ds) == "object" && ds.Tables != null)
                    {    
                        document.all("AgencyControl2_ddlCompany").options.add(new Option("畠何嶄初巷望",''));                
                        for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　                {　　　　                
　　　　                    var name=ds.Tables[0].Rows[i].ComCname;
　　　　　　                var id=ds.Tables[0].Rows[i].CompanyId;
　　　　　　                document.all("AgencyControl2_ddlCompany").options.add(new Option(name,id));
　　　　                }
                    }
                }                
                return
            }
            
////////訳周怏栽
      function agency_whereValue1()
		{
		  var strWhere ;		
		  with(document.all("AgencyControl2_ddlDistrict"))
		   { var district = options[selectedIndex].value;		   	 
		   }
		  with(document.all("AgencyControl2_ddlArea"))
		   { var area = options[selectedIndex].value;		   	 
		   }
		 with(document.all("AgencyControl2_ddlCompany"))
		   { var company = options[selectedIndex].value;		   	 
		   }	
		 strWhere="&DistrictId="+district+"&AreaId="+area+"&CompanyId="+company;
		 document.all.txtWhere.value = strWhere ;
		 //alert(document.all.txtWhere.value) ;
		}			

// 嶄初兜兵晒
function onitAgencyIndex()
{
  agency_ddlDistrictSelect() ;
  agency_ddlAreaSelect() ;  
  
}

function onitAgencyControl()
{
  agency_ddlDistrictSelect() ;
  agency_ddlAreaSelect() ;  
  
  agency_ddlDistrictSelect1() ;
  agency_ddlAreaSelect1() ;   
}

