function validEmail(emval)
{
return emval.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)
}
function bf_Validator(flightShoprequest)
{
if(flightShoprequest._originSelected.value=="")
{
alert(deCode("Veuillez inscrire votre Point de D&#233;part."));
flightShoprequest._originSelected.focus();
return(false);
}
if(flightShoprequest._destinationSelected.value=="")
{
alert("Veuillez inscrire votre Destination.");
flightShoprequest._destinationSelected.focus();
return(false);
}
_deptest = document.getElementById("datepicker1");
if(_deptest.value=="")
{
alert(deCode("Veuillez inscrire votre date d&#233;part."));
_deptest.focus();
return(false);
}
for (i=0;i<flightShoprequest._tripType.length;i++)
{
      if (flightShoprequest._tripType[i].checked)
      {
             rbgroup_value =flightShoprequest._tripType[i].value;
      }
}
if(rbgroup_value!="OneWay")  {
_rettest = document.getElementById("datepicker2");
if(_rettest.value=="")
  {
   alert("Veuillez inscrire votre date de retour.");
   _rettest.focus();
   return(false);
  }  }
return(true);
}
function wlorich() {

document.getElementById("wdforigin1").options.length=0

document.getElementById("wdforigin1").options[0]=new Option(deCode(" -- Choisissez votre ville D&#233;part  --"), "", true, false)
document.getElementById("wdforigin1").options[1]=new Option("", "", false, false)
document.getElementById("wdforigin1").options[2]=new Option(" SEZ - Mahe Island - Seychelles International, Seychelles", "Airport.SEZ", false, false)
document.getElementById("wdforigin1").options[3]=new Option(" AMS - Amsterdam, Pays-Bas", "Airport.AMS", false, false)
document.getElementById("wdforigin1").options[4]=new Option(" BCN - Barcelone, Espagne", "Airport.BCN", false, false)
document.getElementById("wdforigin1").options[5]=new Option(" CPH - Copenhagen - Danemark", "Airport.CPH", false, false)
document.getElementById("wdforigin1").options[6]=new Option(" FRA - Francfort - Allemagne", "Airport.FRA", false, false)
document.getElementById("wdforigin1").options[7]=new Option(" HEL - Helsinki, Finlande", "Airport.HEL", false, false)
document.getElementById("wdforigin1").options[8]=new Option(" JNB - Johannesburg - International, South Africa", "Airport.JNB", false, false)
document.getElementById("wdforigin1").options[9]=new Option(" LIS - Lisbonne, Portugal", "Airport.LIS", false, false)
document.getElementById("wdforigin1").options[10]=new Option(" LGW - Londres - Gatwick, Royaume-Uni", "Airport.LGW", false, false)
document.getElementById("wdforigin1").options[11]=new Option(" LHR - Londres - Heathrow, Royaume-Uni", "Airport.LHR", false, false)
document.getElementById("wdforigin1").options[12]=new Option(" MAD - Madrid - Espagne", "Airport.MAD", false, false)
document.getElementById("wdforigin1").options[13]=new Option(" Man - Manchester, Royaume-Uni", "Airport.Man", false, false)
document.getElementById("wdforigin1").options[14]=new Option(" MRU - Mauritius - Seewoosagur International, Mauritius", "Airport.MRU", false, false)
document.getElementById("wdforigin1").options[15]=new Option(" MXP - Milan - Italie", "Airport.MXP", false, false)
document.getElementById("wdforigin1").options[16]=new Option(" VKO - Moscow - Vnukovo, Russia", "Airport.VKO", false, false)
document.getElementById("wdforigin1").options[17]=new Option(" NTE - Nantes, France", "Airport.NTE", false, false)
document.getElementById("wdforigin1").options[18]=new Option(" CDG - Paris - Charles De Gaulle, France", "Airport.CDG", false, false)
document.getElementById("wdforigin1").options[19]=new Option(" FCO - Rome - Italie", "Airport.FCO", false, false)
document.getElementById("wdforigin1").options[20]=new Option(" SIN - Singapore - Changi International, Singapore", "Airport.SIN", false, false)
document.getElementById("wdforigin1").options[21]=new Option(" ARN - Stockholm - Arlanda, Sweden", "Airport.ARN", false, false)
document.getElementById("wdforigin1").options[22]=new Option(" TLS - Toulouse - Blagnac, France", "Airport.TLS", false, false)
document.getElementById("wdforigin1").options[23]=new Option(" VIE - Vienne, Autriche", "Airport.VIE", false, false)
document.getElementById("wdforigin1").options[24]=new Option(" WAW - Varsovie, Pologne", "Airport.WAW", false, false)
document.getElementById("wdforigin1").options[25]=new Option(" ZRH - Zurich, Suisse", "Airport.ZRH", false, false)


document.getElementById("wdfdest1").options.length=0

}
function odesch() {

x=document.getElementById("wdforigin1").value;

document.getElementById("wdfdest1").options.length=0

	if (x == "Airport.SEZ")
	{
document.getElementById("wdfdest1").options[0]=new Option(" -- Choisissez votre Destination  --", "", true, false)
document.getElementById("wdfdest1").options[1]=new Option("", "", false, false)
document.getElementById("wdfdest1").options[2]=new Option(" AMS - Amsterdam, Pays-Bas", "Airport.AMS", false, false)
document.getElementById("wdfdest1").options[3]=new Option(" BCN - Barcelone, Espagne", "Airport.BCN", false, false)
document.getElementById("wdfdest1").options[4]=new Option(" CPH - Copenhagen - Danemark", "Airport.CPH", false, false)
document.getElementById("wdfdest1").options[5]=new Option(" FRA - Francfort - Allemagne", "Airport.FRA", false, false)
document.getElementById("wdfdest1").options[6]=new Option(" HEL - Helsinki, Finlande", "Airport.HEL", false, false)
document.getElementById("wdfdest1").options[7]=new Option(" JNB - Johannesburg - International, South Africa", "Airport.JNB", false, false)
document.getElementById("wdfdest1").options[8]=new Option(" LIS - Lisbonne, Portugal", "Airport.LIS", false, false)
document.getElementById("wdfdest1").options[9]=new Option(" LGW - Londres - Gatwick, Royaume-Uni", "Airport.LGW", false, false)
document.getElementById("wdfdest1").options[10]=new Option(" LHR - Londres - Heathrow, Royaume-Uni", "Airport.LHR", false, false)
document.getElementById("wdfdest1").options[11]=new Option(" MAD - Madrid - Espagne", "Airport.MAD", false, false)
document.getElementById("wdfdest1").options[12]=new Option(" Man - Manchester, Royaume-Uni", "Airport.Man", false, false)
document.getElementById("wdfdest1").options[13]=new Option(" MRU - Mauritius - Seewoosagur International, Mauritius", "Airport.MRU", false, false)
document.getElementById("wdfdest1").options[14]=new Option(" MXP - Milan - Italie", "Airport.MXP", false, false)
document.getElementById("wdfdest1").options[15]=new Option(" VKO - Moscow - Vnukovo, Russia", "Airport.VKO", false, false)
document.getElementById("wdfdest1").options[16]=new Option(" NTE - Nantes, France", "Airport.NTE", false, false)
document.getElementById("wdfdest1").options[17]=new Option(" CDG - Paris - Charles De Gaulle, France", "Airport.CDG", false, false)
document.getElementById("wdfdest1").options[18]=new Option(" FCO - Rome - Italie", "Airport.FCO", false, false)
document.getElementById("wdfdest1").options[19]=new Option(" SIN - Singapore - Changi International, Singapore", "Airport.SIN", false, false)
document.getElementById("wdfdest1").options[20]=new Option(" ARN - Stockholm - Arlanda, Sweden", "Airport.ARN", false, false)
document.getElementById("wdfdest1").options[21]=new Option(" TLS - Toulouse - Blagnac, France", "Airport.TLS", false, false)
document.getElementById("wdfdest1").options[22]=new Option(" VIE - Vienne, Autriche", "Airport.VIE", false, false)
document.getElementById("wdfdest1").options[23]=new Option(" WAW - Varsovie, Pologne", "Airport.WAW", false, false)
document.getElementById("wdfdest1").options[24]=new Option(" ZRH - Zurich, Suisse", "Airport.ZRH", false, false)
	}
	else if (x == "Airport.LHR") {
                document.getElementById("wdfdest1").options[0]=new Option(" -- Choisissez votre Destination  --", "", true, false)
                document.getElementById("wdfdest1").options[1]=new Option("", "", false, false)
                document.getElementById("wdfdest1").options[2]=new Option(" SEZ - Mahe Island - Seychelles International, Seychelles", "Airport.SEZ", false, false)
                document.getElementById("wdfdest1").options[3]=new Option(" ZRH - Zurich - Zurich, Switzerland", "Airport.ZRH", false, false)
        }
        else {        document.getElementById("wdfdest1").options[0]=new Option(" SEZ - Mahe Island - Seychelles International, Seychelles", "Airport.SEZ", true, false)

 }

}
function ddesch() {

x=document.getElementById("wdfdest1").value;

t=document.getElementById("wdforigin1").value;

document.getElementById("wdforigin1").options.length=0;

	if (x == "Airport.SEZ")
	{
            if (t == "Airport.LHR" ) {
                document.getElementById("wdforigin1").options[0]=new Option(" LHR - London - Heathrow, United Kingdom", "Airport.LHR", true, false)
            }
            else {
                document.getElementById("wdfdest1").options[0]=new Option(" -- Choisissez votre Destination  --", "", true, false)
                document.getElementById("wdfdest1").options[1]=new Option("", "", false, false)
            }
	}
	else if (x == "Airport.ZRH")
	{
            if (t == "Airport.LHR" ) {
                document.getElementById("wdforigin1").options[0]=new Option(" LHR - London - Heathrow, United Kingdom", "Airport.LHR", true, false)
            }
            else {
document.getElementById("wdfdest1").options[0]=new Option(" -- Choisissez votre Destination  --", "", true, false)
document.getElementById("wdfdest1").options[1]=new Option("", "", false, false)
document.getElementById("wdfdest1").options[2]=new Option(" AMS - Amsterdam, Pays-Bas", "Airport.AMS", false, false)
document.getElementById("wdfdest1").options[3]=new Option(" BCN - Barcelone, Espagne", "Airport.BCN", false, false)
document.getElementById("wdfdest1").options[4]=new Option(" CPH - Copenhagen - Danemark", "Airport.CPH", false, false)
document.getElementById("wdfdest1").options[5]=new Option(" FRA - Francfort - Allemagne", "Airport.FRA", false, false)
document.getElementById("wdfdest1").options[6]=new Option(" HEL - Helsinki, Finlande", "Airport.HEL", false, false)
document.getElementById("wdfdest1").options[7]=new Option(" JNB - Johannesburg - International, South Africa", "Airport.JNB", false, false)
document.getElementById("wdfdest1").options[8]=new Option(" LIS - Lisbonne, Portugal", "Airport.LIS", false, false)
document.getElementById("wdfdest1").options[9]=new Option(" LGW - Londres - Gatwick, Royaume-Uni", "Airport.LGW", false, false)
document.getElementById("wdfdest1").options[10]=new Option(" LHR - Londres - Heathrow, Royaume-Uni", "Airport.LHR", false, false)
document.getElementById("wdfdest1").options[11]=new Option(" MAD - Madrid - Espagne", "Airport.MAD", false, false)
document.getElementById("wdfdest1").options[12]=new Option(" Man - Manchester, Royaume-Uni", "Airport.Man", false, false)
document.getElementById("wdfdest1").options[13]=new Option(" MRU - Mauritius - Seewoosagur International, Mauritius", "Airport.MRU", false, false)
document.getElementById("wdfdest1").options[14]=new Option(" MXP - Milan - Italie", "Airport.MXP", false, false)
document.getElementById("wdfdest1").options[15]=new Option(" VKO - Moscow - Vnukovo, Russia", "Airport.VKO", false, false)
document.getElementById("wdfdest1").options[16]=new Option(" NTE - Nantes, France", "Airport.NTE", false, false)
document.getElementById("wdfdest1").options[17]=new Option(" CDG - Paris - Charles De Gaulle, France", "Airport.CDG", false, false)
document.getElementById("wdfdest1").options[18]=new Option(" FCO - Rome - Italie", "Airport.FCO", false, false)
document.getElementById("wdfdest1").options[19]=new Option(" SIN - Singapore - Changi International, Singapore", "Airport.SIN", false, false)
document.getElementById("wdfdest1").options[20]=new Option(" ARN - Stockholm - Arlanda, Sweden", "Airport.ARN", false, false)
document.getElementById("wdfdest1").options[21]=new Option(" TLS - Toulouse - Blagnac, France", "Airport.TLS", false, false)
document.getElementById("wdfdest1").options[22]=new Option(" VIE - Vienne, Autriche", "Airport.VIE", false, false)
document.getElementById("wdfdest1").options[23]=new Option(" WAW - Varsovie, Pologne", "Airport.WAW", false, false)
document.getElementById("wdfdest1").options[24]=new Option(" ZRH - Zurich, Suisse", "Airport.ZRH", false, false)
            }
	}
	else {
        document.getElementById("wdforigin1").options[0]=new Option(" SEZ - Mahe Island - Seychelles International, Seychelles", "Airport.SEZ", true, false)

 }

}