﻿function resaprologin()
{

var login=document.getElementById("resapro");
var password=document.getElementById("password");
var iata=document.getElementById("iata");
var ccn=document.getElementById("ccn");
if(ccn!=null && typeof(ccn)!="undefined" && ccn.value.length>0)ccn="&ccn="+encodeURIComponent(ccn.value);
else ccn="";
document.location.href="http://webbooking.louvre-hotels.fr/book/switch.aspx?resapro="+encodeURIComponent(login.value) + "&password="+encodeURIComponent(password.value)+ "&iata="+encodeURIComponent(iata.value)+ccn;
}

function welcomSport()
{

var ccn=document.getElementById("ccn");
if(ccn!=null && typeof(ccn)!="undefined" && ccn.value.length>0 && ccn.value.indexOf("WelcomSport") < 0 )ccn="&ccn="+encodeURIComponent(ccn.value).toUpperCase();
else ccn="";

if (ccn=="")
alert("Veuillez saisir votre N°WelcomSport");
else {
if (ccn.indexOf("SPT") < 0 )
{
alert("Veuillez saisir un N°WelcomSport valide");
}
else
document.location.href="http://webbooking.louvre-hotels.fr/book/switch.aspx?" +ccn;
}
}

function launchOffre(url){
winName="Conditions";
features="status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=0,scrollbars=1, width=590, height=650"
theURL = "http://b2b.louvrehotels.com/fr/Associations/" + url;
window.open (theURL,winName,features);
}

