	function bookIt()
	{
		Month=	window.document.iform.Month.options[window.document.iform.Month.options.selectedIndex].value;
		var date_temp = window.document.iform.Date.options[window.document.iform.Date.options.selectedIndex].value;
		Year=String(Month).substring(2,6);
		Month=String(Month).substring(0,2);
		//HotelID=document.iform.HotelID.value;
		HotelID="";
		DateIn=Month + "/" + date_temp + "/" + Year;
		Length=document.iform.Length.value;
		Rooms=document.iform.Rooms.value;
		Adults=document.iform.Adults.value;
		Children=document.iform.Children.value;

		var check_In=new Date();
		check_In=new Date(Month+"/"+date_temp+"/"+Year);
		var strCurrentDate = new Date();
		strCurrentDate.setHours(0,0,0,0)

		if(check_In<strCurrentDate)
		{
			alert("Check-IN Date can not be passed date.");
			window.document.iform.Date.focus();
		}
		else
		{
			//if(HotelID == 6022)
			//{
				bookURL = "https://booking.ihotelier.com/istay/istay.jsp?LanguageID=1&hotelid=6022&DateIn="+DateIn+"&Length="+Length+"&Rooms="+Rooms+"&Adults="+Adults+"&Children="+Children;
				
				bookURL = pageTracker._getLinkerUrl(bookURL);
			//}
			//else
			//{
			//	bookURL = "https://reservations.ihotelier.com/onescreen.cfm?LanguageID=1&HotelID=6022&DateIn="+DateIn+"&Length="+Length+"&Rooms="+Rooms+"&Adults="+Adults+"&Children="+Children;
			//}
			
			XX = screen.availWidth;
			YY = screen.availHeight;

			bookNow = window.open(bookURL,"_blank","LEFT=0,TOP=0,WIDTH="+XX+",HEIGHT="+YY+",toolbar=yes,location=yes,directories=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes");
			bookNow.focus();
		}
	}
