﻿// JScript 文件
    mainLoop = function()
		{
			val = escape(queryField.value);				
			if (lastVal != val)
			{				
				var response = Hotel_HotelListHtml200811.GetSearchItems(val);
				showQueryDiv(response.value);
				lastVal = val;
			}				
			setTimeout('mainLoop()', 10);
			return true;
		}
		 function ViewDayPrice(strRName,strHId,oSpan)
		    {
		        document.getElementById("RoomPriceDay").style.display = '';
				document.getElementById("RoomPriceDay").style.left = document.getElementById(oSpan).offsetLeft + document.getElementById(oSpan).offsetWidth - 300 + "px";
				document.getElementById("RoomPriceDay").style.top = document.getElementById(oSpan).offsetTop + document.getElementById(oSpan).offsetHeight + "px";
				document.getElementById("RoomPriceDay").innerHTML = unescape(Hotel_HotelListHtml200811.getViewRoomPriceDay(strHId,strRName).value);
		    }
		    function hideRoomPriceDate()
			{
			   document.getElementById("RoomPriceDay").style.display = 'none'; 
			}
            function ow(URL) {
                width=510;
                height=220;
                var left = ( screen.width - width ) / 2;
                var top = ( screen.height - height ) / 5;
                window.open(URL,'','width=300,height=270,top='+top+',left='+left+',resizable=0');
                return false;
            }
            function owdateprice(URL) {
                width=600;
                height=450;
                var left = ( screen.width - width ) / 2;
                var top = ( screen.height - height ) / 5;
                window.open(URL,'','width=600,height=450,top='+top+',left='+left+',resizable=0');
                return false;
            }
            function owVirtual(URL) {
width=776;height=450;
                var left = ( screen.width - width ) / 2;
                var top = ( screen.height - height ) / 5;
                window.open(URL,'','width=776,height=450,top='+top+',left='+left+',resizable=0');
                return false;
            }
function mapHotel(sHId)
{
	window.open('/hotel/HotelMap.aspx?HId=' + sHId,'','width=610,height=510')
}

