var HOTEL_REQUEST_SAFE_STRING = "中包含了不合法的字符!";
var HOTEL_REQUEST_SAFE_EMPTY = "请输入";

var HOTEL_REQUEST_CITY_NAME = "城市名";
var HOTEL_REQUEST_HOTEL_NAME = "酒店名称";
var HOTEL_REQUEST_SCENERY = "景区";
var HOTEL_REQUEST_LINKMARK = "附近标志物";
var HOTEL_REQUEST_HOTEL_CITY_NAME = "请输入酒店所在城市或酒店名!";

var HOTEL_REQUEST_IN_ISDATE = "请输入有效的入住时间!";
var HOTEL_REQUEST_OUT_ISDATE = "请输入有效的离店时间!";
var HOTEL_REQUEST_COMPARE_IN_TODAY = "入住时间必须大于或者等于当天时间!";
var HOTEL_REQUEST_COMPARE_OUT_TODAY = "离店时间必须大于或者等于当天时间!";
var HOTEL_REQUEST_COMPARE_IN_OUT = "离店时间必须大于入住时间!";
var HOTEL_REQUEST_COMPARE_TODAY_IN30_F = "如果您需要预订";
var HOTEL_REQUEST_COMPARE_TODAY_IN30_B = "号的酒店，请和e龙酒店预订中心联系：800-810-1010或010-64329999，我们会竭诚为您服务。";
var HOTEL_REQUEST_COMPARE_IN_OUT20 = "如果您需要在酒店入住20天以上，请和e龙酒店预订中心联系：800-810-1010或010-64329999，我们会竭诚为您服务。";

//order.js
var HOTEL_REQUEST_ACCEPT = "您未接受注意事项, 不能继续预订!";
var HOTEL_REQUEST_GUESTINFO_F = "请添加房间";
var HOTEL_REQUEST_GUESTINFO_B = "的入住人信息!";
var HOTEL_REQUEST_GUESTINFO_RIGHT = "请输入正确的房间";
var HOTEL_REQUEST_GUESTINFO_EMPTY = "请输入房间";
var HOTEL_REQUEST_GUESTINFO_NAME = "的入住人姓名!";
var HOTEL_REQUEST_GUESTINFO_COUNTRY = "的入住人国籍!";
var HOTEL_REQUEST_GUESTINFO_MOBILE = "的入住人手机号!";
var HOTEL_REQUEST_GUESTINFO_PHONE = "的入住人座机号码!";
var HOTEL_REQUEST_GUESTINFO_EMAIL = "的入住人email!";
var HOTEL_REQUEST_GUESTINFO_MOBILEorPHONEorEMAIL = "的入住人的联系方式(手机号、电话和Email至少填写一项!)";
var HOTEL_REQUEST_GUESTNAME_SAME = "入住人姓名不能重复!";
var HOTEL_REQUEST_SPECIAL = "我有特殊要求";

var HOTEL_REQUEST_CONTACTER_NAME = "请输入正确的联系人姓名!";
var HOTEL_REQUEST_CONTACTER_MOBILE = "请输入正确的联系人手机号!";
var HOTEL_REQUEST_CONTACTER_PHONE = "请输入正确的联系人电话!";
var HOTEL_REQUEST_CONTACTER_EMAIL = "请输入正确的联系人email!";
var HOTEL_REQUEST_CONTACTER_MOBILEorPHONEorEMAIL = "请输入联系人的联系方式(手机号、电话和Email至少填写一项!)";

var HOTEL_REQUEST_LASTTIME = "最晚到达时间不能早于最早到达时间!";
var HOTEL_REQUEST_LASTTIMETODAY = "预订当天入住的酒店最晚到店时间必须大于当前时间!";

