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("Baranovichi ", "baranovichi_", false, false)
toarea.options[toarea.length]=new Option("Belunichi ", "belunichi_", false, false)
toarea.options[toarea.length]=new Option("Berestovitsa ", "berestovitsa_", false, false)
toarea.options[toarea.length]=new Option("Bereza ", "bereza_", false, false)
toarea.options[toarea.length]=new Option("Berezino ", "berezino_", false, false)
toarea.options[toarea.length]=new Option("Beshenkovichi ", "beshenkovichi_", false, false)
toarea.options[toarea.length]=new Option("Bobruysk ", "bobruysk_", false, false)
toarea.options[toarea.length]=new Option("Bobruysk ", "bobruysk_", false, false)
toarea.options[toarea.length]=new Option("Borisov ", "borisov_", false, false)
toarea.options[toarea.length]=new Option("Bragin ", "bragin_", false, false)
toarea.options[toarea.length]=new Option("Braslav ", "braslav_", false, false)
toarea.options[toarea.length]=new Option("Brest ", "brest_", false, false)
toarea.options[toarea.length]=new Option("Buda-Koshelevo", "buda-koshelevo", false, false)
toarea.options[toarea.length]=new Option("Buhov ", "buhov_", false, false)
toarea.options[toarea.length]=new Option("Chashniki ", "chashniki_", false, false)
toarea.options[toarea.length]=new Option("Chausu ", "chausu_", false, false)
toarea.options[toarea.length]=new Option("Chechersk ", "chechersk_", false, false)
toarea.options[toarea.length]=new Option("Cherikov ", "cherikov_", false, false)
toarea.options[toarea.length]=new Option("Cherven ", "cherven_", false, false)
toarea.options[toarea.length]=new Option("Dobrush ", "dobrush_", false, false)
toarea.options[toarea.length]=new Option("Dokshitsu ", "dokshitsu_", false, false)
toarea.options[toarea.length]=new Option("Dribin ", "dribin_", false, false)
toarea.options[toarea.length]=new Option("Drogichin ", "drogichin_", false, false)
toarea.options[toarea.length]=new Option("Dubrova ", "dubrova_", false, false)
toarea.options[toarea.length]=new Option("Dyatlovo ", "dyatlovo_", false, false)
toarea.options[toarea.length]=new Option("Dzerzhinsk ", "dzerzhinsk_", false, false)
toarea.options[toarea.length]=new Option("Elsk ", "elsk_", false, false)
toarea.options[toarea.length]=new Option("Gancevichi ", "gancevichi_", false, false)
toarea.options[toarea.length]=new Option("Glubokoye ", "glubokoye_", false, false)
toarea.options[toarea.length]=new Option("Glusk ", "glusk_", false, false)
toarea.options[toarea.length]=new Option("Gomel ", "gomel_", false, false)
toarea.options[toarea.length]=new Option("Gorki ", "gorki_", false, false)
toarea.options[toarea.length]=new Option("Gorodok ", "gorodok_", false, false)
toarea.options[toarea.length]=new Option("Grodno ", "grodno_", false, false)
toarea.options[toarea.length]=new Option("Hotimsk ", "hotimsk_", false, false)
toarea.options[toarea.length]=new Option("Hoyniki ", "hoyniki_", false, false)
toarea.options[toarea.length]=new Option("Ivanovo ", "ivanovo_", false, false)
toarea.options[toarea.length]=new Option("Ivatsevichi ", "ivatsevichi_", false, false)
toarea.options[toarea.length]=new Option("Ivye ", "ivye_", false, false)
toarea.options[toarea.length]=new Option("Kalinkovichi ", "kalinkovichi_", false, false)
toarea.options[toarea.length]=new Option("Kamenets ", "kamenets_", false, false)
toarea.options[toarea.length]=new Option("Kirovsk ", "kirovsk_", false, false)
toarea.options[toarea.length]=new Option("Kletsk ", "kletsk_", false, false)
toarea.options[toarea.length]=new Option("Klichev ", "klichev_", false, false)
toarea.options[toarea.length]=new Option("Klimovichi ", "klimovichi_", false, false)
toarea.options[toarea.length]=new Option("Kobrin ", "kobrin_", false, false)
toarea.options[toarea.length]=new Option("Kopul ", "kopul_", false, false)
toarea.options[toarea.length]=new Option("Korelichi ", "korelichi_", false, false)
toarea.options[toarea.length]=new Option("Korma ", "korma_", false, false)
toarea.options[toarea.length]=new Option("Kostyukovichi ", "kostyukovichi_", false, false)
toarea.options[toarea.length]=new Option("Krasnopolye ", "krasnopolye_", false, false)
toarea.options[toarea.length]=new Option("Krichev ", "krichev_", false, false)
toarea.options[toarea.length]=new Option("Krugloye ", "krugloye_", false, false)
toarea.options[toarea.length]=new Option("Krupki ", "krupki_", false, false)
toarea.options[toarea.length]=new Option("Lelchitsu ", "lelchitsu_", false, false)
toarea.options[toarea.length]=new Option("Lepel ", "lepel_", false, false)
toarea.options[toarea.length]=new Option("Lida ", "lida_", false, false)
toarea.options[toarea.length]=new Option("Liozno ", "liozno_", false, false)
toarea.options[toarea.length]=new Option("Loev ", "loev_", false, false)
toarea.options[toarea.length]=new Option("Logoysk ", "logoysk_", false, false)
toarea.options[toarea.length]=new Option("Luninets ", "luninets_", false, false)
toarea.options[toarea.length]=new Option("Lyahovichi ", "lyahovichi_", false, false)
toarea.options[toarea.length]=new Option("Lyuban ", "lyuban_", false, false)
toarea.options[toarea.length]=new Option("Malorita ", "malorita_", false, false)
toarea.options[toarea.length]=new Option("Maryina Gorka ", "maryina_gorka_", false, false)
toarea.options[toarea.length]=new Option("Minsk ", "minsk_", false, false)
toarea.options[toarea.length]=new Option("Mioru ", "mioru_", false, false)
toarea.options[toarea.length]=new Option("Mogilev ", "mogilev_", false, false)
toarea.options[toarea.length]=new Option("Molodechno ", "molodechno_", false, false)
toarea.options[toarea.length]=new Option("Mostu ", "mostu_", false, false)
toarea.options[toarea.length]=new Option("Mozur ", "mozur_", false, false)
toarea.options[toarea.length]=new Option("Mstislavl ", "mstislavl_", false, false)
toarea.options[toarea.length]=new Option("Myadel ", "myadel_", false, false)
toarea.options[toarea.length]=new Option("Naroch ", "naroch_", false, false)
toarea.options[toarea.length]=new Option("Narovlya ", "narovlya_", false, false)
toarea.options[toarea.length]=new Option("Nesvizh ", "nesvizh_", false, false)
toarea.options[toarea.length]=new Option("Nobogrudok ", "nobogrudok_", false, false)
toarea.options[toarea.length]=new Option("Novopolotsk ", "novopolotsk_", false, false)
toarea.options[toarea.length]=new Option("Oktyabrski ", "oktyabrski_", false, false)
toarea.options[toarea.length]=new Option("Orsha ", "orsha_", false, false)
toarea.options[toarea.length]=new Option("Oshmyanu ", "oshmyanu_", false, false)
toarea.options[toarea.length]=new Option("Osipovichi ", "osipovichi_", false, false)
toarea.options[toarea.length]=new Option("Ostrovets ", "ostrovets_", false, false)
toarea.options[toarea.length]=new Option("Petrikov ", "petrikov_", false, false)
toarea.options[toarea.length]=new Option("Pinsk ", "pinsk_", false, false)
toarea.options[toarea.length]=new Option("Pleshchenitsu ", "pleshchenitsu_", false, false)
toarea.options[toarea.length]=new Option("Polotsk ", "polotsk_", false, false)
toarea.options[toarea.length]=new Option("Postavu ", "postavu_", false, false)
toarea.options[toarea.length]=new Option("Pruzhanu ", "pruzhanu_", false, false)
toarea.options[toarea.length]=new Option("Puhovichi ", "puhovichi_", false, false)
toarea.options[toarea.length]=new Option("Rechitsa ", "rechitsa_", false, false)
toarea.options[toarea.length]=new Option("Rogachev ", "rogachev_", false, false)
toarea.options[toarea.length]=new Option("Rossonu ", "rossonu_", false, false)
toarea.options[toarea.length]=new Option("Senno ", "senno_", false, false)
toarea.options[toarea.length]=new Option("Sharkovshchina ", "sharkovshchina_", false, false)
toarea.options[toarea.length]=new Option("Shchuchin ", "shchuchin_", false, false)
toarea.options[toarea.length]=new Option("Shklov ", "shklov_", false, false)
toarea.options[toarea.length]=new Option("Shumilino ", "shumilino_", false, false)
toarea.options[toarea.length]=new Option("Slavgorod ", "slavgorod_", false, false)
toarea.options[toarea.length]=new Option("Slonim ", "slonim_", false, false)
toarea.options[toarea.length]=new Option("Slutsk ", "slutsk_", false, false)
toarea.options[toarea.length]=new Option("Smolevichi ", "smolevichi_", false, false)
toarea.options[toarea.length]=new Option("Smorgon ", "smorgon_", false, false)
toarea.options[toarea.length]=new Option("Soligorsk ", "soligorsk_", false, false)
toarea.options[toarea.length]=new Option("Starye Dorogi ", "starye_dorogi_", false, false)
toarea.options[toarea.length]=new Option("Stolbtsu ", "stolbtsu_", false, false)
toarea.options[toarea.length]=new Option("Stolin ", "stolin_", false, false)
toarea.options[toarea.length]=new Option("Svetlogorsk ", "svetlogorsk_", false, false)
toarea.options[toarea.length]=new Option("Svisloch ", "svisloch_", false, false)
toarea.options[toarea.length]=new Option("Tolochin ", "tolochin_", false, false)
toarea.options[toarea.length]=new Option("Ushachi ", "ushachi_", false, false)
toarea.options[toarea.length]=new Option("Uzda ", "uzda_", false, false)
toarea.options[toarea.length]=new Option("Verhnedvinsk ", "verhnedvinsk_", false, false)
toarea.options[toarea.length]=new Option("Vetka ", "vetka_", false, false)
toarea.options[toarea.length]=new Option("Vileyka ", "vileyka_", false, false)
toarea.options[toarea.length]=new Option("Vitebsk ", "vitebsk_", false, false)
toarea.options[toarea.length]=new Option("Volkovusk ", "volkovusk_", false, false)
toarea.options[toarea.length]=new Option("Volozhin ", "volozhin_", false, false)
toarea.options[toarea.length]=new Option("Voronovo ", "voronovo_", false, false)
toarea.options[toarea.length]=new Option("Zelva ", "zelva_", false, false)
toarea.options[toarea.length]=new Option("Zhabinka ", "zhabinka_", false, false)
toarea.options[toarea.length]=new Option("Zhitkovichi ", "zhitkovichi_", false, false)
toarea.options[toarea.length]=new Option("Zhlobin ", "zhlobin_", false, false)
toarea.options[toarea.length]=new Option("Zhodino ", "zhodino_", false, false)
document.getElementById("toarea").onclick = null;
}