﻿function goBook(brand,language){
var wifiParameter, barParameter;

if (selectedCountry===null || selectedCountry === "")
	selectedCountry = "FRA";

if(document.getElementById("QuickBooking_Wifi").checked)
	wifiParameter="&fw=1";
else
	wifiParameter="";
/*if(document.getElementById("QuickBooking_BestRate").checked)
	barParameter="&fp=1";
else */
	barParameter="";

document.location.href="http://webbooking.louvre-hotels.fr/book/switch.aspx?s=" + brand + "&l=" + language +
	"&city=" + encodeURIComponent(document.getElementById("QuickBooking_City").value)+
	"&country="+selectedCountry+
	"&doarrival="+encodeURIComponent(document.getElementById("QuickBooking_CheckIn").value)+
	"&dodepart="+encodeURIComponent(document.getElementById("QuickBooking_CheckOut").value)+
	"&a="+selectedAdults+
	"&k="+selectedChildren+
	wifiParameter + barParameter +
	"&rn="+selectedRoomsCount+
	"&gtr=1";
}