//city.cs
var FLY_REQUEST_IN_ISDATE = "请输入有效的出发时间!";
var FLY_REQUEST_COMPARE_IN_TODAY = "出发时间必须大于或者等于当天时间!";
var FLY_REQUEST_OUT_ISDATE = "请输入有效的返程时间!";
var FLY_REQUEST_COMPARE_IN_OUT = "返程时间必须大于等于出发时间!";

//vouchAvai.js
var HOTEL_VOUCH_CREDITCARD_TYPE = "请填写信用卡种类!";
var HOTEL_VOUCH_CREDITCARD_NO = "信用卡卡号不能为空!";
var HOTEL_VOUCH_CREDITCARD_NAME = "持卡人姓名不能为空!";
var HOTEL_VOUCH_CREDITCARD_SAFE_NAME = "请输入正确的持卡人姓名!";
var HOTEL_VOUCH_CREDITCARD_VALID_DATE = "您的信用卡已经过期!";
var HOTEL_VOUCH_IDCARD_EMPTY = "身份证号码不能为空!";
var HOTEL_VOUCH_IDCARD_SAFE = "身份证号码不正确!";
var HOTEL_VOUCH_CREDITCARD_TYPE_NOTES = "此酒店需要个人信用卡担保，请录入信用卡完整信息!";
var HOTEL_VOUCH_CREDITCARD_NO_SAFE = "信用卡号不对!";
var HOTEL_VOUCH_CREDITCARD_VALID_DATE_SAFE = "信用卡的有效日期不正确!";
var HOTEL_VOUCH_CREDITCARD_VERIFY = "请输入验证码!";
var HOTEL_VOUCH_CREDITCARD_VOUCH = "对不起，该酒店需要预付款，请和e龙酒店预订中心联系：8008101010或01064329999,或选择其它酒店!";
var HOTEL_VOUCH_CREDITCARD_CMOBILE = "该酒店为手机担保,请输入联系人的手机号!";
var HOTEL_VOUCH_CREDITCARD_GMOBILE = "该酒店为手机担保,请输入房间1入住人的手机号!";
var HOTEL_VOUCH_CREDITCARD_CHECKTYPE = "请核对您选择的信用卡类型!";
var HOTEL_VOUCH_CREDITCARD_CHECKSORRY = "抱歉，由于我们合作的银行对该卡无法进行验证，请提供其它信用卡信息!";
var HOTEL_VOUCH_CREDITCARDTYPE_SAFE_NAME = "信用卡类型中包含了不合法的字符!";

//baseScript.js
var HOTEL_AreaNull1 ="----行政区----";
var HOTEL_AreaNull2 ="----商业区----";

var AreaNull = new Array(new Array("", HOTEL_AreaNull1));
var AreaNull1 = new Array(new Array("", HOTEL_AreaNull2));
function changeSelect(selectCtrl, itemName)
{
	var i;
	var checkstr;
	var citystr="";
	var tempstr="";
	var j;
	var k;
	//if (itemName=="")
	//{
	//	return false;
	//}
	for (i=0;i<document.HotSrch.checkarea.length;i++)
	{
		if (document.HotSrch.checkarea[i].checked)
		{
			checkstr=document.HotSrch.checkarea[i].value;
		}
	}
	if (document.HotSrch.area_id.length>0)
	{
		k=document.HotSrch.area_id.length;
		for (i=0;i<=k;i++)
		{
			document.HotSrch.area_id.remove(0);
		}
	}
	if (checkstr=="1")
	{	
		i=CityId.search(","+itemName+",");
		j=CityId.indexOf(",)",i);
		tempstr=CityId.substring(i,j);
		i=tempstr.lastIndexOf(",")+1;
		citystr=tempstr.substr(i);
		if(CityId.search(","+itemName+",")>=0)
		{
			var itemArray = eval("AreaList"+citystr);
		}
		else
		{
			var itemArray = AreaNull;
		}
		for(i=selectCtrl.options.length;i>=0;i--)
		{
			selectCtrl.options[i] = null;
		}
		for(i=0;i<itemArray.length;i++)
		{
			selectCtrl.options[i] = new Option(itemArray[i][1]);
			if(itemArray[i][0]!=null)
			{
				selectCtrl.options[i].value = itemArray[i][0];
			}
		}
	}
	else
	{
		i=CityId1.search(","+itemName+",");
		j=CityId1.indexOf(",)",i);
		tempstr=CityId1.substring(i,j);
		i=tempstr.lastIndexOf(",")+1;
		citystr=tempstr.substr(i);
		if(CityId1.search(","+itemName+",")>=0)
		{
			var itemArray = eval("SowntownList"+citystr);
		}
		else
		{
			var itemArray = AreaNull1;
		}
		for(i=selectCtrl.options.length;i>=0;i--)
		{
			selectCtrl.options[i] = null;
		}
		for(i=0;i<itemArray.length;i++)
		{
			selectCtrl.options[i] = new Option(itemArray[i][1]);
			if(itemArray[i][0]!=null)
			{
				selectCtrl.options[i].value = itemArray[i][0];
			}
		}
	}
}


