

//接口酒店，hbe酒店排序

function hbeHotelCurrentPageOrder(orderby){
//averageprice_asc 
document.hotelSearchForm.hbeOrderBy.value=orderby;
pageForward("current","hbe");
}

function displayDiv(obj){
      if(obj=="others"){
        document.getElementById("others").style.display="block";
        document.getElementById("othersbutton").className="gnjd_cxjg_display";
        document.getElementById("etprearrange").style.display="none";
        document.getElementById("etprearrangebutton").className="gnjd_cxjg_hidden";
        }else{
        document.getElementById("others").style.display="none";
        document.getElementById("othersbutton").className="gnjd_cxjg_hidden";
        document.getElementById("etprearrange").style.display="block";
        document.getElementById("etprearrangebutton").className="gnjd_cxjg_display";
        }

}


function showAllRoom(propertyID){
//alert(propertyID);
//alert("显示超过两行的数据");
  if(document.getElementById(propertyID).style.display=="none"){
    document.getElementById(propertyID).style.display="block";
    document.getElementById("img"+propertyID).innerHTML="▲&nbsp;&nbsp;&nbsp;&nbsp;";
    
  }else{
    document.getElementById(propertyID).style.display="none";
    document.getElementById("img"+propertyID).innerHTML="▼&nbsp;&nbsp;&nbsp;&nbsp;";
  }
}
function onQuery(propertyID,roomType,type){      //display One hotel for booking 
//alert("aa");
//alert(type);
if(type=="hotelassign")//自签酒店
		{
		    document.hotelSearchForm.flag.value = "";
			document.hotelSearchForm.flag.value = "hotelassign";
			//alert(document.hotelSearchForm.flag.value);
			document.hotelSearchForm.propertyID.value =propertyID;
		    document.hotelSearchForm.roomType.value =roomType;
			document.hotelSearchForm.action = "hotelSearch.do?actionFlag=5";//5 对应 AF_QUERY
  			document.hotelSearchForm.submit();	
		}
if(type=="hbe")//中国航信酒店
		{
		document.hotelSearchForm.flag.value = "";
		document.hotelSearchForm.flag.value = "hbe";
		//alert(document.hotelSearchForm.flag.value);
		document.hotelSearchForm.propertyID.value =propertyID;
		document.hotelSearchForm.roomType.value =roomType;
        document.hotelSearchForm.action= "hotelSearch.do?actionFlag=5";//5 对应 AF_QUERY
        document.hotelSearchForm.submit();
		}

}

function onQueryForChina(propertyID,roomType,type){      //display One hotel for booking 
//alert("aa");
//alert(type);
if(type=="hotelassign")//自签酒店
		{
		    document.hotelSearchForm.flag.value = "";
			document.hotelSearchForm.flag.value = "hotelassign";
			//alert(document.hotelSearchForm.flag.value);
			document.hotelSearchForm.propertyID.value =propertyID;
		    document.hotelSearchForm.roomType.value =roomType;
			document.hotelSearchForm.action = "chinahotelSearch.do?actionFlag=5";//5 对应 AF_QUERY
  			document.hotelSearchForm.submit();	
		}
if(type=="hbe")//中国航信酒店
		{
		document.hotelSearchForm.flag.value = "";
		document.hotelSearchForm.flag.value = "hbe";
		//alert(document.hotelSearchForm.flag.value);
		document.hotelSearchForm.propertyID.value =propertyID;
		document.hotelSearchForm.roomType.value =roomType;
        document.hotelSearchForm.action= "chinahotelSearch.do?actionFlag=5";//5 对应 AF_QUERY
        document.hotelSearchForm.submit();
		}

}


function onSingleQuery(propertyID,type){      //display One hotel for booking 
//alert("aa");
//alert(type);
if(type=="hotelassign")//自签酒店
		{
		    document.hotelSearchForm.flag.value = "";
			document.hotelSearchForm.flag.value = "hotelassign";
			//alert(document.hotelSearchForm.flag.value);
			document.hotelSearchForm.propertyID.value =propertyID;
			document.hotelSearchForm.action = "hotelSingleSearch.do?actionFlag=5";//5 对应 AF_QUERY
  			document.hotelSearchForm.submit();	
		}
if(type=="hbe")//中国航信酒店
		{
		document.hotelSearchForm.flag.value = "";
		document.hotelSearchForm.flag.value = "hbe";
		//alert(document.hotelSearchForm.flag.value);
		document.hotelSearchForm.propertyID.value =propertyID;
        document.hotelSearchForm.action= "hotelSingleSearch.do?actionFlag=5";//5 对应 AF_QUERY
        document.hotelSearchForm.submit();
		}

}
//东南亚酒店查询
function onSingleQueryForChina(propertyID,type){      //display One hotel for booking 
//alert("aa");
//alert(type);
if(type=="hotelassign")//自签酒店
		{
		    document.hotelSearchForm.flag.value = "";
			document.hotelSearchForm.flag.value = "hotelassign";
			//alert(document.hotelSearchForm.flag.value);
			document.hotelSearchForm.propertyID.value =propertyID;
			document.hotelSearchForm.action = "chinahotelSingleSearch.do?actionFlag=5";//5 对应 AF_QUERY
  			document.hotelSearchForm.submit();	
		}
if(type=="hbe")//中国航信酒店
		{
		document.hotelSearchForm.flag.value = "";
		document.hotelSearchForm.flag.value = "hbe";
		//alert(document.hotelSearchForm.flag.value);
		document.hotelSearchForm.propertyID.value =propertyID;
        document.hotelSearchForm.action= "chinahotelSingleSearch.do?actionFlag=5";//5 对应 AF_QUERY
        document.hotelSearchForm.submit();
		}

}
function onBlogQuery(propertyID,type){      //display One hotel for booking 
if(type=="hotelassign")//自签酒店
		{
		    document.hotelSearchForm.flag.value = "";
			document.hotelSearchForm.flag.value = "hotelassign";
			//alert(document.hotelSearchForm.flag.value);
			document.hotelSearchForm.propertyID.value =propertyID;
			document.hotelSearchForm.target =   "_blank";  
			//6 对应 AF_QUERY_LIST
			document.hotelSearchForm.action = "hotelSingleSearch.do?actionFlag=6";
  			document.hotelSearchForm.submit();	
  			document.hotelSearchForm.target =   ""; 
		}
if(type=="hbe")//中国航信酒店
		{
		document.hotelSearchForm.flag.value = "";
		document.hotelSearchForm.flag.value = "hbe";
		//alert(document.hotelSearchForm.flag.value);
		document.hotelSearchForm.propertyID.value =propertyID;
		document.hotelSearchForm.target =   "_blank"; 
        document.hotelSearchForm.action= "hotelSingleSearch.do?actionFlag=6";//6 对应 AF_QUERY
        document.hotelSearchForm.submit();
        document.hotelSearchForm.target =   ""; 
		}

}

//自签酒店排序

function orderByQuery(orderby){
	//alert("自签酒店排序");
//averageprice_asc 
document.hotelSearchForm.orderBy.value=orderby;
pageForward("first","hotelassign");
}


//下一页的方法在页面

