function buildurl(x) { if (x == "cleararea") {var rdir = "https://www.dialingcode.com/country/" + document.country.fromcountry.value + "-to-" + document.country.tocountry.value;} else {var rdir = "https://www.dialingcode.com/country/" + document.country.fromcountry.value + "-to-" + document.country.tocountry.value + "-" + document.country.toarea.value;} rdir = rdir.replace(/-$/,''); rdir = rdir.replace(/-none$/,''); rdir = rdir.replace(/-all$/,''); rdir = rdir.replace(/none-to-/,''); if (document.country.tocountry.value != 'none') {window.location = rdir;} } function populatefrom() { var fromcountry = document.getElementById("fromcountry"); fromcountry.options[fromcountry.length]=new Option("Afghanistan", "afghanistan", false, false) fromcountry.options[fromcountry.length]=new Option("Albania", "albania", false, false) fromcountry.options[fromcountry.length]=new Option("Algeria", "algeria", false, false) fromcountry.options[fromcountry.length]=new Option("Andorra", "andorra", false, false) fromcountry.options[fromcountry.length]=new Option("Angola", "angola", false, false) fromcountry.options[fromcountry.length]=new Option("Anguilla", "anguilla", false, false) fromcountry.options[fromcountry.length]=new Option("Antigua and Barbuda", "antigua_and_barbuda", false, false) fromcountry.options[fromcountry.length]=new Option("Argentina", "argentina", false, false) fromcountry.options[fromcountry.length]=new Option("Armenia", "armenia", false, false) fromcountry.options[fromcountry.length]=new Option("Aruba", "aruba", false, false) fromcountry.options[fromcountry.length]=new Option("Australia", "australia", false, false) fromcountry.options[fromcountry.length]=new Option("Austria", "austria", false, false) fromcountry.options[fromcountry.length]=new Option("Azerbaijan", "azerbaijan", false, false) fromcountry.options[fromcountry.length]=new Option("Bahamas", "bahamas", false, false) fromcountry.options[fromcountry.length]=new Option("Bahrain", "bahrain", false, false) fromcountry.options[fromcountry.length]=new Option("Bangladesh", "bangladesh", false, false) fromcountry.options[fromcountry.length]=new Option("Barbados", "barbados", false, false) fromcountry.options[fromcountry.length]=new Option("Belarus", "belarus", false, false) fromcountry.options[fromcountry.length]=new Option("Belgium", "belgium", false, false) fromcountry.options[fromcountry.length]=new Option("Belize", "belize", false, false) fromcountry.options[fromcountry.length]=new Option("Benin", "benin", false, false) fromcountry.options[fromcountry.length]=new Option("Bermuda", "bermuda", false, false) fromcountry.options[fromcountry.length]=new Option("Bhutan", "bhutan", false, false) fromcountry.options[fromcountry.length]=new Option("Bolivia", "bolivia", false, false) fromcountry.options[fromcountry.length]=new Option("Bosnia and Herzegovina", "bosnia_and_herzegovina", false, false) fromcountry.options[fromcountry.length]=new Option("Botswana", "botswana", false, false) fromcountry.options[fromcountry.length]=new Option("Brazil", "brazil", false, false) fromcountry.options[fromcountry.length]=new Option("Brunei", "brunei", false, false) fromcountry.options[fromcountry.length]=new Option("Bulgaria", "bulgaria", false, false) fromcountry.options[fromcountry.length]=new Option("Burkina Faso", "burkina_faso", false, false) fromcountry.options[fromcountry.length]=new Option("Cambodia", "cambodia", false, false) fromcountry.options[fromcountry.length]=new Option("Canada", "canada", false, false) fromcountry.options[fromcountry.length]=new Option("Cape Verde", "cape_verde", false, false) fromcountry.options[fromcountry.length]=new Option("Cayman Islands", "cayman_islands", false, false) fromcountry.options[fromcountry.length]=new Option("Central African Republic", "central_african_republic", false, false) fromcountry.options[fromcountry.length]=new Option("Chad", "chad", false, false) fromcountry.options[fromcountry.length]=new Option("Chile", "chile", false, false) fromcountry.options[fromcountry.length]=new Option("China", "china", false, false) fromcountry.options[fromcountry.length]=new Option("Colombia", "colombia", false, false) fromcountry.options[fromcountry.length]=new Option("Comoros", "comoros", false, false) fromcountry.options[fromcountry.length]=new Option("Congo", "congo", false, false) fromcountry.options[fromcountry.length]=new Option("Cook Islands", "cook_islands", false, false) fromcountry.options[fromcountry.length]=new Option("Costa Rica", "costa_rica", false, false) fromcountry.options[fromcountry.length]=new Option("Croatia", "croatia", false, false) fromcountry.options[fromcountry.length]=new Option("Cuba", "cuba", false, false) fromcountry.options[fromcountry.length]=new Option("Cyprus", "cyprus", false, false) fromcountry.options[fromcountry.length]=new Option("Czech Republic", "czech_republic", false, false) fromcountry.options[fromcountry.length]=new Option("Denmark", "denmark", false, false) fromcountry.options[fromcountry.length]=new Option("Dominica", "dominica", false, false) fromcountry.options[fromcountry.length]=new Option("Dominican Republic", "dominican_republic", false, false) fromcountry.options[fromcountry.length]=new Option("Ecuador", "ecuador", false, false) fromcountry.options[fromcountry.length]=new Option("Egypt", "egypt", false, false) fromcountry.options[fromcountry.length]=new Option("El Salvador", "el_salvador", false, false) fromcountry.options[fromcountry.length]=new Option("Eritrea", "eritrea", false, false) fromcountry.options[fromcountry.length]=new Option("Estonia", "estonia", false, false) fromcountry.options[fromcountry.length]=new Option("Ethiopia", "ethiopia", false, false) fromcountry.options[fromcountry.length]=new Option("Falkland Islands", "falkland_islands", false, false) fromcountry.options[fromcountry.length]=new Option("Faroe Islands", "faroe_islands", false, false) fromcountry.options[fromcountry.length]=new Option("Fiji", "fiji", false, false) fromcountry.options[fromcountry.length]=new Option("Finland", "finland", false, false) fromcountry.options[fromcountry.length]=new Option("France", "france", false, false) fromcountry.options[fromcountry.length]=new Option("French Polynesia", "french_polynesia", false, false) fromcountry.options[fromcountry.length]=new Option("Gabon", "gabon", false, false) fromcountry.options[fromcountry.length]=new Option("Gambia", "gambia", false, false) fromcountry.options[fromcountry.length]=new Option("Georgia", "georgia", false, false) fromcountry.options[fromcountry.length]=new Option("Germany", "germany", false, false) fromcountry.options[fromcountry.length]=new Option("Ghana", "ghana", false, false) fromcountry.options[fromcountry.length]=new Option("Gibraltar", "gibraltar", false, false) fromcountry.options[fromcountry.length]=new Option("Greece", "greece", false, false) fromcountry.options[fromcountry.length]=new Option("Greenland", "greenland", false, false) fromcountry.options[fromcountry.length]=new Option("Grenada", "grenada", false, false) fromcountry.options[fromcountry.length]=new Option("Guam", "guam", false, false) fromcountry.options[fromcountry.length]=new Option("Guatemala", "guatemala", false, false) fromcountry.options[fromcountry.length]=new Option("Guinea", "guinea", false, false) fromcountry.options[fromcountry.length]=new Option("Guinea-Bissau", "guineabissau", false, false) fromcountry.options[fromcountry.length]=new Option("Guyana", "guyana", false, false) fromcountry.options[fromcountry.length]=new Option("Haiti", "haiti", false, false) fromcountry.options[fromcountry.length]=new Option("Honduras", "honduras", false, false) fromcountry.options[fromcountry.length]=new Option("Hong Kong", "hong_kong", false, false) fromcountry.options[fromcountry.length]=new Option("Hungary", "hungary", false, false) fromcountry.options[fromcountry.length]=new Option("Iceland", "iceland", false, false) fromcountry.options[fromcountry.length]=new Option("India", "india", false, false) fromcountry.options[fromcountry.length]=new Option("Indonesia", "indonesia", false, false) fromcountry.options[fromcountry.length]=new Option("Iran", "iran", false, false) fromcountry.options[fromcountry.length]=new Option("Iraq", "iraq", false, false) fromcountry.options[fromcountry.length]=new Option("Ireland", "ireland", false, false) fromcountry.options[fromcountry.length]=new Option("Israel", "israel", false, false) fromcountry.options[fromcountry.length]=new Option("Italy", "italy", false, false) fromcountry.options[fromcountry.length]=new Option("Jamaica", "jamaica", false, false) fromcountry.options[fromcountry.length]=new Option("Japan", "japan", false, false) fromcountry.options[fromcountry.length]=new Option("Jordan", "jordan", false, false) fromcountry.options[fromcountry.length]=new Option("Kazakhstan", "kazakhstan", false, false) fromcountry.options[fromcountry.length]=new Option("Kenya", "kenya", false, false) fromcountry.options[fromcountry.length]=new Option("Kuwait", "kuwait", false, false) fromcountry.options[fromcountry.length]=new Option("Kyrgyzstan", "kyrgyzstan", false, false) fromcountry.options[fromcountry.length]=new Option("Latvia", "latvia", false, false) fromcountry.options[fromcountry.length]=new Option("Lebanon", "lebanon", false, false) fromcountry.options[fromcountry.length]=new Option("Lesotho", "lesotho", false, false) fromcountry.options[fromcountry.length]=new Option("Liberia", "liberia", false, false) fromcountry.options[fromcountry.length]=new Option("Libya", "libya", false, false) fromcountry.options[fromcountry.length]=new Option("Liechtenstein", "liechtenstein", false, false) fromcountry.options[fromcountry.length]=new Option("Lithuania", "lithuania", false, false) fromcountry.options[fromcountry.length]=new Option("Luxembourg", "luxembourg", false, false) fromcountry.options[fromcountry.length]=new Option("Macao", "macao", false, false) fromcountry.options[fromcountry.length]=new Option("Macedonia", "macedonia", false, false) fromcountry.options[fromcountry.length]=new Option("Madagascar", "madagascar", false, false) fromcountry.options[fromcountry.length]=new Option("Malawi", "malawi", false, false) fromcountry.options[fromcountry.length]=new Option("Malaysia", "malaysia", false, false) fromcountry.options[fromcountry.length]=new Option("Maldives", "maldives", false, false) fromcountry.options[fromcountry.length]=new Option("Mali", "mali", false, false) fromcountry.options[fromcountry.length]=new Option("Malta", "malta", false, false) fromcountry.options[fromcountry.length]=new Option("Marshall Islands", "marshall_islands", false, false) fromcountry.options[fromcountry.length]=new Option("Martinique", "martinique", false, false) fromcountry.options[fromcountry.length]=new Option("Mauritania", "mauritania", false, false) fromcountry.options[fromcountry.length]=new Option("Mauritius", "mauritius", false, false) fromcountry.options[fromcountry.length]=new Option("Mexico", "mexico", false, false) fromcountry.options[fromcountry.length]=new Option("Micronesia", "micronesia", false, false) fromcountry.options[fromcountry.length]=new Option("Moldova", "moldova", false, false) fromcountry.options[fromcountry.length]=new Option("Monaco", "monaco", false, false) fromcountry.options[fromcountry.length]=new Option("Mongolia", "mongolia", false, false) fromcountry.options[fromcountry.length]=new Option("Montserrat", "montserrat", false, false) fromcountry.options[fromcountry.length]=new Option("Morocco", "morocco", false, false) fromcountry.options[fromcountry.length]=new Option("Mozambique", "mozambique", false, false) fromcountry.options[fromcountry.length]=new Option("Myanmar", "myanmar", false, false) fromcountry.options[fromcountry.length]=new Option("Namibia", "namibia", false, false) fromcountry.options[fromcountry.length]=new Option("Nauru", "nauru", false, false) fromcountry.options[fromcountry.length]=new Option("Nepal", "nepal", false, false) fromcountry.options[fromcountry.length]=new Option("Netherlands", "netherlands", false, false) fromcountry.options[fromcountry.length]=new Option("New Zealand", "new_zealand", false, false) fromcountry.options[fromcountry.length]=new Option("Nicaragua", "nicaragua", false, false) fromcountry.options[fromcountry.length]=new Option("Niger", "niger", false, false) fromcountry.options[fromcountry.length]=new Option("Nigeria", "nigeria", false, false) fromcountry.options[fromcountry.length]=new Option("Niue", "niue", false, false) fromcountry.options[fromcountry.length]=new Option("Norfolk Island", "norfolk_island", false, false) fromcountry.options[fromcountry.length]=new Option("North Korea", "north_korea", false, false) fromcountry.options[fromcountry.length]=new Option("Norway", "norway", false, false) fromcountry.options[fromcountry.length]=new Option("Oman", "oman", false, false) fromcountry.options[fromcountry.length]=new Option("Pakistan", "pakistan", false, false) fromcountry.options[fromcountry.length]=new Option("Palau", "palau", false, false) fromcountry.options[fromcountry.length]=new Option("Panama", "panama", false, false) fromcountry.options[fromcountry.length]=new Option("Papua New Guinea", "papua_new_guinea", false, false) fromcountry.options[fromcountry.length]=new Option("Paraguay", "paraguay", false, false) fromcountry.options[fromcountry.length]=new Option("Peru", "peru", false, false) fromcountry.options[fromcountry.length]=new Option("Philippines", "philippines", false, false) fromcountry.options[fromcountry.length]=new Option("Poland", "poland", false, false) fromcountry.options[fromcountry.length]=new Option("Portugal", "portugal", false, false) fromcountry.options[fromcountry.length]=new Option("Puerto Rico", "puerto_rico", false, false) fromcountry.options[fromcountry.length]=new Option("Qatar", "qatar", false, false) fromcountry.options[fromcountry.length]=new Option("Romania", "romania", false, false) fromcountry.options[fromcountry.length]=new Option("Russia", "russia", false, false) fromcountry.options[fromcountry.length]=new Option("Rwanda", "rwanda", false, false) fromcountry.options[fromcountry.length]=new Option("Saint Kitts and Nevis", "saint_kitts_and_nevis", false, false) fromcountry.options[fromcountry.length]=new Option("Saint Lucia", "saint_lucia", false, false) fromcountry.options[fromcountry.length]=new Option("Saint Pierre and Miquelon", "saint_pierre_and_miquelon", false, false) fromcountry.options[fromcountry.length]=new Option("Samoa", "samoa", false, false) fromcountry.options[fromcountry.length]=new Option("San Marino", "san_marino", false, false) fromcountry.options[fromcountry.length]=new Option("Sao Tome and Principe", "sao_tome_and_principe", false, false) fromcountry.options[fromcountry.length]=new Option("Saudi Arabia", "saudi_arabia", false, false) fromcountry.options[fromcountry.length]=new Option("Senegal", "senegal", false, false) fromcountry.options[fromcountry.length]=new Option("Serbia and Montenegro", "serbia_and_montenegro", false, false) fromcountry.options[fromcountry.length]=new Option("Seychelles", "seychelles", false, false) fromcountry.options[fromcountry.length]=new Option("Sierra Leone", "sierra_leone", false, false) fromcountry.options[fromcountry.length]=new Option("Singapore", "singapore", false, false) fromcountry.options[fromcountry.length]=new Option("Slovakia", "slovakia", false, false) fromcountry.options[fromcountry.length]=new Option("Slovenia", "slovenia", false, false) fromcountry.options[fromcountry.length]=new Option("Solomon Islands", "solomon_islands", false, false) fromcountry.options[fromcountry.length]=new Option("Somalia", "somalia", false, false) fromcountry.options[fromcountry.length]=new Option("South Africa", "south_africa", false, false) fromcountry.options[fromcountry.length]=new Option("South Korea", "south_korea", false, false) fromcountry.options[fromcountry.length]=new Option("Spain", "spain", false, false) fromcountry.options[fromcountry.length]=new Option("Sri Lanka", "sri_lanka", false, false) fromcountry.options[fromcountry.length]=new Option("Sudan", "sudan", false, false) fromcountry.options[fromcountry.length]=new Option("Suriname", "suriname", false, false) fromcountry.options[fromcountry.length]=new Option("Swaziland", "swaziland", false, false) fromcountry.options[fromcountry.length]=new Option("Sweden", "sweden", false, false) fromcountry.options[fromcountry.length]=new Option("Switzerland", "switzerland", false, false) fromcountry.options[fromcountry.length]=new Option("Syria", "syria", false, false) fromcountry.options[fromcountry.length]=new Option("Taiwan", "taiwan", false, false) fromcountry.options[fromcountry.length]=new Option("Tajikistan", "tajikistan", false, false) fromcountry.options[fromcountry.length]=new Option("Tanzania", "tanzania", false, false) fromcountry.options[fromcountry.length]=new Option("Thailand", "thailand", false, false) fromcountry.options[fromcountry.length]=new Option("Togo", "togo", false, false) fromcountry.options[fromcountry.length]=new Option("Tonga", "tonga", false, false) fromcountry.options[fromcountry.length]=new Option("Trinidad and Tobago", "trinidad_and_tobago", false, false) fromcountry.options[fromcountry.length]=new Option("Tunisia", "tunisia", false, false) fromcountry.options[fromcountry.length]=new Option("Turkey", "turkey", false, false) fromcountry.options[fromcountry.length]=new Option("Turkmenistan", "turkmenistan", false, false) fromcountry.options[fromcountry.length]=new Option("Turks and Caicos Islands", "turks_and_caicos_islands", false, false) fromcountry.options[fromcountry.length]=new Option("Tuvalu", "tuvalu", false, false) fromcountry.options[fromcountry.length]=new Option("Uganda", "uganda", false, false) fromcountry.options[fromcountry.length]=new Option("UK", "uk", false, false) fromcountry.options[fromcountry.length]=new Option("Ukraine", "ukraine", false, false) fromcountry.options[fromcountry.length]=new Option("United Arab Emirates", "united_arab_emirates", false, false) fromcountry.options[fromcountry.length]=new Option("Uruguay", "uruguay", false, false) fromcountry.options[fromcountry.length]=new Option("USA", "usa", false, false) fromcountry.options[fromcountry.length]=new Option("Uzbekistan", "uzbekistan", false, false) fromcountry.options[fromcountry.length]=new Option("Vanuatu", "vanuatu", false, false) fromcountry.options[fromcountry.length]=new Option("Vatican", "vatican", false, false) fromcountry.options[fromcountry.length]=new Option("Venezuela", "venezuela", false, false) fromcountry.options[fromcountry.length]=new Option("Vietnam", "vietnam", false, false) fromcountry.options[fromcountry.length]=new Option("Virgin Islands (UK)", "virgin_islands_(uk)", false, false) fromcountry.options[fromcountry.length]=new Option("Virgin Islands (US)", "virgin_islands_(us)", false, false) fromcountry.options[fromcountry.length]=new Option("Yemen", "yemen", false, false) fromcountry.options[fromcountry.length]=new Option("Zambia", "zambia", false, false) fromcountry.options[fromcountry.length]=new Option("Zimbabwe", "zimbabwe", false, false) document.getElementById("fromcountry").onclick = null; } function populateto() { var tocountry = document.getElementById("tocountry"); tocountry.options[tocountry.length]=new Option("Afghanistan", "afghanistan", false, false) tocountry.options[tocountry.length]=new Option("Albania", "albania", false, false) tocountry.options[tocountry.length]=new Option("Algeria", "algeria", false, false) tocountry.options[tocountry.length]=new Option("Andorra", "andorra", false, false) tocountry.options[tocountry.length]=new Option("Angola", "angola", false, false) tocountry.options[tocountry.length]=new Option("Anguilla", "anguilla", false, false) tocountry.options[tocountry.length]=new Option("Antigua and Barbuda", "antigua_and_barbuda", false, false) tocountry.options[tocountry.length]=new Option("Argentina", "argentina", false, false) tocountry.options[tocountry.length]=new Option("Armenia", "armenia", false, false) tocountry.options[tocountry.length]=new Option("Aruba", "aruba", false, false) tocountry.options[tocountry.length]=new Option("Australia", "australia", false, false) tocountry.options[tocountry.length]=new Option("Austria", "austria", false, false) tocountry.options[tocountry.length]=new Option("Azerbaijan", "azerbaijan", false, false) tocountry.options[tocountry.length]=new Option("Bahamas", "bahamas", false, false) tocountry.options[tocountry.length]=new Option("Bahrain", "bahrain", false, false) tocountry.options[tocountry.length]=new Option("Bangladesh", "bangladesh", false, false) tocountry.options[tocountry.length]=new Option("Barbados", "barbados", false, false) tocountry.options[tocountry.length]=new Option("Belarus", "belarus", false, false) tocountry.options[tocountry.length]=new Option("Belgium", "belgium", false, false) tocountry.options[tocountry.length]=new Option("Belize", "belize", false, false) tocountry.options[tocountry.length]=new Option("Benin", "benin", false, false) tocountry.options[tocountry.length]=new Option("Bermuda", "bermuda", false, false) tocountry.options[tocountry.length]=new Option("Bhutan", "bhutan", false, false) tocountry.options[tocountry.length]=new Option("Bolivia", "bolivia", false, false) tocountry.options[tocountry.length]=new Option("Bosnia and Herzegovina", "bosnia_and_herzegovina", false, false) tocountry.options[tocountry.length]=new Option("Botswana", "botswana", false, false) tocountry.options[tocountry.length]=new Option("Brazil", "brazil", false, false) tocountry.options[tocountry.length]=new Option("Brunei", "brunei", false, false) tocountry.options[tocountry.length]=new Option("Bulgaria", "bulgaria", false, false) tocountry.options[tocountry.length]=new Option("Burkina Faso", "burkina_faso", false, false) tocountry.options[tocountry.length]=new Option("Cambodia", "cambodia", false, false) tocountry.options[tocountry.length]=new Option("Canada", "canada", false, false) tocountry.options[tocountry.length]=new Option("Cape Verde", "cape_verde", false, false) tocountry.options[tocountry.length]=new Option("Cayman Islands", "cayman_islands", false, false) tocountry.options[tocountry.length]=new Option("Central African Republic", "central_african_republic", false, false) tocountry.options[tocountry.length]=new Option("Chad", "chad", false, false) tocountry.options[tocountry.length]=new Option("Chile", "chile", false, false) tocountry.options[tocountry.length]=new Option("China", "china", false, false) tocountry.options[tocountry.length]=new Option("Colombia", "colombia", false, false) tocountry.options[tocountry.length]=new Option("Comoros", "comoros", false, false) tocountry.options[tocountry.length]=new Option("Congo", "congo", false, false) tocountry.options[tocountry.length]=new Option("Cook Islands", "cook_islands", false, false) tocountry.options[tocountry.length]=new Option("Costa Rica", "costa_rica", false, false) tocountry.options[tocountry.length]=new Option("Croatia", "croatia", false, false) tocountry.options[tocountry.length]=new Option("Cuba", "cuba", false, false) tocountry.options[tocountry.length]=new Option("Cyprus", "cyprus", false, false) tocountry.options[tocountry.length]=new Option("Czech Republic", "czech_republic", false, false) tocountry.options[tocountry.length]=new Option("Denmark", "denmark", false, false) tocountry.options[tocountry.length]=new Option("Dominica", "dominica", false, false) tocountry.options[tocountry.length]=new Option("Dominican Republic", "dominican_republic", false, false) tocountry.options[tocountry.length]=new Option("Ecuador", "ecuador", false, false) tocountry.options[tocountry.length]=new Option("Egypt", "egypt", false, false) tocountry.options[tocountry.length]=new Option("El Salvador", "el_salvador", false, false) tocountry.options[tocountry.length]=new Option("Eritrea", "eritrea", false, false) tocountry.options[tocountry.length]=new Option("Estonia", "estonia", false, false) tocountry.options[tocountry.length]=new Option("Ethiopia", "ethiopia", false, false) tocountry.options[tocountry.length]=new Option("Falkland Islands", "falkland_islands", false, false) tocountry.options[tocountry.length]=new Option("Faroe Islands", "faroe_islands", false, false) tocountry.options[tocountry.length]=new Option("Fiji", "fiji", false, false) tocountry.options[tocountry.length]=new Option("Finland", "finland", false, false) tocountry.options[tocountry.length]=new Option("France", "france", false, false) tocountry.options[tocountry.length]=new Option("French Polynesia", "french_polynesia", false, false) tocountry.options[tocountry.length]=new Option("Gabon", "gabon", false, false) tocountry.options[tocountry.length]=new Option("Gambia", "gambia", false, false) tocountry.options[tocountry.length]=new Option("Georgia", "georgia", false, false) tocountry.options[tocountry.length]=new Option("Germany", "germany", false, false) tocountry.options[tocountry.length]=new Option("Ghana", "ghana", false, false) tocountry.options[tocountry.length]=new Option("Gibraltar", "gibraltar", false, false) tocountry.options[tocountry.length]=new Option("Greece", "greece", false, false) tocountry.options[tocountry.length]=new Option("Greenland", "greenland", false, false) tocountry.options[tocountry.length]=new Option("Grenada", "grenada", false, false) tocountry.options[tocountry.length]=new Option("Guam", "guam", false, false) tocountry.options[tocountry.length]=new Option("Guatemala", "guatemala", false, false) tocountry.options[tocountry.length]=new Option("Guinea", "guinea", false, false) tocountry.options[tocountry.length]=new Option("Guinea-Bissau", "guineabissau", false, false) tocountry.options[tocountry.length]=new Option("Guyana", "guyana", false, false) tocountry.options[tocountry.length]=new Option("Haiti", "haiti", false, false) tocountry.options[tocountry.length]=new Option("Honduras", "honduras", false, false) tocountry.options[tocountry.length]=new Option("Hong Kong", "hong_kong", false, false) tocountry.options[tocountry.length]=new Option("Hungary", "hungary", false, false) tocountry.options[tocountry.length]=new Option("Iceland", "iceland", false, false) tocountry.options[tocountry.length]=new Option("India", "india", false, false) tocountry.options[tocountry.length]=new Option("Indonesia", "indonesia", false, false) tocountry.options[tocountry.length]=new Option("Iran", "iran", false, false) tocountry.options[tocountry.length]=new Option("Iraq", "iraq", false, false) tocountry.options[tocountry.length]=new Option("Ireland", "ireland", false, false) tocountry.options[tocountry.length]=new Option("Israel", "israel", false, false) tocountry.options[tocountry.length]=new Option("Italy", "italy", false, false) tocountry.options[tocountry.length]=new Option("Jamaica", "jamaica", false, false) tocountry.options[tocountry.length]=new Option("Japan", "japan", false, false) tocountry.options[tocountry.length]=new Option("Jordan", "jordan", false, false) tocountry.options[tocountry.length]=new Option("Kazakhstan", "kazakhstan", false, false) tocountry.options[tocountry.length]=new Option("Kenya", "kenya", false, false) tocountry.options[tocountry.length]=new Option("Kuwait", "kuwait", false, false) tocountry.options[tocountry.length]=new Option("Kyrgyzstan", "kyrgyzstan", false, false) tocountry.options[tocountry.length]=new Option("Latvia", "latvia", false, false) tocountry.options[tocountry.length]=new Option("Lebanon", "lebanon", false, false) tocountry.options[tocountry.length]=new Option("Lesotho", "lesotho", false, false) tocountry.options[tocountry.length]=new Option("Liberia", "liberia", false, false) tocountry.options[tocountry.length]=new Option("Libya", "libya", false, false) tocountry.options[tocountry.length]=new Option("Liechtenstein", "liechtenstein", false, false) tocountry.options[tocountry.length]=new Option("Lithuania", "lithuania", false, false) tocountry.options[tocountry.length]=new Option("Luxembourg", "luxembourg", false, false) tocountry.options[tocountry.length]=new Option("Macao", "macao", false, false) tocountry.options[tocountry.length]=new Option("Macedonia", "macedonia", false, false) tocountry.options[tocountry.length]=new Option("Madagascar", "madagascar", false, false) tocountry.options[tocountry.length]=new Option("Malawi", "malawi", false, false) tocountry.options[tocountry.length]=new Option("Malaysia", "malaysia", false, false) tocountry.options[tocountry.length]=new Option("Maldives", "maldives", false, false) tocountry.options[tocountry.length]=new Option("Mali", "mali", false, false) tocountry.options[tocountry.length]=new Option("Malta", "malta", false, false) tocountry.options[tocountry.length]=new Option("Marshall Islands", "marshall_islands", false, false) tocountry.options[tocountry.length]=new Option("Martinique", "martinique", false, false) tocountry.options[tocountry.length]=new Option("Mauritania", "mauritania", false, false) tocountry.options[tocountry.length]=new Option("Mauritius", "mauritius", false, false) tocountry.options[tocountry.length]=new Option("Mexico", "mexico", false, false) tocountry.options[tocountry.length]=new Option("Micronesia", "micronesia", false, false) tocountry.options[tocountry.length]=new Option("Moldova", "moldova", false, false) tocountry.options[tocountry.length]=new Option("Monaco", "monaco", false, false) tocountry.options[tocountry.length]=new Option("Mongolia", "mongolia", false, false) tocountry.options[tocountry.length]=new Option("Montserrat", "montserrat", false, false) tocountry.options[tocountry.length]=new Option("Morocco", "morocco", false, false) tocountry.options[tocountry.length]=new Option("Mozambique", "mozambique", false, false) tocountry.options[tocountry.length]=new Option("Myanmar", "myanmar", false, false) tocountry.options[tocountry.length]=new Option("Namibia", "namibia", false, false) tocountry.options[tocountry.length]=new Option("Nauru", "nauru", false, false) tocountry.options[tocountry.length]=new Option("Nepal", "nepal", false, false) tocountry.options[tocountry.length]=new Option("Netherlands", "netherlands", false, false) tocountry.options[tocountry.length]=new Option("New Zealand", "new_zealand", false, false) tocountry.options[tocountry.length]=new Option("Nicaragua", "nicaragua", false, false) tocountry.options[tocountry.length]=new Option("Niger", "niger", false, false) tocountry.options[tocountry.length]=new Option("Nigeria", "nigeria", false, false) tocountry.options[tocountry.length]=new Option("Niue", "niue", false, false) tocountry.options[tocountry.length]=new Option("Norfolk Island", "norfolk_island", false, false) tocountry.options[tocountry.length]=new Option("North Korea", "north_korea", false, false) tocountry.options[tocountry.length]=new Option("Norway", "norway", false, false) tocountry.options[tocountry.length]=new Option("Oman", "oman", false, false) tocountry.options[tocountry.length]=new Option("Pakistan", "pakistan", false, false) tocountry.options[tocountry.length]=new Option("Palau", "palau", false, false) tocountry.options[tocountry.length]=new Option("Panama", "panama", false, false) tocountry.options[tocountry.length]=new Option("Papua New Guinea", "papua_new_guinea", false, false) tocountry.options[tocountry.length]=new Option("Paraguay", "paraguay", false, false) tocountry.options[tocountry.length]=new Option("Peru", "peru", false, false) tocountry.options[tocountry.length]=new Option("Philippines", "philippines", false, false) tocountry.options[tocountry.length]=new Option("Poland", "poland", false, false) tocountry.options[tocountry.length]=new Option("Portugal", "portugal", false, false) tocountry.options[tocountry.length]=new Option("Puerto Rico", "puerto_rico", false, false) tocountry.options[tocountry.length]=new Option("Qatar", "qatar", false, false) tocountry.options[tocountry.length]=new Option("Romania", "romania", false, false) tocountry.options[tocountry.length]=new Option("Russia", "russia", false, false) tocountry.options[tocountry.length]=new Option("Rwanda", "rwanda", false, false) tocountry.options[tocountry.length]=new Option("Saint Kitts and Nevis", "saint_kitts_and_nevis", false, false) tocountry.options[tocountry.length]=new Option("Saint Lucia", "saint_lucia", false, false) tocountry.options[tocountry.length]=new Option("Saint Pierre and Miquelon", "saint_pierre_and_miquelon", false, false) tocountry.options[tocountry.length]=new Option("Samoa", "samoa", false, false) tocountry.options[tocountry.length]=new Option("San Marino", "san_marino", false, false) tocountry.options[tocountry.length]=new Option("Sao Tome and Principe", "sao_tome_and_principe", false, false) tocountry.options[tocountry.length]=new Option("Saudi Arabia", "saudi_arabia", false, false) tocountry.options[tocountry.length]=new Option("Senegal", "senegal", false, false) tocountry.options[tocountry.length]=new Option("Serbia and Montenegro", "serbia_and_montenegro", false, false) tocountry.options[tocountry.length]=new Option("Seychelles", "seychelles", false, false) tocountry.options[tocountry.length]=new Option("Sierra Leone", "sierra_leone", false, false) tocountry.options[tocountry.length]=new Option("Singapore", "singapore", false, false) tocountry.options[tocountry.length]=new Option("Slovakia", "slovakia", false, false) tocountry.options[tocountry.length]=new Option("Slovenia", "slovenia", false, false) tocountry.options[tocountry.length]=new Option("Solomon Islands", "solomon_islands", false, false) tocountry.options[tocountry.length]=new Option("Somalia", "somalia", false, false) tocountry.options[tocountry.length]=new Option("South Africa", "south_africa", false, false) tocountry.options[tocountry.length]=new Option("South Korea", "south_korea", false, false) tocountry.options[tocountry.length]=new Option("Spain", "spain", false, false) tocountry.options[tocountry.length]=new Option("Sri Lanka", "sri_lanka", false, false) tocountry.options[tocountry.length]=new Option("Sudan", "sudan", false, false) tocountry.options[tocountry.length]=new Option("Suriname", "suriname", false, false) tocountry.options[tocountry.length]=new Option("Swaziland", "swaziland", false, false) tocountry.options[tocountry.length]=new Option("Sweden", "sweden", false, false) tocountry.options[tocountry.length]=new Option("Switzerland", "switzerland", false, false) tocountry.options[tocountry.length]=new Option("Syria", "syria", false, false) tocountry.options[tocountry.length]=new Option("Taiwan", "taiwan", false, false) tocountry.options[tocountry.length]=new Option("Tajikistan", "tajikistan", false, false) tocountry.options[tocountry.length]=new Option("Tanzania", "tanzania", false, false) tocountry.options[tocountry.length]=new Option("Thailand", "thailand", false, false) tocountry.options[tocountry.length]=new Option("Togo", "togo", false, false) tocountry.options[tocountry.length]=new Option("Tonga", "tonga", false, false) tocountry.options[tocountry.length]=new Option("Trinidad and Tobago", "trinidad_and_tobago", false, false) tocountry.options[tocountry.length]=new Option("Tunisia", "tunisia", false, false) tocountry.options[tocountry.length]=new Option("Turkey", "turkey", false, false) tocountry.options[tocountry.length]=new Option("Turkmenistan", "turkmenistan", false, false) tocountry.options[tocountry.length]=new Option("Turks and Caicos Islands", "turks_and_caicos_islands", false, false) tocountry.options[tocountry.length]=new Option("Tuvalu", "tuvalu", false, false) tocountry.options[tocountry.length]=new Option("Uganda", "uganda", false, false) tocountry.options[tocountry.length]=new Option("UK", "uk", false, false) tocountry.options[tocountry.length]=new Option("Ukraine", "ukraine", false, false) tocountry.options[tocountry.length]=new Option("United Arab Emirates", "united_arab_emirates", false, false) tocountry.options[tocountry.length]=new Option("Uruguay", "uruguay", false, false) tocountry.options[tocountry.length]=new Option("USA", "usa", false, false) tocountry.options[tocountry.length]=new Option("Uzbekistan", "uzbekistan", false, false) tocountry.options[tocountry.length]=new Option("Vanuatu", "vanuatu", false, false) tocountry.options[tocountry.length]=new Option("Vatican", "vatican", false, false) tocountry.options[tocountry.length]=new Option("Venezuela", "venezuela", false, false) tocountry.options[tocountry.length]=new Option("Vietnam", "vietnam", false, false) tocountry.options[tocountry.length]=new Option("Virgin Islands (UK)", "virgin_islands_(uk)", false, false) tocountry.options[tocountry.length]=new Option("Virgin Islands (US)", "virgin_islands_(us)", false, false) tocountry.options[tocountry.length]=new Option("Yemen", "yemen", false, false) tocountry.options[tocountry.length]=new Option("Zambia", "zambia", false, false) tocountry.options[tocountry.length]=new Option("Zimbabwe", "zimbabwe", false, false) document.getElementById("tocountry").onclick = null; } function populatearea() { var toarea = document.getElementById("toarea"); toarea.options[toarea.length]=new Option("Bermejo", "bermejo", false, false) toarea.options[toarea.length]=new Option("Cobija", "cobija", false, false) toarea.options[toarea.length]=new Option("Cochabamba", "cochabamba", false, false) toarea.options[toarea.length]=new Option("Guayaramerin", "guayaramerin", false, false) toarea.options[toarea.length]=new Option("La Paz", "la_paz", false, false) toarea.options[toarea.length]=new Option("Oruro", "oruro", false, false) toarea.options[toarea.length]=new Option("Potosi", "potosi", false, false) toarea.options[toarea.length]=new Option("Riberalta", "riberalta", false, false) toarea.options[toarea.length]=new Option("Sucre", "sucre", false, false) toarea.options[toarea.length]=new Option("Tarija", "tarija", false, false) toarea.options[toarea.length]=new Option("Trinidad", "trinidad", false, false) document.getElementById("toarea").onclick = null; }