function CheckSafeString(obj,Msg)
{
    if (obj !=null)
    {
       var strObjValue = obj.value;
       if (strObjValue !="")
	   {
	      if (!IsSafeString(strObjValue))
	      {
	          alert( Msg + HOTEL_REQUEST_SAFE_STRING);			
	          obj.focus();
	          return (false);
	      }
	   } 
    }    
    return true;
}

function CheckEmptyAndSafeString(obj,Msg)
{
   if (obj !=null)
   {
      var strObjValue = trim(obj.value);
      if (strObjValue == "")
	  {
	 	 alert(HOTEL_REQUEST_SAFE_EMPTY + Msg + "!");			
		 obj.focus();
		 return (false);
	  }
	  else
	  {
	     if (!IsSafeString(strObjValue))
		 {
		    alert( Msg  + HOTEL_REQUEST_SAFE_STRING);			
		    obj.focus();
		    return (false);
		 }
	  }      
   }
   return true;
}


function CheckInOutDate(objCheckInDate,objCheckOutDate,strServerDate)
{
   	var strCheckInDate = objCheckInDate.value;
   	var strCheckOutDate = objCheckOutDate.value;   	
   	
   	if ((!IsDate(strCheckInDate))||(strCheckInDate=="yyyy-mm-dd")||(strCheckInDate=="")||(strCheckInDate=="mm/dd/yyyy"))		
		{
			alert(HOTEL_REQUEST_IN_ISDATE);			
			objCheckInDate.focus();
			return (false);
		}
	if (!compareToday(strCheckInDate,strServerDate))
		{
		  alert(HOTEL_REQUEST_COMPARE_IN_TODAY);			
		  objCheckInDate.focus();
		  return (false);
		}
	if (compareDate(strServerDate,strCheckInDate,60))
	    {
		alert(HOTEL_REQUEST_COMPARE_TODAY_IN30_F + strCheckInDate + HOTEL_REQUEST_COMPARE_TODAY_IN30_B);
		return false;
	    } 
	if ((!IsDate(strCheckOutDate))||(strCheckOutDate=="yyyy-mm-dd")||(strCheckOutDate=="")||(strCheckOutDate=="mm/dd/yyyy"))		
		{
			alert(HOTEL_REQUEST_OUT_ISDATE);			
			objCheckOutDate.focus();
			return (false);
		}
	if (!compareToday(strCheckOutDate,strServerDate))
		{
		  alert(HOTEL_REQUEST_COMPARE_OUT_TODAY);			
		  objCheckOutDate.focus();
		  return (false);
		} 
	if (!CheckDate(strCheckInDate,strCheckOutDate)) {
		objCheckOutDate.focus();
		alert(HOTEL_REQUEST_COMPARE_IN_OUT);
		return (false);
	    }
	if (compareDate(strCheckInDate,strCheckOutDate,20))
	    {
		alert(HOTEL_REQUEST_COMPARE_IN_OUT20);
		return false;
	    }
	
	return true;		

}


