function yanzheng()
 {
   if(document.getElementById("Search1_city").options[document.getElementById("Search1_city").selectedIndex].value=="0")
	{
		alert('系统提示:请选择城市!');
		document.getElementById('Search1_city').focus();
		return false;
	}
	document.getElementById("Search1_hidden1").value=document.getElementById("Search1_area").options[document.getElementById("Search1_area").selectedIndex].value;
	document.getElementById("Search1_hidden2").value=document.getElementById("Search1_city").options[document.getElementById("Search1_city").selectedIndex].value;
}
function get_Area_Result_CallBack(response)
 {
 	if(response.value != null)
	{
		document.all("Search1_area").length=0;
		var dt = response.value;
		if(dt != null && typeof(dt) == "object" && dt != "")
		{				   
			document.all("Search1_area").options.add(new Option("不限","0"));
			if(dt.Rows.length!=0)
		    {
		        document.getElementById("choicearea").style.display="block";
			    for(var i=0; i<dt.Rows.length; i++)
			    {
　　			    document.all("Search1_area").options.add(new Option(dt.Rows[i].areaName,dt.Rows[i].id));
			    }
		    }
		    else
		    {
		      document.getElementById("choicearea").style.display="none";
		    }
		}
	}
	return
 }
 function areaQuery()
    {
		AjaxMethod.RetCityArea("cityArea",document.getElementById("Search1_city").options[document.getElementById("Search1_city").selectedIndex].value,0,get_Area_Result_CallBack);
    }
function changearea(areatype)
{
  if(areatype=="1")
   {
       AjaxMethod.RetCityArea("cityArea",document.getElementById("Search1_city").options[document.getElementById("Search1_city").selectedIndex].value,0,get_Area_Result_CallBack);    
   }
   else
   {
       AjaxMethod.RetCityArea("cityArea",document.getElementById("Search1_city").options[document.getElementById("Search1_city").selectedIndex].value,1,get_Area_Result_CallBack);
   }
}
