function deCode(theStr){
  theStr = theStr.replace(/\&\#(\d+)\;/g, function(p1,p2){return String.fromCharCode(p2)});
  return theStr;
}
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("Bitte tragen Sie Ihren Ausganspunkt ein.");
flightShoprequest._originSelected.focus();
return(false);
}
if(flightShoprequest._destinationSelected.value=="")
{
alert("Bitte tragen Sie Ihr Reiseziel ein.");
flightShoprequest._destinationSelected.focus();
return(false);
}
_deptest = document.getElementById("datepicker1");
if(_deptest.value=="")
{
alert("Bitte tragen Sie Ihr Abflugsdatum ein.");
_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(deCode("Bitte tragen Sie Ihr R&#252;ckkehrdatum ein."));
   _rettest.focus();
   return(false);
  }  }
return(true);
}
function wlorich() {

document.getElementById("wdforigin1").options.length=0

document.getElementById("wdforigin1").options[0]=new Option(deCode(" -- Abflugsort w&#228;hlen  --"), "", true, false)
document.getElementById("wdforigin1").options[1]=new Option("", "", false, false)
document.getElementById("wdforigin1").options[2]=new Option(" AMS - Amsterdam - Schiphol, Niederlande", "Airport.AMS", false, false)
document.getElementById("wdforigin1").options[3]=new Option(" BCN - Barcelona, Spanien", "Airport.BCN", false, false)
document.getElementById("wdforigin1").options[4]=new Option(deCode(" CPH - Copenhagen - Kastrup, D&#228;nemark"), "Airport.CPH", false, false)
document.getElementById("wdforigin1").options[5]=new Option(" FRA - Frankfurt - Frankfurt International, Deutschland", "Airport.FRA", false, false)
document.getElementById("wdforigin1").options[6]=new Option(" HEL - Helsinki, Finnland", "Airport.HEL", false, false)
document.getElementById("wdforigin1").options[7]=new Option(deCode(" JNB - Johannesburg - Johannesburg International, S&#252;dafrika"), "Airport.JNB", false, false)
document.getElementById("wdforigin1").options[8]=new Option(" LIS - Lissabon, Portugal", "Airport.LIS", false, false)
document.getElementById("wdfdest1").options[9]=new Option(deCode(" LGW - London - Gatwick, Vereinigtes K&#246;nigreich"), "Airport.LGW", false, false)
document.getElementById("wdforigin1").options[10]=new Option(deCode(" LHR - London - Heathrow, Vereinigtes K&#246;nigreich"), "Airport.LHR", false, false)
document.getElementById("wdforigin1").options[11]=new Option(" MAD - Madrid - Barajas, Spanien", "Airport.MAD", false, false)
document.getElementById("wdforigin1").options[12]=new Option(deCode(" Man - Manchester, Vereinigtes K&#246;nigreich"), "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, Italien", "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, Frankreich", "Airport.NTE", false, false)
document.getElementById("wdforigin1").options[17]=new Option(" CDG - Paris - Charles De Gaulle, Frankreich", "Airport.CDG", false, false)
document.getElementById("wdforigin1").options[18]=new Option(" FCO - Rome - Fiumicino, Italien", "Airport.FCO", false, false)
document.getElementById("wdforigin1").options[19]=new Option(" SIN - Singapur - Changi, Singapur", "Airport.SIN", false, false)
document.getElementById("wdforigin1").options[20]=new Option(" ARN - Stockholm - Arlanda, Schweden", "Airport.ARN", false, false)
document.getElementById("wdforigin1").options[21]=new Option(" TLS - Toulouse - Blagnac, Frankreich", "Airport.TLS", false, false)
document.getElementById("wdforigin1").options[22]=new Option(deCode(" VIE - Vienna International, &#214;sterreich"), "Airport.VIE", false, false)
document.getElementById("wdforigin1").options[23]=new Option(" WAW - Warsaw, Polen", "Airport.WAW", false, false)
document.getElementById("wdforigin1").options[24]=new Option(" ZRH - Zurich - Zurich, Schweiz", "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(deCode(" -- Reiseziel w&#228;hlen --"), "", true, false)
                document.getElementById("wdfdest1").options[1]=new Option("", "", false, false)
document.getElementById("wdfdest1").options[2]=new Option(" AMS - Amsterdam - Schiphol, Niederlande", "Airport.AMS", false, false)
document.getElementById("wdfdest1").options[3]=new Option(" BCN - Barcelona, Spanien", "Airport.BCN", false, false)
document.getElementById("wdfdest1").options[4]=new Option(deCode(" CPH - Copenhagen - Kastrup, D&#228;nemark"), "Airport.CPH", false, false)
document.getElementById("wdfdest1").options[5]=new Option(" FRA - Frankfurt - Frankfurt International, Deutschland", "Airport.FRA", false, false)
document.getElementById("wdfdest1").options[6]=new Option(" HEL - Helsinki, Finnland", "Airport.HEL", false, false)
document.getElementById("wdfdest1").options[7]=new Option(deCode(" JNB - Johannesburg - Johannesburg International, S&#252;dafrika"), "Airport.JNB", false, false)
document.getElementById("wdfdest1").options[8]=new Option(" LIS - Lissabon, Portugal", "Airport.LIS", false, false)
document.getElementById("wdfdest1").options[9]=new Option(deCode(" LGW - London - Gatwick, Vereinigtes K&#246;nigreich"), "Airport.LGW", false, false)
document.getElementById("wdfdest1").options[10]=new Option(deCode(" LHR - London - Heathrow, Vereinigtes K&#246;nigreich"), "Airport.LHR", false, false)
document.getElementById("wdfdest1").options[11]=new Option(" MAD - Madrid - Barajas, Spanien", "Airport.MAD", false, false)
document.getElementById("wdfdest1").options[12]=new Option(deCode(" Man - Manchester, Vereinigtes K&#246;nigreich"), "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, Italien", "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, Frankreich", "Airport.NTE", false, false)
document.getElementById("wdfdest1").options[17]=new Option(" CDG - Paris - Charles De Gaulle, Frankreich", "Airport.CDG", false, false)
document.getElementById("wdfdest1").options[18]=new Option(" FCO - Rome - Fiumicino, Italien", "Airport.FCO", false, false)
document.getElementById("wdfdest1").options[19]=new Option(" SIN - Singapur - Changi, Singapur", "Airport.SIN", false, false)
document.getElementById("wdfdest1").options[20]=new Option(" ARN - Stockholm - Arlanda, Schweden", "Airport.ARN", false, false)
document.getElementById("wdfdest1").options[21]=new Option(" TLS - Toulouse - Blagnac, Frankreich", "Airport.TLS", false, false)
document.getElementById("wdfdest1").options[22]=new Option(deCode(" VIE - Vienna International, &#214;sterreich"), "Airport.VIE", false, false)
document.getElementById("wdfdest1").options[23]=new Option(" WAW - Warsaw, Polen", "Airport.WAW", false, false)
document.getElementById("wdfdest1").options[24]=new Option(" ZRH - Zurich - Zurich, Schweiz", "Airport.ZRH", false, false)
	}
	else if (x == "Airport.LHR") {
                document.getElementById("wdfdest1").options[0]=new Option(deCode(" -- Reiseziel w&#228;hlen  --"), "", true, false)
                document.getElementById("wdfdest1").options[1]=new Option("", "", false, false)
                document.getElementById("wdfdest1").options[2]=new Option(" SEZ - Mahe Island - Seychelles International, Seychellen", "Airport.SEZ", false, false)
                document.getElementById("wdfdest1").options[3]=new Option(" ZRH - Zurich - Zurich, Schweiz", "Airport.ZRH", false, false)
        }
        else {        document.getElementById("wdfdest1").options[0]=new Option(" SEZ - Mahe Island - Seychelles International, Seychellen", "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(deCode(" LHR - London - Heathrow, Vereinigtes K&#246;nigreich"), "Airport.LHR", true, false)
            }
            else {
                document.getElementById("wdfdest1").options[0]=new Option(deCode(" -- Reiseziel w&#228;hlen  --"), "", 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(deCode(" LHR - London - Heathrow, Vereinigtes K&#246;nigreich"), "Airport.LHR", true, false)
            }
            else {
                document.getElementById("wdfdest1").options[0]=new Option(deCode(" -- Reiseziel w&#228;hlen  --"), "", true, false)
                document.getElementById("wdfdest1").options[1]=new Option("", "", false, false)
document.getElementById("wdfdest1").options[2]=new Option(" AMS - Amsterdam - Schiphol, Niederlande", "Airport.AMS", false, false)
document.getElementById("wdfdest1").options[3]=new Option(" BCN - Barcelona, Spanien", "Airport.BCN", false, false)
document.getElementById("wdfdest1").options[4]=new Option(deCode(" CPH - Copenhagen - Kastrup, D&#228;nemark"), "Airport.CPH", false, false)
document.getElementById("wdfdest1").options[5]=new Option(" FRA - Frankfurt - Frankfurt International, Deutschland", "Airport.FRA", false, false)
document.getElementById("wdfdest1").options[6]=new Option(" HEL - Helsinki, Finnland", "Airport.HEL", false, false)
document.getElementById("wdfdest1").options[7]=new Option(deCode(" JNB - Johannesburg - Johannesburg International, S&#252;dafrika"), "Airport.JNB", false, false)
document.getElementById("wdfdest1").options[8]=new Option(" LIS - Lissabon, Portugal", "Airport.LIS", false, false)
document.getElementById("wdfdest1").options[9]=new Option(deCode(" LGW - London - Gatwick, Vereinigtes K&#246;nigreich"), "Airport.LGW", false, false)
document.getElementById("wdfdest1").options[10]=new Option(deCode(" LHR - London - Heathrow, Vereinigtes K&#246;nigreich"), "Airport.LHR", false, false)
document.getElementById("wdfdest1").options[11]=new Option(" MAD - Madrid - Barajas, Spanien", "Airport.MAD", false, false)
document.getElementById("wdfdest1").options[12]=new Option(deCode(" Man - Manchester, Vereinigtes K&#246;nigreich"), "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, Italien", "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, Frankreich", "Airport.NTE", false, false)
document.getElementById("wdfdest1").options[17]=new Option(" CDG - Paris - Charles De Gaulle, Frankreich", "Airport.CDG", false, false)
document.getElementById("wdfdest1").options[18]=new Option(" FCO - Rome - Fiumicino, Italien", "Airport.FCO", false, false)
document.getElementById("wdfdest1").options[19]=new Option(" SIN - Singapur - Changi, Singapur", "Airport.SIN", false, false)
document.getElementById("wdfdest1").options[20]=new Option(" ARN - Stockholm - Arlanda, Schweden", "Airport.ARN", false, false)
document.getElementById("wdfdest1").options[21]=new Option(" TLS - Toulouse - Blagnac, Frankreich", "Airport.TLS", false, false)
document.getElementById("wdfdest1").options[22]=new Option(deCode(" VIE - Vienna International, &#214;sterreich"), "Airport.VIE", false, false)
document.getElementById("wdfdest1").options[23]=new Option(" WAW - Warsaw, Polen", "Airport.WAW", false, false)
document.getElementById("wdfdest1").options[24]=new Option(" ZRH - Zurich - Zurich, Schweiz", "Airport.ZRH", false, false)
            }
	}
	else {
        document.getElementById("wdforigin1").options[0]=new Option(" SEZ - Mahe Island - Seychelles International, Seychellen", "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)

 }

}