function SubmitForm(obj,strServerDate)
{        
       
						
		if ( document.HotSrch.srh_type[0].checked==true)
		{	
			if (document.HotSrch.InCityName.value!="")
			{
				document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].value=document.HotSrch.InCityName.value;
			}
			
			if ((document.HotSrch.InCityName.value=="")&&(document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].checked==true)&& (document.HotSrch.HotelName.value==""))
			{
				alert(HOTEL_REQUEST_HOTEL_CITY_NAME);			
				document.HotSrch.InCityName.focus();
				return (false);
			}
			
			
			if (document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].checked==true)
			{				
				if (trim(document.HotSrch.InCityName.value)=="")
				{ 
					alert(HOTEL_REQUEST_SAFE_EMPTY +  HOTEL_REQUEST_CITY_NAME);
					document.HotSrch.InCityName.focus();
				    return false;
				}
				if (!CheckSafeString(document.HotSrch.InCityName,HOTEL_REQUEST_CITY_NAME))
		        {
		            return false;
		        }				
			}
			
		} 
		
		else if (document.HotSrch.srh_type[1].checked==true)
		{		
		   if (!CheckEmptyAndSafeString(document.HotSrch.InScenicSpot,HOTEL_REQUEST_SCENERY))
		   {
		       return false;
		   }	  
		}
		
		else if (document.HotSrch.srh_type[2].checked==true)
		{			
			 if (!CheckEmptyAndSafeString(document.HotSrch.InLandMark,HOTEL_REQUEST_LINKMARK))
		     {
		         return false;
		     }        
		}
		
		
		if (!CheckInOutDate(document.HotSrch.CheckInDate,document.HotSrch.CheckOutDate,strServerDate))
		{ 
		   return false;
		}
		
		
		if (!CheckSafeString(document.HotSrch.HotelName,HOTEL_REQUEST_HOTEL_NAME))
		{
		    return false;
		}			
				
		var pp = Math.random();
		
		document.HotSrch.action="search.aspx?x="+pp;					
		document.HotSrch.submit();	

}


function CheckFixCityName()
{
    if ((document.HotSrch.raCityName!=null)&&(document.HotSrch.cityid==null))
	{
		if (document.HotSrch.InCityName.value!="")
		{
			document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].value=document.HotSrch.InCityName.value;
		}
			
		 if (document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].checked ==true)
		   {
		        if (!CheckEmptyAndSafeString(document.HotSrch.InCityName,HOTEL_REQUEST_CITY_NAME))
		        {
		           return false;
		        }		       
	       }	      		
		}
		
		else
		{
	
		if (document.HotSrch.cityid!=null)
		{
		   if (document.HotSrch.cityid[document.HotSrch.cityid.length - 1].checked ==true)
		   {
		        
		       if (!CheckEmptyAndSafeString(document.HotSrch.raCityName,HOTEL_REQUEST_CITY_NAME))
		        {
		           return false;
		        }		       
	       }
	   }   
	 }	   
      return true;
}


function CheckFixScenery()
{
  	if (document.HotSrch.sceneryid!=null)
		{
		   if (document.HotSrch.sceneryid[document.HotSrch.sceneryid.length - 1].checked ==true)
		   {
		        if (!CheckEmptyAndSafeString(document.HotSrch.InScenicSpot,HOTEL_REQUEST_SCENERY))
		        {
		           return false;
		        }		       
	       }
	   }
	   else
	   {
	       if (!CheckEmptyAndSafeString(document.HotSrch.InScenicSpot,HOTEL_REQUEST_SCENERY))
		   {
		         return false;
		   }		       
	   
	   }
	   return true;
}


