
function loadife() {
ft = "/main/IFE";
dr = "OUT";
if ($("input[@id='userPrefTo']:checked").val() == 'IN') {
dr = "IN";
}
rr = $("#to option:selected").val();
cl = $("#cabin option:selected").val();
window.location.href = ft+dr+rr+"?class="+cl;
}
function changetext(choice) {
var lang = $("input[name='language']").val().toUpperCase();
switch(lang) {
case "EN" : {
if (choice)
$("#toLabel").html("Departure airport");
else
$("#toLabel").html("Arrival airport");
break;
}
case "DE" : {
if (choice)
$("#toLabel").html("Departure airport");
else
$("#toLabel").html("Ankunftsort");
break;
}
case "ES" : {
if (choice)
$("#toLabel").html("Departure airport");
else
$("#toLabel").html("Aeropuerto de llegada");
break;
}
case "FR" : {
if (choice)
$("#toLabel").html("A&eacute;roport de d&eacute;part");
else
$("#toLabel").html("A&eacute;roport d'arriv&eacute;e");
			break;
		}
		case "IT" : {
			if (choice)
				$("#toLabel").html("Aeroporto di partenza");
			else
				$("#toLabel").html("Aeroporto di arrivo");
			break;
		}
		default:  {
			if (choice)
				$("#toLabel").html("Departure airport");
			else
				$("#toLabel").html("Arrival airport");
			break;
		}
	} // end switch	
}
