//var hide_empty_list=true; //uncomment this line to hide empty selection lists

var disable_empty_list=true; //uncomment this line to disable empty selection lists

addListGroup("states", "country");

addOption("country", "Select country", "", "", 1); //Empty starter option
addList("country", "Afghanistan", "Afghanistan", "Afghanistan");
addList("country", "Albania", "Albania", "Albania");
addList("country", "Algeria", "Algeria", "Algeria");
addList("country", "American Samoa", "American Samoa", "");
addList("country", "Andorra", "Andorra", "");
addList("country", "Angola", "Angola", "");
addList("country", "Anguilla", "Anguilla", "");
addList("country", "Antartica", "Antartica", "");
addList("country", "Antigua", "Antigua", "");
addList("country", "Argentina", "Argentina", "");
addList("country", "Armenia", "Armenia", "");
addList("country", "Aruba", "Aruba", "");
addList("country", "Ascension Island", "Ascension Island", "");
addList("country", "Australia", "Australia", "");
addList("country", "Austria", "Austria", "");
addList("country", "Azerbaijan", "Azerbaijan", "");
addList("country", "Bahamas", "Bahamas", "");
addList("country", "Bahrain", "Bahrain", "");
addList("country", "Bangladesh", "Bangladesh", "");
addList("country", "Barbados", "Barbados", "");
addList("country", "Belarus", "Belarus", "");
addList("country", "Belgium", "Belgium", "");
addList("country", "Belize", "Belize", "");
addList("country", "Benin", "Benin", "");
addList("country", "Bermuda", "Bermuda", "");
addList("country", "Bhutan", "Bhutan", "");
addList("country", "Bolivia", "Bolivia", "");
addList("country", "Bosnia-Herzegovina", "Bosnia-Herzegovina", "");
addList("country", "Botswana", "Botswana", "");
addList("country", "Brazil", "Brazil", "");
addList("country", "British Virgin Islands", "British Virgin Islands", "");
addList("country", "Brunei", "Brunei", "");
addList("country", "Bulgaria", "Bulgaria", "");
addList("country", "Burundi", "Burundi", "");
addList("country", "Cambodia", "Cambodia", "");
addList("country", "Cameroon", "Cameroon", "");
addList("country", "Canada", "Canada", "");
addList("country", "Cape Verde Islands", "Cape Verde Islands", "");
addList("country", "Cayman Islands", "Cayman Islands", "");
addList("country", "Central African Rep", "Central African Rep", "");
addList("country", "Chad Republic", "Chad Republic", "");
addList("country", "Chile", "Chile", "");
addList("country", "China", "China", "");
addList("country", "Colombia", "Colombia", "");
addList("country", "Comoros", "Comoros", "");
addList("country", "Congo", "Congo", "");
addList("country", "Cook Islands", "Cook Islands", "");
addList("country", "Costa Rica", "Costa Rica", "");
addList("country", "Croatia", "Croatia", "");
addList("country", "Cuba", "Cuba", "");
addList("country", "Cyprus", "Cyprus", "");
addList("country", "Czech Republic", "Czech Republic", "");
addList("country", "Denmark", "Denmark", "");
addList("country", "Djibout", "Djibout", "");
addList("country", "Dominica", "Dominica", "");
addList("country", "Dominican Republic", "Dominican Republic", "");
addList("country", "Ecuador", "Ecuador", "");
addList("country", "Egypt", "Egypt", "");
addList("country", "El Salvador", "El Salvador", "");
addList("country", "Equatorial Guinea", "Equatorial Guinea", "");
addList("country", "Eritrea", "Eritrea", "");
addList("country", "Estonia", "Estonia", "");
addList("country", "Ethiopia", "Ethiopia", "");
addList("country", "Faeroe Islands", "Faeroe Islands", "");
addList("country", "Falkland Islands", "Falkland Islands", "");
addList("country", "Fiji Islands", "Fiji Islands", "");
addList("country", "Finland", "Finland", "");
addList("country", "France", "France", "");
addList("country", "French Guiana", "French Guiana", "");
addList("country", "French Polynesia", "French Polynesia", "");
addList("country", "Gambia", "Gambia", "");
addList("country", "Georgia", "Georgia", "");
addList("country", "Germany", "Germany", "");
addList("country", "Ghana", "Ghana", "");
addList("country", "Gibraltar", "Gibraltar", "");
addList("country", "Greece", "Greece", "");
addList("country", "Greenland", "Greenland", "");
addList("country", "Grenada", "Grenada", "");
addList("country", "Guadeloupe", "Guadeloupe", "");
addList("country", "Guam", "Guam", "");
addList("country", "Guatemala", "Guatemala", "");
addList("country", "Guinea", "Guinea", "");
addList("country", "Guinea Bissau", "Guinea Bissau", "");
addList("country", "Guyana", "Guyana", "");
addList("country", "Haiti", "Haiti", "");
addList("country", "Honduras", "Honduras", "");
addList("country", "Hong Kong", "Hong Kong", "");
addList("country", "Hungary", "Hungary", "");
addList("country", "Iceland", "Iceland", "");
addList("country", "India", "India", "");
addList("country", "Indonesia", "Indonesia", "");
addList("country", "Iran", "Iran", "");
addList("country", "Iraq", "Iraq", "");
addList("country", "Ireland", "Ireland", "");
addList("country", "Israel", "Israel", "");
addList("country", "Italy", "Italy", "");
addList("country", "Ivory Coast", "Ivory Coast", "");
addList("country", "Jamaica", "Jamaica", "");
addList("country", "Japan", "Japan", "");
addList("country", "Jordan", "Jordan", "");
addList("country", "Kazakhstan", "Kazakhstan", "");
addList("country", "Kenya", "Kenya", "");
addList("country", "Kiribati", "Kiribati", "");
addList("country", "Korea (North)", "Korea (North)", "");
addList("country", "Korea (South)", "Korea (South)", "");
addList("country", "Kuwait", "Kuwait", "");
addList("country", "Kyrgyzstan", "Kyrgyzstan", "");
addList("country", "Laos", "Laos", "");
addList("country", "Latvia", "Latvia", "");
addList("country", "Lebanon", "Lebanon", "");
addList("country", "Lesotho", "Lesotho", "");
addList("country", "Liberia", "Liberia", "");
addList("country", "Libya", "Libya", "");
addList("country", "Lithuania", "Lithuania", "");
addList("country", "Luxembourg", "Luxembourg", "");
addList("country", "Macau", "Macau", "");
addList("country", "Macedonia", "Macedonia", "");
addList("country", "Madagascar", "Madagascar", "");
addList("country", "Malawi", "Malawi", "");
addList("country", "Malaysia", "Malaysia", "");
addList("country", "Maldives", "Maldives", "");
addList("country", "Mali Republic", "Mali Republic", "");
addList("country", "Mali Republic", "Mali Republic", "");
addList("country", "Marshall Islands", "Marshall Islands", "");
addList("country", "Mauritania", "Mauritania", "");
addList("country", "Mauritius", "Mauritius", "");
addList("country", "Mexico", "Mexico", "");
addList("country", "Micronesia", "Micronesia", "");
addList("country", "Moldova", "Moldova", "");
addList("country", "Mongolia", "Mongolia", "");
addList("country", "Montenegro", "Montenegro", "");
addList("country", "Montserrat", "Montserrat", "");
addList("country", "Morocco", "Morocco", "");
addList("country", "Mozambique", "Mozambique", "");
addList("country", "Namibia", "Namibia", "");
addList("country", "Nauru", "Nauru", "");
addList("country", "Nepal", "Nepal", "");
addList("country", "Netherland Antilles", "Netherland Antilles", "");
addList("country", "Nevis", "Nevis", "");
addList("country", "New Calidonia", "New Calidonia", "");
addList("country", "New Zealand", "New Zealand", "");
addList("country", "Nicaragua", "Nicaragua", "");
addList("country", "Niger", "Niger", "");
addList("country", "Nigeria", "Nigeria", "");
addList("country", "Niue Island", "Niue Island", "");
addList("country", "Norfolk Island", "Norfolk Island", "");
addList("country", "Norway", "Norway", "");
addList("country", "Oman", "Oman", "");
addList("country", "Pakistan", "Pakistan", "");
addList("country", "Palau", "Palau", "");
addList("country", "Panama", "Panama", "");
addList("country", "Papua New Guinea", "Papua New Guinea", "");
addList("country", "Paraguay", "Paraguay", "");
addList("country", "Peru", "Peru", "");
addList("country", "Philippines", "Philippines", "");
addList("country", "Poland", "Poland", "");
addList("country", "Portugal", "Portugal", "");
addList("country", "Puerto Rico", "Puerto Rico", "");
addList("country", "Qatar", "Qatar", "");
addList("country", "Reunion Island", "Reunion Island", "");
addList("country", "Romania", "Romania", "");
addList("country", "Russia", "Russia", "");
addList("country", "Rwanda", "Rwanda", "");
addList("country", "Saipan", "Saipan", "");
addList("country", "Sao Tome", "Sao Tome", "");
addList("country", "Saudi Arabia", "Saudi Arabia", "");
addList("country", "Serbia", "Serbia", "");
addList("country", "Seychelles Island", "Seychelles Island", "");
addList("country", "Sierra Leone", "Sierra Leone", "");
addList("country", "Singapore", "Singapore", "");
addList("country", "Slovakia", "Slovakia", "");
addList("country", "Slovenia", "Slovenia", "");
addList("country", "Soloman Island", "Soloman Island", "");
addList("country", "Somalia", "Somalia", "");
addList("country", "South Africa", "South Africa", "");
addList("country", "Spain", "Spain", "");
addList("country", "Sri Lanka", "Sri Lanka", "");
addList("country", "St Vincent", "St Vincent", "");
addList("country", "Sudan", "Sudan", "");
addList("country", "Suriname", "Suriname", "");
addList("country", "Sweden", "Sweden", "");
addList("country", "Switzerland", "Switzerland", "");
addList("country", "Syria", "Syria", "");
addList("country", "Taiwan", "Taiwan", "");
addList("country", "Tajikistan", "Tajikistan", "");
addList("country", "Tanzania", "Tanzania", "");
addList("country", "Thailand", "Thailand", "");
addList("country", "The Netherlands", "The Netherlands", "");
addList("country", "Togo", "Togo", "");
addList("country", "Tonga", "Tonga", "");
addList("country", "Trinidad and Tobago", "Trinidad and Tobago", "");
addList("country", "Tunisia", "Tunisia", "");
addList("country", "Turkey", "Turkey", "");
addList("country", "Turkmenistan", "Turkmenistan", "");
addList("country", "Turks/Caicos", "Turks/Caicos", "");
addList("country", "Tuvalu", "Tuvalu", "");
addList("country", "Uganda", "Uganda", "");
addList("country", "Ukraine", "Ukraine", "");
addList("country", "United Arab Emirates", "United Arab Emirates", "");
addList("country", "United Kingdom", "United Kingdom", "");
addList("country", "United States of America", "United States of America", "United States of America");
addList("country", "Uruguay", "Uruguay", "");
addList("country", "Uzbekistan", "Uzbekistan", "");
addList("country", "Venezuela", "Venezuela", "");
addList("country", "Vietnam", "Vietnam", "");
addList("country", "Yemen", "Yemen", "");
addList("country", "Zambia", "Zambia", "");
addList("country", "Zimbabwe", "Zimbabwe", "");

