function METloc(number, city, country, selecteer) {
	this.number = number;
	this.city = city;
	this.country = country;
	this.selecteer = selecteer;
}

var METlocList = new Array();
METlocList[1] = new METloc(36, "Amsterdam", "NL", true);
METlocList[2] = new METloc(2017, "Amsterdam Schiphol", "NL", false);
METlocList[3] = new METloc(2026, "Antwerp", "B", false);
METlocList[4] = new METloc(2027, "Antwerpen", "B", true);
METlocList[5] = new METloc(2057, "Badhoevedorp", "NL", false);
METlocList[6] = new METloc(2093, "Beverwijk", "NL", false);
METlocList[7] = new METloc(2135, "Brouwershaven", "NL", false);
METlocList[8] = new METloc(2136, "Brugge", "B", true);
METlocList[9] = new METloc(37, "Brussel", "B", true);
METlocList[10] = new METloc(2138, "Brussel International", "B", false);
METlocList[11] = new METloc(2169, "Charleroi - Brussel Zuid", "B", true);
METlocList[12] = new METloc(2185, "Clervaux", "L", true);
METlocList[13] = new METloc(2187, "Coevorden", "NL", false);
METlocList[14] = new METloc(2212, "De Bilt", "NL", true);
METlocList[15] = new METloc(2984, "Den Haag", "NL", true);
METlocList[16] = new METloc(2217, "Den Helder", "NL", true);
METlocList[17] = new METloc(2224, "Dordrecht", "NL", false);
METlocList[18] = new METloc(2244, "Echternach", "L", true);
METlocList[19] = new METloc(2248, "Eindhoven - Welschap", "NL", true);
METlocList[20] = new METloc(2252, "Elsenborn", "B", true);
METlocList[21] = new METloc(2258, "Enschede - Twente", "NL", true);
METlocList[22] = new METloc(2309, "Genk", "B", false);
METlocList[23] = new METloc(2311, "Gent", "B", true);
METlocList[24] = new METloc(2341, "Groningen", "NL", true);
METlocList[25] = new METloc(2342, "Groningen - Eelde", "NL", false);
METlocList[26] = new METloc(2364, "Hansweert", "NL", true);
METlocList[27] = new METloc(2365, "Harlingen", "NL", true);
METlocList[28] = new METloc(2377, "Heemskerk", "NL", true);
METlocList[29] = new METloc(2380, "Hellevoetsluis", "NL", false);
METlocList[30] = new METloc(2386, "Hilversum", "NL", false);
METlocList[31] = new METloc(2390, "Hoek van Holland", "NL", true);
METlocList[32] = new METloc(2410, "IJmuiden", "NL", true);
METlocList[33] = new METloc(2537, "Leeuwarden", "NL", true);
METlocList[34] = new METloc(2541, "Lelystad", "NL", false);
METlocList[35] = new METloc(2552, "Liège", "B", true);
METlocList[36] = new METloc(38, "Luxembourg", "L", true);
METlocList[37] = new METloc(2595, "Maassluis", "NL", false);
METlocList[38] = new METloc(2596, "Maastricht Aachen", "NL", true);
METlocList[39] = new METloc(2628, "Middelburg", "NL", true);
METlocList[40] = new METloc(2638, "Moerdijk", "NL", false);
METlocList[41] = new METloc(161, "Oostende", "B", true);
METlocList[42] = new METloc(2714, "Oostende", "B", false);
METlocList[43] = new METloc(162, "Rotterdam", "NL", true);
METlocList[44] = new METloc(2844, "Rotterdam Airport", "NL", false);
METlocList[45] = new METloc(2879, "Scheveningen", "NL", true);
METlocList[46] = new METloc(2880, "Schiedam", "NL", false);
METlocList[47] = new METloc(2928, "Spa", "B", true);
METlocList[48] = new METloc(2932, "St. Hubert", "B", true);
METlocList[49] = new METloc(2981, "Terneuzen", "NL", true);
METlocList[50] = new METloc(2982, "Teuge", "NL", false);
METlocList[51] = new METloc(2983, "Texel", "NL", true);
METlocList[52] = new METloc(3021, "Ukkel", "B", true);
METlocList[53] = new METloc(3044, "Veenendaal", "NL", false);
METlocList[54] = new METloc(3046, "Velsen", "NL", false);
METlocList[55] = new METloc(3062, "Vlaardingen", "NL", false);
METlocList[56] = new METloc(3063, "Vlissingen", "NL", true);
METlocList[57] = new METloc(3102, "Zeebrugge", "B", true);

// aanroep populateCities(this,this.value)
function populateCities(country) {
	var listbox = document.getElementById("cities");
	
	//cities leegmaken
	for(i = listbox.options.length - 1; i >= 0; i--) {
		listbox.remove(i);
	}

	//cities vullen
  	for (i = 1; i < METlocList.length; i++) {
		if ((METlocList[i].country == country) && METlocList[i].selecteer) {
			var opt = document.createElement("option");
			opt.text = METlocList[i].city;
			opt.value = METlocList[i].number;
			listbox.add(opt);
		} //endif
	} //endfor
	changeURL(listbox.value);
}// endfunc



