1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| var optionData = new Array(
new Array("0","Selectionnez une ville depart","0"),
new Array("MRS","Apr 21, 2007 - 630 €","2007-04-21"),
new Array("PAR","Apr 22, 2007 - 562 €","2007-04-22"),
new Array("ETZ","Apr 23, 2007 - 523 €","2007-04-23"),
new Array("MLH","Apr 23, 2007 - 668 €","2007-04-23"),
new Array("MRS","Apr 23, 2007 - 668 €","2007-04-23"),
new Array("BOD","Apr 24, 2007 - 581 €","2007-04-24"),
new Array("NCE","Apr 24, 2007 - 668 €","2007-04-24"),
new Array("NTE","Apr 24, 2007 - 571 €","2007-04-24"),
new Array("TLS","Apr 24, 2007 - 562 €","2007-04-24"),
new Array("LYS","Apr 25, 2007 - 552 €","2007-04-25"),
new Array("MRS","Apr 25, 2007 - 581 €","2007-04-25"),
new Array("PAR","Apr 25, 2007 - 503 €","2007-04-25"),
new Array("SXB","Apr 25, 2007 - 571 €","2007-04-25"),
new Array("BES","Apr 26, 2007 - 581 €","2007-04-26"),
new Array("DOL","Apr 26, 2007 - 581 €","2007-04-26"),
new Array("NTE","Apr 26, 2007 - 581 €","2007-04-26"),
new Array("PAR","Apr 26, 2007 - 533 €","2007-04-26"),
new Array("ETZ","Apr 27, 2007 - 571 €","2007-04-27"),
new Array("ETZ","Apr 27, 2007 - 940 €","2007-04-27"),
new Array("NTE","Apr 27, 2007 - 600 €","2007-04-27"),
new Array("NTE","Apr 27, 2007 - 969 €","2007-04-27"),
new Array("PAR","Apr 27, 2007 - 533 €","2007-04-27"),
new Array("PAR","Apr 27, 2007 - 901 €","2007-04-27"),
new Array("TLS","Apr 27, 2007 - 600 €","2007-04-27"),
new Array("TLS","Apr 27, 2007 - 969 €","2007-04-27"),
new Array("LYS","Apr 28, 2007 - 600 €","2007-04-28"),
new Array("LYS","Apr 28, 2007 - 969 €","2007-04-28"),
new Array("MRS","Apr 28, 2007 - 610 €","2007-04-28"),
new Array("MRS","Apr 28, 2007 - 979 €","2007-04-28"),
new Array("PAR","Apr 28, 2007 - 562 €","2007-04-28"),
new Array("PAR","Apr 28, 2007 - 930 €","2007-04-28"),
new Array("LIL","Apr 29, 2007 - 523 €","2007-04-29"),
.......
.......
);
function initLinkedSelect(from,to,options) {
(from.style || from).visibility = "visible";
from.onchange = function() {
var fromCode = from.options[from.selectedIndex].value;
if (fromCode != 0){document.reservation.departureDate.disabled = false;} else {document.reservation.departureDate.disabled = true;}
to.options.length = 0;
for (i = 0; i < options.length; i++) {
if (options[i][0] == fromCode) {
to.options[to.options.length] = new Option(options[i][1],options[i][2]);
}
}
for (i = 0; i < to.options.length; i++) {
if(to.options[i].value == '')
{
to.options[i].selected = true;
}
}
}
from.onchange();
}
</script> |