function sHotel(path,open)
	{
		var obj=document.form2;
		var hID=obj.hotel.value;
		if(obj.hotel.value==""){alert("เลือกชื่อโรงแรมก่อน");obj.hotel.focus();}
		else
			{
				var url=path+"/"+hID;
				var currentUrl=window.location.href;
				//alert(currentUrl);
				if(!open)
					{
						window.location.href=url;
					}
				else
					{
						window.open(url);
					}
				//window.open(url);
			}
	}

function sHowHotel(aID,path,pID)
	{
		getID("shotel").innerHTML="<img src=\""+path+"/images/indicator.gif\" align=\"absmiddle\"> <font color=\"red\">กำลังค้นหาข้อมูล</font>";
		var setURL="/engine.php?sCommand=OrderBy&aID="+aID+"&pID="+pID;
		requestServer_get(setURL,"Received_Sub(xmlHttp.responseText);","Received_get_Error();");

	}

function Received_Sub(dataText)
	{
		getID("shotel").innerHTML=dataText;
	}

//กรณีที่ติดต่อ server ไม่ได้ (ใช้ร่วม)
function Received_get_Error()
	{
		alert("ติดต่อ Server ไม่ได้");
	}