function CheckFixLandmark()
{
   if (document.HotSrch.landmarkid!=null)
		{
		   if (document.HotSrch.landmarkid[document.HotSrch.landmarkid.length - 1].checked ==true)
		   {
		        if (!CheckEmptyAndSafeString(document.HotSrch.InLandMark,HOTEL_REQUEST_LINKMARK))
		        {
		           return false;
		        }        
	       }
	   }
	   else
	   {
	       if (document.HotSrch.InLandMark!=null)
	       {
	            if (!CheckEmptyAndSafeString(document.HotSrch.InLandMark,HOTEL_REQUEST_LINKMARK))
		        {
		           return false;
		        }    
		    }
	   }
	   return true;
}


function SubmitFixForm(obj,strFrom)
{		
   if (strFrom == "0")
   {		
	  if (!CheckFixCityName())return false;
   }
   
   else if (strFrom == "1")
   {
	  if (!CheckFixScenery())return false;
   }
   
   else
   {
	  if (!CheckFixLandmark())return false;
   }	  
			
	document.HotSrch.action="search.aspx?f=fix"
	document.HotSrch.submit();
}


function CheckLeftBox(obj,strServerDate)
{
	if (!CheckInOutDate(document.HotSrch.CheckInDate,document.HotSrch.CheckOutDate,strServerDate))
	{ 
	   return false;
	}
		
	if (!CheckSafeString(document.HotSrch.HotelName,HOTEL_REQUEST_HOTEL_NAME))
	{
	  return false;
	}		
	return true;
}


function SearchTypeClick(obj)
{	
	if (obj.value == 1)
	{
		document.getElementById("divSrh1").style.display = 'none';
		document.getElementById("divSrh2").style.display = 'block';
		document.getElementById("divSrh3").style.display = 'none';
	}
	
	else if (obj.value == 2 )
	{
		document.getElementById("divSrh1").style.display = 'none';
		document.getElementById("divSrh2").style.display = 'none';
		document.getElementById("divSrh3").style.display = 'block';	
	}
	
	else
	{
	    document.getElementById("divSrh1").style.display = 'block';
		document.getElementById("divSrh2").style.display = 'none';
		document.getElementById("divSrh3").style.display = 'none';
	}
}

function HotelTypeClick(i)
{
    
	for(j=1;j<=2;j++)
	{
	    if(j==i)
		{
			document.getElementById("hotel_type_title"+j).className="jiudian_haha";
			document.getElementById("sh_title_td" + j).background="images/hotel_title_bg" + j + ".jpg";
		}
		else
		{
			document.getElementById("hotel_type_title"+j).className="white";
			document.getElementById("sh_title_td" + j).background="";
		}
		
	}
}

function HotelTypeClickEn(i)
{
    
	for(j=1;j<=2;j++)
	{
	    if(j==i)
		{
			document.getElementById("hotel_type_title"+j).className="jiudian_haha";
			document.getElementById("sh_title_td" + j).background="images/hotel_title_bg" + "4" + ".jpg";
		}
		else
		{
			document.getElementById("hotel_type_title"+j).className="white";
			document.getElementById("sh_title_td" + j).background="";
		}
		
	}
}


function LinkMoreSearch_OnClick() 
{
   if (document.getElementById("morestar").style.display == 'none')
   {
  	  document.getElementById("morestar").style.display = 'block';
	  document.getElementById("moretext").style.display = 'none';
   }
   else
   {
	  document.getElementById("morestar").style.display = 'none';
    }
}


