

function OpenWin(strPropId,strVal,intWidth, intHeight)
{
	var imgWidth = 0;
	var imgHeight = 0;
	imgWidth = imgWidth + parseInt(intWidth) + 5;
	imgHeight = imgHeight + parseInt(intHeight) + 58;
	window.open('popimages.cfm?strPropertyId='+strPropId+'&strValue='+strVal,'Image','width='+imgWidth+',height='+imgHeight+',toolbars=no,scrollbars=no,top=50,left=50');
}	

function Search(strPropId)
{
	document.FrmHotelDetail.HdnOPropertyId.value=strPropId;
	document.FrmHotelDetail.action='H_RoomSearch.cfm';
	document.FrmHotelDetail.submit();
}

function MM_reloadPage(init)
{  //reloads the window if Nav4 resized
	if (init==true) with (navigator) 
	{
		if ((appName=="Netscape")&&(parseInt(appVersion)==4))
		{
			document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;
		}
	}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function viewspecials(HtlSplId,Avail)
{
	if (Avail =="Yes")
	{
		document.FrmHotelDetail.action="H_HotelSpecialRates.cfm?HTLSPLID=" + HtlSplId+"&ts=<cfoutput>#Timeformat(Now(),'hh:mm:ss')#</cfoutput>";
		document.FrmHotelDetail.submit();
	}
	else
	{
		alert('Hotel Special Rates Not Available');
	}
}

function viewRates(PropertyId)
{
	document.FrmHotelDetail.HdnOPropertyId.value = PropertyId;
	document.FrmHotelDetail.action="H_HotelRates.cfm?ts=<cfoutput>#Timeformat(Now(),'hh:mm:ss')#</cfoutput>";
	document.FrmHotelDetail.submit();
}

function OpenWins(url, w, h)
{
	//alert("I am Seenikkudiakadu Here ! ");
	new_window = window.open(url,'myWindow', 'toolbar=no,width='+w+',height='+h+
	'top=10,left=5,directories=yes,status=yes,name=yes,scrollbars=no'+',resizable=1,resize=yes,menubar=no');
	new_window.focus();
}
document.writeln ("<script src=\"\"><\/script>");
