function City(cityname,numbers){ this.cityname = cityname; this.numbers = numbers; } function Country(countryname, numbers, local, isocode, cities){ this.countryname = countryname; this.numbers = numbers; this.local = local; this.isocode = isocode; this.cities = cities; } var CtrData = new Array(); function changeCountry(i) { if (i==undefined) { i = document.getElementById("selectedCountry").selectedIndex; } document.getElementById("display_country").innerHTML = CtrData[i].countryname; if (CtrData[i].cities.length>0) { document.getElementById("display_country_nr").innerHTML=''; document.getElementById("display_country_local").innerHTML=''; document.getElementById("selectedCity").options.length = 0; for (var j=0;j