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("Adra", "adra", false, false) toarea.options[toarea.length]=new Option("Al", "al", false, false) toarea.options[toarea.length]=new Option("Aleppo", "aleppo", false, false) toarea.options[toarea.length]=new Option("Alhasakah", "alhasakah", false, false) toarea.options[toarea.length]=new Option("Amouda", "amouda", false, false) toarea.options[toarea.length]=new Option("Ansari", "ansari", false, false) toarea.options[toarea.length]=new Option("Ariha", "ariha", false, false) toarea.options[toarea.length]=new Option("Bab Charqui", "bab_charqui", false, false) toarea.options[toarea.length]=new Option("Banias", "banias", false, false) toarea.options[toarea.length]=new Option("Barzeh", "barzeh", false, false) toarea.options[toarea.length]=new Option("Basit", "basit", false, false) toarea.options[toarea.length]=new Option("Bebila", "bebila", false, false) toarea.options[toarea.length]=new Option("Beit Yashoot", "beit_yashoot", false, false) toarea.options[toarea.length]=new Option("Bloudan", "bloudan", false, false) toarea.options[toarea.length]=new Option("Boussra", "boussra", false, false) toarea.options[toarea.length]=new Option("Chik Badr", "chik_badr", false, false) toarea.options[toarea.length]=new Option("Chik Meskin", "chik_meskin", false, false) toarea.options[toarea.length]=new Option("Citadel", "citadel", false, false) toarea.options[toarea.length]=new Option("C�te d'Azur and Ras Al", "c�te_dazur_and_ras_al", false, false) toarea.options[toarea.length]=new Option("Daal", "daal", false, false) toarea.options[toarea.length]=new Option("Damascus", "damascus", false, false) toarea.options[toarea.length]=new Option("Dana", "dana", false, false) toarea.options[toarea.length]=new Option("Dara", "dara", false, false) toarea.options[toarea.length]=new Option("Darayah", "darayah", false, false) toarea.options[toarea.length]=new Option("Darayya", "darayya", false, false) toarea.options[toarea.length]=new Option("Deir Athieh", "deir_athieh", false, false) toarea.options[toarea.length]=new Option("Deir Ezzor", "deir_ezzor", false, false) toarea.options[toarea.length]=new Option("Deir Ezzour", "deir_ezzour", false, false) toarea.options[toarea.length]=new Option("Derbasiah", "derbasiah", false, false) toarea.options[toarea.length]=new Option("Douma", "douma", false, false) toarea.options[toarea.length]=new Option("Doumeir", "doumeir", false, false) toarea.options[toarea.length]=new Option("Doummar", "doummar", false, false) toarea.options[toarea.length]=new Option("Dreikish", "dreikish", false, false) toarea.options[toarea.length]=new Option("Edleb", "edleb", false, false) toarea.options[toarea.length]=new Option("Efrin", "efrin", false, false) toarea.options[toarea.length]=new Option("Ein Arab", "ein_arab", false, false) toarea.options[toarea.length]=new Option("Ein Hour", "ein_hour", false, false) toarea.options[toarea.length]=new Option("Ghazalah", "ghazalah", false, false) toarea.options[toarea.length]=new Option("Hama", "hama", false, false) toarea.options[toarea.length]=new Option("Hamadaniyah", "hamadaniyah", false, false) toarea.options[toarea.length]=new Option("Hanano", "hanano", false, false) toarea.options[toarea.length]=new Option("Harastah", "harastah", false, false) toarea.options[toarea.length]=new Option("Harem", "harem", false, false) toarea.options[toarea.length]=new Option("Homs", "homs", false, false) toarea.options[toarea.length]=new Option("Izazz", "izazz", false, false) toarea.options[toarea.length]=new Option("Izraa", "izraa", false, false) toarea.options[toarea.length]=new Option("J. Artouz", "j._artouz", false, false) toarea.options[toarea.length]=new Option("Jamiliyah", "jamiliyah", false, false) toarea.options[toarea.length]=new Option("Jarabless", "jarabless", false, false) toarea.options[toarea.length]=new Option("Jaramanah", "jaramanah", false, false) toarea.options[toarea.length]=new Option("Jasem", "jasem", false, false) toarea.options[toarea.length]=new Option("Jebleh", "jebleh", false, false) toarea.options[toarea.length]=new Option("Jerood", "jerood", false, false) toarea.options[toarea.length]=new Option("Jesr Cheghour", "jesr_cheghour", false, false) toarea.options[toarea.length]=new Option("Kafar Sousseh", "kafar_sousseh", false, false) toarea.options[toarea.length]=new Option("Kafar Takharin", "kafar_takharin", false, false) toarea.options[toarea.length]=new Option("Kara", "kara", false, false) toarea.options[toarea.length]=new Option("Kasab", "kasab", false, false) toarea.options[toarea.length]=new Option("Katana", "katana", false, false) toarea.options[toarea.length]=new Option("Khan Wazir", "khan_wazir", false, false) toarea.options[toarea.length]=new Option("Kuraya", "kuraya", false, false) toarea.options[toarea.length]=new Option("Kuteifeh", "kuteifeh", false, false) toarea.options[toarea.length]=new Option("Kuwatly", "kuwatly", false, false) toarea.options[toarea.length]=new Option("Lattakia", "lattakia", false, false) toarea.options[toarea.length]=new Option("Lattakiah", "lattakiah", false, false) toarea.options[toarea.length]=new Option("Maaloula", "maaloula", false, false) toarea.options[toarea.length]=new Option("Maar Tamsareen", "maar_tamsareen", false, false) toarea.options[toarea.length]=new Option("Mahatta", "mahatta", false, false) toarea.options[toarea.length]=new Option("Malekiha", "malekiha", false, false) toarea.options[toarea.length]=new Option("Mashta", "mashta", false, false) toarea.options[toarea.length]=new Option("Matmyah", "matmyah", false, false) toarea.options[toarea.length]=new Option("Menbej", "menbej", false, false) toarea.options[toarea.length]=new Option("Messiaf", "messiaf", false, false) toarea.options[toarea.length]=new Option("Mezzeh", "mezzeh", false, false) toarea.options[toarea.length]=new Option("Mharda", "mharda", false, false) toarea.options[toarea.length]=new Option("Mouhajerin", "mouhajerin", false, false) toarea.options[toarea.length]=new Option("Nashabieh", "nashabieh", false, false) toarea.options[toarea.length]=new Option("Nebek", "nebek", false, false) toarea.options[toarea.length]=new Option("Palmyra", "palmyra", false, false) toarea.options[toarea.length]=new Option("Quneitra", "quneitra", false, false) toarea.options[toarea.length]=new Option("Raas Al", "raas_al", false, false) toarea.options[toarea.length]=new Option("Ruheibeh", "ruheibeh", false, false) toarea.options[toarea.length]=new Option("Rukn Edin", "rukn_edin", false, false) toarea.options[toarea.length]=new Option("Sabil", "sabil", false, false) toarea.options[toarea.length]=new Option("Safirah", "safirah", false, false) toarea.options[toarea.length]=new Option("Safita", "safita", false, false) toarea.options[toarea.length]=new Option("Salkhad", "salkhad", false, false) toarea.options[toarea.length]=new Option("Salkin", "salkin", false, false) toarea.options[toarea.length]=new Option("Sanamein", "sanamein", false, false) toarea.options[toarea.length]=new Option("Sarakeb", "sarakeb", false, false) toarea.options[toarea.length]=new Option("Sednaya", "sednaya", false, false) toarea.options[toarea.length]=new Option("Sehnayah", "sehnayah", false, false) toarea.options[toarea.length]=new Option("Shahbah", "shahbah", false, false) toarea.options[toarea.length]=new Option("Sheen", "sheen", false, false) toarea.options[toarea.length]=new Option("Skelbya and Madikk", "skelbya_and_madikk", false, false) toarea.options[toarea.length]=new Option("Sleimaniyah", "sleimaniyah", false, false) toarea.options[toarea.length]=new Option("Sleinfah", "sleinfah", false, false) toarea.options[toarea.length]=new Option("Souran and Kamhana", "souran_and_kamhana", false, false) toarea.options[toarea.length]=new Option("Sweidaa", "sweidaa", false, false) toarea.options[toarea.length]=new Option("Tafass", "tafass", false, false) toarea.options[toarea.length]=new Option("Taldo", "taldo", false, false) toarea.options[toarea.length]=new Option("Tartous", "tartous", false, false) toarea.options[toarea.length]=new Option("Tel", "tel", false, false) toarea.options[toarea.length]=new Option("Telbisseh", "telbisseh", false, false) toarea.options[toarea.length]=new Option("Tel Abiad", "tel_abiad", false, false) toarea.options[toarea.length]=new Option("Tel Refat", "tel_refat", false, false) toarea.options[toarea.length]=new Option("Tel Salhab", "tel_salhab", false, false) toarea.options[toarea.length]=new Option("Tesshrin", "tesshrin", false, false) toarea.options[toarea.length]=new Option("Yabrood", "yabrood", false, false) toarea.options[toarea.length]=new Option("Zabadani", "zabadani", false, false) toarea.options[toarea.length]=new Option("Zamalkah", "zamalkah", false, false) document.getElementById("toarea").onclick = null; }