function fun_zdmdd(aid,cfs) {
    if(document.getElementById("auto_id_xl").value!=""){
		var c_url ="";
		if(aid==""){c_url ="http://www.auyou.cn/xlsearch-ts-"+document.getElementById("auto_id_xl").value+"-"+cfs+".html";}else{c_url ="http://www.auyou.cn/xlsearch-"+cfs+"-"+aid+"-"+document.getElementById("auto_id_xl").value+".html";}
		window.location.href=c_url;
	}else{alert("请先选择您要出发城市！");disp_cc(this,'mddCity');document.getElementById("c_s_area_xl").value="";document.getElementById("auto_id_xl").value="";document.getElementById("c_s_area_xl").focus();}
}
function reg_check(){if(document.reg_form.usrname.value==""){alert("请填写会员帐号！");document.reg_form.usrname.focus();return false;}else if(document.reg_form.password.value==""){alert("请填写您的会员密码！");document.reg_form.password.focus();return false;}}
function vou_search(){if((document.getElementById("mp_a").value=="")||(document.getElementById("mp_a").value=="请输入景点名称...")){alert("请输入景点名称！");return false;}}

function xl_check(){
   if(document.getElementById("c_s_area_xl").value==""){alert("请输入您所要出发的地区！");document.getElementById("c_s_area_xl").focus();return false;}
   var aaa ="";
   if(document.getElementById("a_xl").value !=""){aaa = "&a="+document.getElementById("a_xl").value;}
   if(aaa !=""){window.open("http://www.auyou.cn/xlsearch.asp?auto_id="+document.getElementById("auto_id_xl").value+aaa);}else{window.open("http://www.auyou.cn/xlsearch-"+document.getElementById("auto_id_xl").value+".html");}
}
function soucheck(){
   if(document.getElementById("c_s_area").value==""){alert("请输入您要前往的城市地区！");document.getElementById("c_s_area").focus();return false;}
   var aaa ="";var bbb =""
   if(document.getElementById("a_bg").value !=""){aaa = aaa + "&a="+document.getElementById("a_bg").value;}
   if(document.getElementById("s_Price")!=null){if(document.getElementById("s_Price").value !=""){aaa = aaa + "&s_Price="+document.getElementById("s_Price").value;}}
   if(document.getElementById("selHotelType")!=null){if(document.getElementById("selHotelType").value !=""){bbb = "&c_sel_UserType="+document.getElementById("selHotelType").value;}}
   if(document.getElementById("s_InDate").value !=""){aaa = aaa + "&s_InDate="+document.getElementById("s_InDate").value;}
   if(document.getElementById("s_OutDate").value !=""){aaa = aaa + "&s_OutDate="+document.getElementById("s_OutDate").value;}
   if((aaa == "")&&(bbb == "")){
	 window.open("http://www.auyou.cn/bgsearch-"+document.getElementById("auto_id").value+".html");
   }else{
		if((aaa =="")&&(bbb !="")){window.open("http://www.auyou.cn/bgsearch-lb-"+document.getElementById("auto_id").value+"-"+document.getElementById("selHotelType").value+".html");}else{window.open("http://www.auyou.cn/bgsearch.asp?auto_id="+document.getElementById("auto_id").value+aaa+bbb);}
   }
}

function jp_check(){
   if(document.getElementById("hidden_from").value==""){alert("请输入您所要出发的地区！");document.getElementById("hidden_from").focus();return false;}
   if(document.getElementById("hidden_to").value==""){alert("请输入您所要到达的地区！");document.getElementById("hidden_to").focus();return false;}
   window.location="http://www.auyou.cn/ticket-"+document.getElementById("hidden_from").value+"-"+document.getElementById("hidden_to").value+".html";
}
