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("Please enter your Point of Origin.");
flightShoprequest._originSelected.focus();
return(false);
}
if(flightShoprequest._destinationSelected.value=="")
{
alert("Please enter your Destination.");
flightShoprequest._destinationSelected.focus();
return(false);
}
_deptest = document.getElementById("datepicker1");
if(_deptest.value=="")
{
alert("Please enter your departure date.");
_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("Please enter your return date.");
   _rettest.focus();
   return(false);
  }  }
return(true);
}
function wlorich() {

document.getElementById("wdforigin1").options.length=0

document.getElementById("wdforigin1").options[0]=new Option(" -- Select your departure city  --", "", true, false)
document.getElementById("wdforigin1").options[1]=new Option("", "", false, false)
document.getElementById("wdforigin1").options[2]=new Option(" AMS - Amsterdam - Schiphol, Netherlands", "Airport.AMS", false, false)
document.getElementById("wdforigin1").options[3]=new Option(" BCN - Barcelona, Spain", "Airport.BCN", false, false)
document.getElementById("wdforigin1").options[4]=new Option(" CPH - Copenhagen - Kastrup, Denmark", "Airport.CPH", false, false)
document.getElementById("wdforigin1").options[5]=new Option(" FRA - Frankfurt - Frankfurt International, Germany", "Airport.FRA", false, false)
document.getElementById("wdforigin1").options[6]=new Option(" HEL - Helsinki, Finland", "Airport.HEL", false, false)
document.getElementById("wdforigin1").options[7]=new Option(" JNB - Johannesburg - Johannesburg International, South Africa", "Airport.JNB", false, false)
document.getElementById("wdforigin1").options[8]=new Option(" LIS - Lisbon, Portugal", "Airport.LIS", false, false)
document.getElementById("wdforigin1").options[9]=new Option(" LGW - London - Gatwick, United Kingdom", "Airport.LGW", false, false)
document.getElementById("wdforigin1").options[10]=new Option(" LHR - London - Heathrow, United Kingdom", "Airport.LHR", false, false)
document.getElementById("wdforigin1").options[11]=new Option(" MAD - Madrid - Barajas, Spain", "Airport.MAD", false, false)
document.getElementById("wdforigin1").options[12]=new Option(" Man - Manchester, United Kingdom", "Airport.Man", false, false)
document.getElementById("wdforigin1").options[13]=new Option(" MRU - Mauritius - Mauritius Sir Seewoosagur RamInt, Mauritius", "Airport.MRU", false, false)
document.getElementById("wdforigin1").options[14]=new Option(" MXP - Milan - Malpensa, Italy", "Airport.MXP", false, false)
document.getElementById("wdforigin1").options[15]=new Option(" VKO - Moscow - Vnukovo, Russia", "Airport.VKO", false, false)
document.getElementById("wdforigin1").options[16]=new Option(" NTE - Nantes, France", "Airport.NTE", false, false)
document.getElementById("wdforigin1").options[17]=new Option(" CDG - Paris - Charles De Gaulle, France", "Airport.CDG", false, false)
document.getElementById("wdforigin1").options[18]=new Option(" FCO - Rome - Fiumicino, Italy", "Airport.FCO", false, false)
document.getElementById("wdforigin1").options[19]=new Option(" SIN - Singapore - Changi, Singapore", "Airport.SIN", false, false)
document.getElementById("wdforigin1").options[20]=new Option(" ARN - Stockholm - Arlanda, Sweden", "Airport.ARN", false, false)
document.getElementById("wdforigin1").options[21]=new Option(" TLS - Toulouse - Blagnac, France", "Airport.TLS", false, false)
document.getElementById("wdforigin1").options[22]=new Option(" VIE - Vienna International, Austria", "Airport.VIE", false, false)
document.getElementById("wdforigin1").options[23]=new Option(" WAW - Warsaw, Poland", "Airport.WAW", false, false)
document.getElementById("wdforigin1").options[24]=new Option(" ZRH - Zurich - Zurich, Switzerland", "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(" -- Select your destination  --", "", true, false)
document.getElementById("wdfdest1").options[1]=new Option("", "", false, false)
document.getElementById("wdfdest1").options[2]=new Option(" AMS - Amsterdam - Schiphol, Netherlands", "Airport.AMS", false, false)
document.getElementById("wdfdest1").options[3]=new Option(" BCN - Barcelona, Spain", "Airport.BCN", false, false)
document.getElementById("wdfdest1").options[4]=new Option(" CPH - Copenhagen - Kastrup, Denmark", "Airport.CPH", false, false)
document.getElementById("wdfdest1").options[5]=new Option(" FRA - Frankfurt - Frankfurt International, Germany", "Airport.FRA", false, false)
document.getElementById("wdfdest1").options[6]=new Option(" HEL - Helsinki, Finland", "Airport.HEL", false, false)
document.getElementById("wdfdest1").options[7]=new Option(" JNB - Johannesburg - Johannesburg International, South Africa", "Airport.JNB", false, false)
document.getElementById("wdfdest1").options[8]=new Option(" LIS - Lisbon, Portugal", "Airport.LIS", false, false)
document.getElementById("wdfdest1").options[9]=new Option(" LGW - London - Gatwick, United Kingdom", "Airport.LGW", false, false)
document.getElementById("wdfdest1").options[10]=new Option(" LHR - London - Heathrow, United Kingdom", "Airport.LHR", false, false)
document.getElementById("wdfdest1").options[11]=new Option(" MAD - Madrid - Barajas, Spain", "Airport.MAD", false, false)
document.getElementById("wdfdest1").options[12]=new Option(" Man - Manchester, United Kingdom", "Airport.Man", false, false)
document.getElementById("wdfdest1").options[13]=new Option(" MRU - Mauritius - Mauritius Sir Seewoosagur RamInt, Mauritius", "Airport.MRU", false, false)
document.getElementById("wdfdest1").options[14]=new Option(" MXP - Milan - Malpensa, Italy", "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 - Fiumicino, Italy", "Airport.FCO", false, false)
document.getElementById("wdfdest1").options[19]=new Option(" SIN - Singapore - Changi, 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 - Vienna International, Austria", "Airport.VIE", false, false)
document.getElementById("wdfdest1").options[23]=new Option(" WAW - Warsaw, Poland", "Airport.WAW", false, false)
document.getElementById("wdfdest1").options[24]=new Option(" ZRH - Zurich - Zurich, Switzerland", "Airport.ZRH", false, false)
	}
	else if (x == "Airport.LHR") {
document.getElementById("wdfdest1").options[0]=new Option(" -- Select your 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(" -- Select your 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(" -- Select your destination  --", "", true, false)
document.getElementById("wdfdest1").options[1]=new Option("", "", false, false)
document.getElementById("wdfdest1").options[2]=new Option(" AMS - Amsterdam - Schiphol, Netherlands", "Airport.AMS", false, false)
document.getElementById("wdfdest1").options[3]=new Option(" BCN - Barcelona, Spain", "Airport.BCN", false, false)
document.getElementById("wdfdest1").options[4]=new Option(" CPH - Copenhagen - Kastrup, Denmark", "Airport.CPH", false, false)
document.getElementById("wdfdest1").options[5]=new Option(" FRA - Frankfurt - Frankfurt International, Germany", "Airport.FRA", false, false)
document.getElementById("wdfdest1").options[6]=new Option(" HEL - Helsinki, Finland", "Airport.HEL", false, false)
document.getElementById("wdfdest1").options[7]=new Option(" JNB - Johannesburg - Johannesburg International, South Africa", "Airport.JNB", false, false)
document.getElementById("wdfdest1").options[8]=new Option(" LIS - Lisbon, Portugal", "Airport.LIS", false, false)
document.getElementById("wdfdest1").options[9]=new Option(" LGW - London - Gatwick, United Kingdom", "Airport.LGW", false, false)
document.getElementById("wdfdest1").options[10]=new Option(" LHR - London - Heathrow, United Kingdom", "Airport.LHR", false, false)
document.getElementById("wdfdest1").options[11]=new Option(" MAD - Madrid - Barajas, Spain", "Airport.MAD", false, false)
document.getElementById("wdfdest1").options[12]=new Option(" Man - Manchester, United Kingdom", "Airport.Man", false, false)
document.getElementById("wdfdest1").options[13]=new Option(" MRU - Mauritius - Mauritius Sir Seewoosagur RamInt, Mauritius", "Airport.MRU", false, false)
document.getElementById("wdfdest1").options[14]=new Option(" MXP - Milan - Malpensa, Italy", "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 - Fiumicino, Italy", "Airport.FCO", false, false)
document.getElementById("wdfdest1").options[19]=new Option(" SIN - Singapore - Changi, 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 - Vienna International, Austria", "Airport.VIE", false, false)
document.getElementById("wdfdest1").options[23]=new Option(" WAW - Warsaw, Poland", "Airport.WAW", false, false)
document.getElementById("wdfdest1").options[24]=new Option(" ZRH - Zurich - Zurich, Switzerland", "Airport.ZRH", false, false)
            }
	}
	else {
        document.getElementById("wdforigin1").options[0]=new Option(" SEZ - Mahe Island - Seychelles International, Seychelles", "Airport.SEZ", true, false)

 }

}

function dodesch() {

x=document.getElementById("wdforigin").value;

document.getElementById("wdfdest").options.length=0

	if (x == "16")
	{
                document.getElementById("wdfdest").options[0]=new Option(" Praslin", "18", false, false)

	}

        else {        document.getElementById("wdfdest").options[0]=new Option(" Mahe", "16", true, false)

 }

}

function dddesch() {

x=document.getElementById("wdfdest").value;

document.getElementById("wdforigin").options.length=0

	if (x == "18")
	{
         document.getElementById("wdforigin").options[0]=new Option(" Mahe", "16", true, false)
	}
	else {
        document.getElementById("wdforigin").options[0]=new Option(" Praslin", "18", false, false)

 }

}
