	function OpenWin(strPropId,strVal,intWidth,intHeight){
		var imgWidth = 0;
		var imgHeight = 0;
		imgWidth = imgWidth + parseInt(intWidth) + 5;
		imgHeight = imgHeight + parseInt(intHeight) + 45;
		window.open('popimages.cfm?strPropertyId='+strPropId+'&strValue='+strVal,'Image','width='+imgWidth+',height='+imgHeight+',toolbars=no,scrollbars=no,top=50,left=50');
	 }	

	function Detail(strPropertyId){
		document.FrmDetailedListing.HdnOPropertyId.value=strPropertyId;
		document.FrmDetailedListing.action='H_HotelDetail.cfm?HdnOPropertyId='+strPropertyId;
		document.FrmDetailedListing.submit();
	}
	function ViewDetail(){
		var strPropertyId = document.FrmDetailedListing.SelOHotel.options[document.FrmDetailedListing.SelOHotel.selectedIndex].value;
		if (strPropertyId != ""){
			document.FrmDetailedListing.HdnOPropertyId.value=strPropertyId;
			document.FrmDetailedListing.action='H_HotelDetail.cfm';
			document.FrmDetailedListing.submit();
		}
	}

	function Search(strPropId){
		document.FrmDetailedListing.HdnOPropertyId.value=strPropId;
		document.FrmDetailedListing.action='H_HotelDetail.cfm';
		document.FrmDetailedListing.submit();
	}
	function CheckAvail(strPropId,VendorId){
		
		document.FrmDetailedListing.HdnOPropertyId.value=strPropId;
		document.FrmDetailedListing.action='H_RoomSearch.cfm';
		document.FrmDetailedListing.submit();
	}
	function Navigate(strVendorId,strLocId,strStartRow,StrSortBy){
		document.FrmDetailedListing.HdnOLocationId.value=strLocId;
		document.FrmDetailedListing.HdnOVendorId.value=strVendorId;
		document.FrmDetailedListing.HdnOStartRow.value=strStartRow;
		document.FrmDetailedListing.HdnOSortBy.value=StrSortBy;
		document.FrmDetailedListing.submit();
	}
	function SortBy(StrSort,strVendorId){
		document.FrmDetailedListing.HdnOAction.value="";
		document.FrmDetailedListing.HdnOSortBy.value=StrSort;
		document.FrmDetailedListing.HdnOVendorId.value=strVendorId;
		if(document.FrmDetailedListing.HdnOOrder.value == 'Asc'){
			document.FrmDetailedListing.HdnOOrder.value = "Desc";
		}
		else{
			document.FrmDetailedListing.HdnOOrder.value = "Asc";		
			
		}
		document.FrmDetailedListing.submit();
		

	}
        function SortBy1(StrSort,strVendorId){
		document.FrmDetailedListing.HdnOAction.value="SortByPrice";
		document.FrmDetailedListing.HdnOSortBy.value=StrSort;
		document.FrmDetailedListing.HdnOVendorId.value=strVendorId;
		if(document.FrmDetailedListing.HdnOOrder.value == 'Asc'){
			document.FrmDetailedListing.HdnOOrder.value = "Desc";
		}
		else{
			document.FrmDetailedListing.HdnOOrder.value = "Asc";		
			
		}
		
		document.FrmDetailedListing.submit(); 
		

	}
	function ShowAll(strVendorId){
	
		document.FrmDetailedListing.HdnOAction.value="";
                document.FrmDetailedListing.HdnOPropertyName.value="";
                document.FrmDetailedListing.DatRCheckOutDate.value="";
                document.FrmDetailedListing.DatRCheckInDate.value="";
		document.FrmDetailedListing.HdnOLocationId.value="";
		document.FrmDetailedListing.HdnOSortBy.value="";
		document.FrmDetailedListing.HdnOOrder.value="";
		document.FrmDetailedListing.submit();
	}
	function Location(strVendorId){
		strLocId =document.FrmDetailedListing.SelOLocation.value;
		document.FrmDetailedListing.HdnOLocationId.value=strLocId;
		document.FrmDetailedListing.HdnOVendorId.value=strVendorId;
		document.FrmDetailedListing.submit();
	}
          
		