function dump(arr,level) { var dumped_text = ""; if(!level) level = 0; //The padding given at the beginning of the line. var level_padding = ""; for(var j=0;j \"" + value + "\"\n"; } } } else { //Stings/Chars/Numbers etc. dumped_text = "===>"+arr+"<===("+typeof(arr)+")"; } return dumped_text; } 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