function RoomNumChange(objPersonNum,objRoomNum)
{
	/*var theForm = obj.form;
	var j = 0;
	var oldValue =document.getElementById("PersonNum").value;
	
	if (document.getElementById("PersonNum").length>0)
	{
		for (i=0;i<=20;i++)
		{
			if (document.getElementById("PersonNum").options[0]!=null)
			{
				document.getElementById("PersonNum").remove(0);
			}
		}
	}
			
	for (var i=document.getElementById("RoomNum").value; i<= document.getElementById("RoomNum").value*4;i++)
	{		
		document.getElementById("PersonNum").options[j] = new Option(i);		
		document.getElementById("PersonNum").options[j].value = i;
		j++;
	}*/
	
	var j = 0;
		
	if (objPersonNum.length>0)
	{
		for (i=0;i<=20;i++)
		{
			if (objPersonNum.options[0]!=null)
			{
				objPersonNum.remove(0);
			}
		}
	}
			
	for (var i=objRoomNum.value; i<= objRoomNum.value*4;i++)
	{		
		objPersonNum.options[j] = new Option(i);		
		objPersonNum.options[j].value = i;
		j++;
	}
	
	return;
									
}
					

function LinkRoomNum_OnClick() 
{
   if (document.getElementById("ROOMNUMTABLE").style.display == 'none')
   {
	  document.getElementById("ROOMNUMTABLE").style.display = 'block';
   }
   else
   {
  	  document.getElementById("ROOMNUMTABLE").style.display = 'none';
   }
}


function ClickOtherSelect(strFlag)
{
    switch(strFlag)
    {
       case "raCityName":
       {
          document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].checked=true;
          break;
       }
       case "cityid":
       {
          document.HotSrch.cityid[document.HotSrch.cityid.length - 1].checked=true;
          break;
       }
       case "landmarkid":
       {
          document.HotSrch.landmarkid[document.HotSrch.landmarkid.length - 1].checked=true;
          break;
       }
       case "sceneryid":
       {
          document.HotSrch.sceneryid[document.HotSrch.sceneryid.length - 1].checked=true;
          break;
       }
    }
	
}

function InCityNameFocus(obj)
{
	obj.select();
	document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].value=document.HotSrch.InCityName.value;
	document.HotSrch.currCityName.value=document.HotSrch.InCityName.value;
	changeSelect(document.HotSrch.area_id,document.HotSrch.InCityName.value);
}


function InCityNameChange(obj)
{
    document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].value=document.HotSrch.InCityName.value;
	document.HotSrch.currCityName.value=document.HotSrch.InCityName.value;
	changeSelect(document.HotSrch.area_id,document.HotSrch.InCityName.value);
}


function Radio_OnClick(obj)
{
	var formName = obj.form;
	document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].value=-1;
	document.HotSrch.InCityName.value='';
	document.HotSrch.currCityName.value=obj.value;
	changeSelect(document.HotSrch.area_id, obj.value);
}
	

function CityChange(obj)
{
	if (document.HotSrch.InCityName.value=="")
	{
		changeSelect(document.HotSrch.area_id, document.HotSrch.currCityName.value);
	}
	else
	{
		changeSelect(document.HotSrch.area_id,document.HotSrch.InCityName.value);
	}
}


function  radio_select(areatype)
{
	if (areatype =="")
	{
		return;
	}

	if(areatype==1)
	{	
	  document.HotSrch.checkarea[0].checked =true;		
	}
	else if(areatype==0)
	{
	  document.HotSrch.checkarea[1].checked =true;
	}
	
}


function btnShowList_onclick() 
{
	if (document.getElementById("divCityName").style.display == 'none')
	{
		document.getElementById("divCityName").style.display = 'block';
		LoadSelectCityList(document.getElementById("slCityName"))
	}
	else
	{
		document.getElementById("divCityName").style.display = 'none';
	}
}


function UCListBox_click()
{
	document.getElementById("InCityName").value = document.getElementById("slCityName").value;
	document.getElementById("divCityName").style.display = 'none';
	document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].checked=true;
	document.HotSrch.raCityName[document.HotSrch.raCityName.length - 1].value=document.HotSrch.slCityName.value;	
	changeSelect(document.HotSrch.area_id,document.HotSrch.slCityName.value);
	return false;
}


