// JavaScript Document
// 隐藏窗体加载效果
function hideLayer(_hidden)
{
	this._hidden = _hidden?_hidden:"hidden";
	// IE5+, NN6+
	if (document.getElementById)
	{
		oElement = document.getElementById("ie");
	// IE4
	}else if (document.all){
		oElement = document.all("ie");
	// NN4
	}else if (document.layers){
		oElement = document.layers["ns"];
	}
	if (oElement != null && document.layers)
	{
		oElement.visibility = this._hidden;
	}else if (oElement != null){
		oElement.style.visibility = this._hidden;
	}
}
function $obj(_sId){
	return document.getElementById(_sId);
}
function HotelQuery(){
	aa=document.hotel_ser;
	if(aa.CityName.value==""){
		alert("入住城市不能为空！");
		return false
	}
	if(aa.ComeTime.value==""){
		alert("入住日期不能为空！");
		return false
	}
	if(aa.GoTime.value==""){
		alert("离店日期不能为空！");
		return false
	}
	aa.target='frame1';
	aa.action='warrant.asp';
	aa.submit();
	$obj("ns").style.visibility='visible';
	$obj("ie").style.visibility='visible';
}
function HotelQueryOk(_Str){
	aa=document.hotel_ser;
	aa.target='_self';
	aa.action='HotelQuery.Asp?action=search';
	aa.CheckCode.value=_Str;
	aa.submit();
}
//酒店详情查看showModelessDialog
function HotelInfo(HotelID,ComeTime,GoTime){
	window.open("HotelInfo.Asp?HotelId="+HotelID+"&ComeTime="+ComeTime+"&GoTime="+GoTime+"&Random="+Math.random(),"","Width=760px,Height=550px,top=100,left=100,status=no,scrollbars=yes")
}
function HotelOrder(Str){
	alert("演示系统暂不提供预订功能！");
	return false
}