addOption("United States of America", "Select state", "");
addOption("United States of America", "Alabama", "Alabama");
addOption("United States of America", "Alaska", "Alaska");
addOption("United States of America", "Arizona", "Arizona");
addOption("United States of America", "Arkansas", "Arkansas");
addOption("United States of America", "California", "California");
addOption("United States of America", "Colorado", "Colorado");
addOption("United States of America", "Connecticut", "Connecticut");
addOption("United States of America", "Delaware", "Delaware");
addOption("United States of America", "Florida", "Florida");
addOption("United States of America", "Georgia", "Georgia");
addOption("United States of America", "Hawaii", "Hawaii");
addOption("United States of America", "Idaho", "Idaho");
addOption("United States of America", "Illinois", "Illinois");
addOption("United States of America", "Indiana", "Indiana");
addOption("United States of America", "Iowa", "Iowa");
addOption("United States of America", "Kansas", "Kansas");
addOption("United States of America", "Kentucky", "Kentucky");
addOption("United States of America", "Louisiana", "Louisiana");
addOption("United States of America", "Maine", "Maine");
addOption("United States of America", "Maryland", "Maryland");
addOption("United States of America", "Massachusetts", "Massachusetts");
addOption("United States of America", "Michigan", "Michigan");
addOption("United States of America", "Minnesota", "Minnesota");
addOption("United States of America", "Mississippi", "Mississippi");
addOption("United States of America", "Missouri", "Missouri");
addOption("United States of America", "Montana", "Montana");
addOption("United States of America", "Nebraska", "Nebraska");
addOption("United States of America", "Nevada", "Nevada");
addOption("United States of America", "New Hampshire", "New Hampshire");
addOption("United States of America", "New Jersey", "New Jersey");
addOption("United States of America", "New Mexico", "New Mexico");
addOption("United States of America", "New York", "New York");
addOption("United States of America", "North Carolina", "North Carolina");
addOption("United States of America", "North Dakota", "North Dakota");
addOption("United States of America", "Ohio", "Ohio");
addOption("United States of America", "Oklahoma", "Oklahoma");
addOption("United States of America", "Oregon", "Oregon");
addOption("United States of America", "Pennsylvania", "Pennsylvania");
addOption("United States of America", "Rhode Island", "Rhode Island");
addOption("United States of America", "South Carolina", "South Carolina");
addOption("United States of America", "South Dakota", "South Dakota");
addOption("United States of America", "Tennessee", "Tennessee");
addOption("United States of America", "Texas", "Texas");
addOption("United States of America", "Utah", "Utah");
addOption("United States of America", "Vermont", "Vermont");
addOption("United States of America", "Virginia", "Virginia");
addOption("United States of America", "Washington", "Washington");
addOption("United States of America", "West Virginia", "West Virginia");
addOption("United States of America", "Wisconsin", "Wisconsin");
addOption("United States of America", "Wyoming", "Wyoming");

