function PopupHotel(Hotel_ID) 
{
	window.open('/Hotel/HotelDetails.cfm?hid=' + Hotel_ID, 'Hotel'+ Hotel_ID,'toolbar=no,width=400,height=390,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupLHotel(Hotel_ID) 
{
	window.open('/Hotel/Hotel.cfm?hid=' + Hotel_ID, 'Hotel'+ Hotel_ID,'toolbar=no,width=850,height=700,left=0,top=50,status=no,scrollbars=yes,resizable=yes');
}

function PopupLHotelBid(Hotel_ID, Bid_ID) 
{
	window.open('/Hotel/Hotel.cfm?hid=' + Hotel_ID + '&Bid_ID=' + Bid_ID, 'Hotel'+ Hotel_ID,'toolbar=no,width=930,height=600,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupLHotelMap(Hotel_ID, Bid_ID) 
{
	window.open('/Hotel/Hotel.cfm?hid=' + Hotel_ID + '&Bid_ID=' + Bid_ID + '#MapSection', 'Hotel'+ Hotel_ID,'toolbar=no,width=930,height=600,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupHotelTN(Hotel_ID,Supplier_Code) 
{
	window.open('/Hotel/HotelTNDetails.cfm?hid=' + Hotel_ID + '&src=' + Supplier_Code, 'Hotel'+ Hotel_ID,'toolbar=no,width=700,height=500,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupGetHotel(Name,Zip,ID) 
{
	window.open('/Hotel/HotelPopup.cfm?name=' + Name + '&zip=' + Zip + '&hid=' + ID, 'Hotel' + ID,'toolbar=no,width=780,height=500,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupGallery(UrlParams) 
{
	window.open('/Common/Popups/PhotoGallery.cfm?'+UrlParams, 'PhotoGallery','toolbar=no,width=600,height=600,left=250,top=150,status=yes,scrollbars=yes,resizable=yes');
}

function PopupTerms()
{
	window.open('/Terms.cfm?DisplayAsPopup=true', 'Terms','toolbar=no,width=500,height=500,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupGroupFAQ(qid)
{
	window.open('http://www.HotelPlanner.com/Group/FAQ.cfm?DisplayAsPopup=True#'+qid, 'FAQ'+qid,'toolbar=no,width=500,height=300,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupHotelFAQ(qid)
{
	window.open('http://www.HotelPlanner.com/Hotel/FAQ.cfm?DisplayAsPopup=True#'+qid, 'FAQ'+qid,'toolbar=no,width=600,height=200,left=150,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupPrivacy()
{
	window.open('/Privacy.cfm?DisplayAsPopup=true', 'Privacy','toolbar=no,width=500,height=500,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupScore(IsHotel)
{
	window.open('/Common/Popups/HotelScore.cfm?IsHotel='+IsHotel, 'Score','toolbar=no,width=450,height=350,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupRatingSystem()
{
	window.open('/Common/Popups/RatingSystem.cfm', 'Ratings','toolbar=no,width=500,height=450,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupRoomType(roomTypeId, hotelId, currencyCode)
{
	window.open('http://www.HotelPlanner.com/Common/Popups/RoomType.cfm?roomTypeId='+roomTypeId+'&hotelId='+hotelId+'&currencyCode='+currencyCode , 'RoomType'+roomTypeId,'toolbar=no,width=500,height=450,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupRateTypes()
{
	window.open('http://www.HotelPlanner.com/Common/Popups/RateType.cfm', 'RateType','toolbar=no,width=500,height=300,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupRebate(PID)
{
	window.open('/Common/Popups/Rebate.cfm?DisplayAsPopup=True&pid='+PID, 'Rebate','toolbar=no,width=500,height=500,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupGroupFriendly(Bid_ID, GroupType, IsFriendly)
{
	window.open('/Common/Popups/GroupFriendly.cfm?Bid_ID='+Bid_ID+'&GroupType='+GroupType+'&IsFriendly='+IsFriendly, 'GroupFriendly'+Bid_ID,'toolbar=no,width=550,height=375,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupGroupStatus()
{
	window.open('/Common/Popups/GroupStatus.cfm', 'GroupStatus','toolbar=no,width=500,height=330,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function PopupSpaceCalculator()
{
	window.open('/Common/Popups/SpaceCalculator.cfm?DisplayAsPopup=True', 'SpaceCalculator','toolbar=no,width=700,height=750,left=25,top=25,status=no,scrollbars=yes,resizable=yes');
}

function Feedback()
{
	window.open('/Common/Popups/Feedback.cfm', 'Feedback','toolbar=no,width=500,height=425,left=200,top=100,status=no,scrollbars=yes,resizable=yes');
}

function OpenConvert(rate,currency)
{
    window.open('/Common/Popups/CurrencyConverter.cfm?CurrencyValueFrom='+ rate +'&CurrencyCodeFrom=' + currency, 'Convert', 'width=750,height=215,left=200,top=100,resizable=0');
}

function PopupVisualTour(theURL, Type)
{
	if (Type == 0)
		window.open(theURL, 'VisualTour','location=no,scrollbars=no,width=556,height=457,resizable=yes'); 
	else if (Type == 3)
		window.open(theURL, 'VisualTour','location=no,scrollbars=no,width=780,height=600,resizable=yes'); 
	else
		window.open(theURL, 'VisualTour','location=no,scrollbars=no,width=710,height=500,resizable=yes'); 
}
function PopupMap(Address) 
{
	var randomnumber=Math.floor(Math.random()*10000)
	popupMap = window.open('http://www.hotelplanner.com/Common/Popups/Map.cfm?Address=' + Address, 'Map' + randomnumber,'location=no,scrollbars=yes,width=800,height=620,resizable=yes'); 
} 
function Map(url) 
{
	popupMap = window.open(url, 'Map','location=yes,scrollbars=yes,width=575'); 
} 