function radio_checked(r1,i1,r1_value)
{
	var ncount=0;
	for (i=0;i<r1.length;i++)
	{
		if (r1[i].value==r1_value)
		{   
			ncount = ncount+1;
			r1[i].checked=true;
			break;
		}
	}
	if (ncount==0)
	{
	   i1.value = r1_value
	   r1[r1.length - 1].checked=true;
	}
	document.HotSrch.currCityName.value=r1_value;		
	changeSelect(document.HotSrch.area_id,r1_value);	
}								


function window_onload()
{
	i = document.getElementById("InCityName").style.height;
	//document.getElementById("btnShowList").style.width = i;
	//document.getElementById("btnShowList").style.height = i;
	
    if (document.HotSrch.srh_type[0]!=null)
    {
		//if (document.getElementById("HotelName").value != "")
		//{
		//	LinkMoreSearch_OnClick();
		//}
		
	   if (document.HotSrch.srh_type[0].checked==true)
	   {
		  document.HotSrch.srh_type[0].checked=true;
		  SearchTypeClick(document.HotSrch.srh_type[0]);			
	      changeSelect(document.HotSrch.area_id,document.HotSrch.currCityName.value);			
	      return;
		}	 
	 }
	 	
	 if (document.HotSrch.srh_type[1]!=null)
	 {
	    if ( document.HotSrch.srh_type[1].checked==true)
		{
			document.HotSrch.srh_type[1].checked=true;
			SearchTypeClick(document.HotSrch.srh_type[1]);			
	      	return;
		}
	 }
	  
	 if (document.HotSrch.srh_type[2]!=null)
	 {
	    if ( document.HotSrch.srh_type[2].checked==true)
		{
			document.HotSrch.srh_type[2].checked=true;
			SearchTypeClick(document.HotSrch.srh_type[2]);			
	      	return;
		}	  
	  }	
}

	
function onBooking(hid,rid,id)
	{
	
	
	document.HotSrch.hotelid.value = hid;
	document.HotSrch.roomtypeid.value = rid;
	document.HotSrch.roomid.value = id;
	
	
	
	//if(document.HotSrch.hotelid == null)
	//{
	//	alert(hid);
	//	document.HotSrch.appendChild(document.createElement("<input type=hidden name=hotelid value=" + hid +">"));
	//}
	//document.HotSrch.appendChild(document.createElement("<input type=hidden name=roomtypeid value=" + rid +">"));
	//document.all.HotSrch.appendChild(document.createElement("<input type=hidden name=indate value=" + ind +">"));
	//document.all.HotSrch.appendChild(document.createElement("<input type=hidden name=outdate value=" + outd +">"));
	
	
//	HotSrch.action="Default.aspx?g=hcon";


document.HotSrch.action="Confirm.aspx";


	//var pp = Math.random();
	//document.HotSrch.action="Confirm.aspx?xx="+pp;

	//alert(document.all.roomid.value);
	document.HotSrch.submit();

}

/*
24、window_onload()：360度全景展示
*/
function showVirtual(hid)
{
   return ;
  
  //alert("现在还没有! " + hid);
}


function HotelDetails(hid,show){
		

	}
	
function Radio_City_OnClick(obj)
{
	var formName = obj.form;
	document.HotSrch.cityid[document.HotSrch.cityid.length - 1].value=-1;
	document.HotSrch.raCityName.value='';	
}

function Radio_Mark_OnClick(obj)
{
	var formName = obj.form;
	document.HotSrch.landmarkid[document.HotSrch.landmarkid.length - 1].value=-1;
	document.HotSrch.InLandMark.value='';	
}

function Radio_Spot_OnClick(obj)
{
	var formName = obj.form;
	document.HotSrch.sceneryid[document.HotSrch.sceneryid.length - 1].value=-1;
	document.HotSrch.InScenicSpot.value='';	
}

function option_select(s1,s1_value)
	{
		
		for (i=0;i<s1.length;i++)
		{
			if (s1.options[i].value==s1_value)
			{
				s1.selectedIndex=i;
			}			
		}
	}



