﻿function goBook(brand,language){
var wifiParameter;

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";
}
function AddPopups()
{
	var links=document.getElementsByTagName("a");
	for (var li=0;li<links.length;li++)
	{
		if(links[li].href.indexOf("/popup/")>0 && links[li].target=="_blank")
		{
			links[li].href="javascript:window.open('"+links[li].href+"','popup','status=0, height=360, width=436, resizeable=0');void(null)";
			links[li].target="";
		}
	}
}
