<script type="text/javascript">
function verander(arr) {
applyToSelect(document.getElementById('select_citycenter'),arr);
applyToSelect(document.getElementById('select_exhibitioncentre'),arr);
applyToSelect(document.getElementById('select_trainstation'),arr);
applyToSelect(document.getElementById('select_busstation'),arr);
applyToSelect(document.getElementById('select_airplane1'),arr);
applyToSelect(document.getElementById('select_airplane2'),arr);
applyToSelect(document.getElementById('select_airplane3'),arr);
applyToSelect(document.getElementById('select_airplane4'),arr);
applyToSelect(document.getElementById('select_taxi'),arr);
applyToSelect(document.getElementById('select_bustram'),arr);
applyToSelect(document.getElementById('select_metro'),arr);
applyToSelect(document.getElementById('select_garage'),arr);
applyToSelect(document.getElementById('select_highway'),arr);
applyToSelect(document.getElementById('select_sport'),arr);
applyToSelect(document.getElementById('select_hospital'),arr);
applyToSelect(document.getElementById('select_wellness'),arr);
applyToSelect(document.getElementById('select_pool'),arr);
applyToSelect(document.getElementById('select_tennis'),arr);
applyToSelect(document.getElementById('select_golf9h'),arr);
applyToSelect(document.getElementById('select_golf18h'),arr);
applyToSelect(document.getElementById('select_bike'),arr);
applyToSelect(document.getElementById('select_car'),arr);
applyToSelect(document.getElementById('select_shoppingvillage'),arr);
applyToSelect(document.getElementById('select_shoppingarea'),arr);
applyToSelect(document.getElementById('select_fitness'),arr);
applyToSelect(document.getElementById('select_bigcity'),arr);
}
function applyToSelect(el, arr)
{
el.options.length = 0;
for(var i = 0; i< arr.length; i++ )
{
el.options[el.options.length] = new Option(arr[i], arr[i]);
el.options[el.options.length] = new Option("Other");
}
el.onchange = new Function("selectChanged(this);");
}
function selectChanged(el)
{
if(el.id == "select_citycenter")
el2 = document.getElementById("citycenter");
if(el.id == "select_exhibitioncentre")
el2 = document.getElementById("exhibitioncentre");
if(el.id == "select_trainstation")
el2 = document.getElementById("trainstation");
if(el.id == "select_busstation")
el2 = document.getElementById("busstation");
if(el.id == "select_airplane1")
el2 = document.getElementById("airplane1");
if(el.id == "select_airplane2")
el2 = document.getElementById("airplane2");
if(el.id == "select_airplane3")
el2 = document.getElementById("airplane3");
if(el.id == "select_airplane4")
el2 = document.getElementById("airplane4");
if(el.id == "select_taxi")
el2 = document.getElementById("taxi");
if(el.id == "select_bustram")
el2 = document.getElementById("bustram");
if(el.id == "select_metro")
el2 = document.getElementById("metro");
if(el.id == "select_garage")
el2 = document.getElementById("garage");
if(el.id == "select_highway")
el2 = document.getElementById("highway");
if(el.id == "select_sport")
el2 = document.getElementById("sport");
if(el.id == "select_hospital")
el2 = document.getElementById("hospital");
if(el.id == "select_wellness")
el2 = document.getElementById("wellness");
if(el.id == "select_pool")
el2 = document.getElementById("pool");
if(el.id == "select_tennis")
el2 = document.getElementById("tennis");
if(el.id == "select_golf9h")
el2 = document.getElementById("golf9h");
if(el.id == "select_golf18h")
el2 = document.getElementById("golf18h");
if(el.id == "select_bike")
el2 = document.getElementById("bike");
if(el.id == "select_car")
el2 = document.getElementById("car");
if(el.id == "select_shoppingvillage")
el2 = document.getElementById("shoppingvillage");
if(el.id == "select_shoppingarea")
el2 = document.getElementById("shoppingarea");
if(el.id == "select_fitness")
el2 = document.getElementById("fitness");
if(el.id == "select_bigcity")
el2 = document.getElementById("bigcity");
if(el.selectedIndex != el.options.length - 1)
el2.readOnly = true;
else
{
el2.readOnly = false;
el2.focus();
}
}
</script>
<script type="text/javascript">
function setThis() {
var aantal = 26;
var wat = document.getElementById('watt').value;
if(wat != "kies"){
for (i = 1; i <= aantal; i++){
document.getElementById("wat_"+i).innerHTML = wat;
}
}
}
</script>