﻿// JScript 文件
      mainLoop = function()
		{
			val = escape(queryField.value);				
			if (lastVal != val)
			{				
				var response = Hotel_HotelListHtml.GetSearchItems(val);
				showQueryDiv(response.value);
				lastVal = val;
			}				
			setTimeout('mainLoop()', 10);
			return true;
		}
		function ViewDayPrice(strRName,strHId,oSpan)
		    {
		        RoomPriceDay.style.display = '';
				RoomPriceDay.style.left = oSpan.offsetLeft + oSpan.offsetWidth - 300;
				RoomPriceDay.style.top = oSpan.offsetTop + oSpan.offsetHeight;
				RoomPriceDay.innerHTML = unescape(hotel_HotelListHtml.getViewRoomPriceDay(strHId,strRName).value);
		    }
		    function hideRoomPriceDate()
			{
			   RoomPriceDay.style.display = 'none'; 
			}
	        function setCheckInDate(d)
            {
	            document.getElementById("StartDate").value=d;
	            if(document.getElementById("EndDate").value.length==1)
	            {
		            showCalendar('EndDate',false,'EndDate','StartDate');
	            }
            }
            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 owls()
            {
                window.open('http://www.dl766.com/Tripline/TripLineBH000006.html','','');
                return false;
            }
            function owjst()
            {
                window.open('http://www.dl766.com/TripLine/triplineBH000007.html','','');
                return false;
            }
