
	
	function selectCountryAndCity(land, stad) {
		var box = document.SearchForm.country;
		// COUNTRY
		for (i = 0; i < box.options.length; i++) {
			if (box.options[i].value == land) {
				box.options[i].selected = true;
				break;
			}
		}
		selectCountry(land);
		var box2 = document.SearchForm.city;
		// CITY
		for (i = 0; i < box2.options.length; i++) {
			if (box2.options[i].value == stad) {
				box2.options[i].selected = true;
				break;
			}
		}
	} // end selectCountryAndCity
	
	function selectCountry(country) {
		if (country == '') country = 'EMPTY';
		var box = document.SearchForm.city;
		var count = box.options.length;
		for (i = 0; i < count; i++) {
			box.options[0] = null;
		}
		box.options[0] = new Option('', '');
		box.options[0].innerHTML = tranSelectCity;
		box.options[0].selected = true;
		box.options[1] = new Option('', 'ALL');
		box.options[1].innerHTML = tranAllCitiesWorldwide;
		var index = 2;
		for (i = 0; i < stedenlijst.length; i++) {
			if (stedenlijst[i][0] == country) {
				box.options[index] = new Option('', stedenlijst[i][1]);
				box.options[index].innerHTML = stedenlijst[i][2];
				index++;
			}
		}
	} // end selectCountry
	
	function selectCity(city) {
		if (city == 'ALL') {
			var box = document.SearchForm.city;
			var box2 = document.SearchForm.country;
			var count = box.options.length;
			for(i = 0; i < count; i++) {
				box.options[0] = null;
			}
			var index = 0;
			for(i = 0; i < stedenlijst.length; i++) {
				if (stedenlijst[i][1] != '') {
					box.options[index] = new Option('', stedenlijst[i][1]);
					box.options[index].innerHTML = stedenlijst[i][2];
					index++;
				}
			}
			box2.options[0].selected = true;
		}
	} // end selectCity
