//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

var onclickaction="alert" //set to "alert" or "goto". Former is for debugging purposes, to tell you the value of the final selected list that will be used as the destination URL. Set to "goto" when below configuration is all set up as desired. 

var newwindow=0 //Open links in new window or not? 1=yes, 0=no.

/////DEFINE YOUR MENU LISTS and ITEMS below/////////////////

addListGroup("chainedmenu", "Country-Select");

addOption("Country-Select", "Select a Country"); //HEADER OPTION
addList("Country-Select", "USA","USA","States", 1);
addList("Country-Select", "Afghanistan","Afghanistan", "Notapplicable");
addList("Country-Select", "Albania","Albania", "Notapplicable");
addList("Country-Select", "Algeria","Algeria", "Notapplicable");
addList("Country-Select", "American Samoa","American Samoa", "Notapplicable");
addList("Country-Select", "Andorra","Andorra", "Notapplicable");
addList("Country-Select", "Angola","Angola", "Notapplicable");
addList("Country-Select", "Anguilla","Anguilla", "Notapplicable");
addList("Country-Select", "Antarctica","Antarctica", "Notapplicable");
addList("Country-Select", "Antigua","Antigua and Barbuda", "Notapplicable");
addList("Country-Select", "Argentina","Argentina", "Notapplicable");
addList("Country-Select", "Armenia","Armenia", "Notapplicable");
addList("Country-Select", "Arctic Ocean","Arctic Ocean", "Notapplicable");
addList("Country-Select", "Aruba","Aruba", "Notapplicable");
addList("Country-Select", "Ashmore Islands","Ashmore and Cartier Islands", "Notapplicable");
addList("Country-Select", "Atlantic Ocean","Atlantic Ocean", "Notapplicable");
addList("Country-Select", "Australia","Australia", "Notapplicable");
addList("Country-Select", "Austria","Austria", "Notapplicable");
addList("Country-Select", "Azerbaijan","Azerbaijan", "Notapplicable");
addList("Country-Select", "Bahamas","Bahamas", "Notapplicable");
addList("Country-Select", "Bahrain","Bahrain", "Notapplicable");
addList("Country-Select", "Baker Island","Baker Island", "Notapplicable");
addList("Country-Select", "Bangladesh","Bangladesh", "Notapplicable");
addList("Country-Select", "Barbados","Barbados", "Notapplicable");
addList("Country-Select", "Bassas da India","Bassas da India", "Notapplicable");
addList("Country-Select", "Belarus","Belarus", "Notapplicable");
addList("Country-Select", "Belgium","Belgium", "Notapplicable");
addList("Country-Select", "Belize","Belize", "Notapplicable");
addList("Country-Select", "Benin","Benin", "Notapplicable");
addList("Country-Select", "Bermuda","Bermuda", "Notapplicable");
addList("Country-Select", "Bhutan","Bhutan", "Notapplicable");
addList("Country-Select", "Bolivia","Bolivia", "Notapplicable");
addList("Country-Select", "Bosnia","Bosnia and Herzegovina", "Notapplicable");
addList("Country-Select", "Botswana","Botswana", "Notapplicable");
addList("Country-Select", "Bouvet Island","Bouvet Island", "Notapplicable");
addList("Country-Select", "Brazil","Brazil", "Notapplicable");
addList("Country-Select", "British Virgin ","British Virgin Islands", "Notapplicable");
addList("Country-Select", "Brunei ","Brunei ", "Notapplicable");
addList("Country-Select", "Bulgaria","Bulgaria", "Notapplicable");
addList("Country-Select", "Burkina Faso","Burkina Faso", "Notapplicable");
addList("Country-Select", "Burundi","Burundi", "Notapplicable");
addList("Country-Select", "Cambodia","Cambodia", "Notapplicable");
addList("Country-Select", "Cameroon","Cameroon", "Notapplicable");
addList("Country-Select", "Canada","Canada","Provinces");
addList("Country-Select", "Cape Verde","Cape Verde", "Notapplicable");
addList("Country-Select", "Cayman Islands","Cayman Islands", "Notapplicable");
addList("Country-Select", "Cen African Rep","Central African Republic", "Notapplicable");
addList("Country-Select", "Chad","Chad", "Notapplicable");
addList("Country-Select", "Chile","Chile", "Notapplicable");
addList("Country-Select", "China","China", "Notapplicable");
addList("Country-Select", "Christmas Isle","Christmas Island", "Notapplicable");
addList("Country-Select", "Clipperton Island","Clipperton Island", "Notapplicable");
addList("Country-Select", "Cocos Islands","Cocos Islands", "Notapplicable");
addList("Country-Select", "Colombia","Colombia", "Notapplicable");
addList("Country-Select", "Comoros","Comoros", "Notapplicable");
addList("Country-Select", "Cook Islands","Cook Islands", "Notapplicable");
addList("Country-Select", "Coral Sea Isles","Coral Sea Islands", "Notapplicable");
addList("Country-Select", "Costa Rica ","Costa Rica ", "Notapplicable");
addList("Country-Select", "Cote d'Ivoire","Cote d'Ivoire", "Notapplicable");
addList("Country-Select", "Croatia","Croatia", "Notapplicable");
addList("Country-Select", "Cuba","Cuba", "Notapplicable");
addList("Country-Select", "Cyprus","Cyprus", "Notapplicable");
addList("Country-Select", "Czech Republic","Czech Republic", "Notapplicable");
addList("Country-Select", "Denmark","Denmark", "Notapplicable");
addList("Country-Select", "DRC","Democratic Republic of the Congo", "Notapplicable");
addList("Country-Select", "Djibouti","Djibouti", "Notapplicable");
addList("Country-Select", "Dominica","Dominica", "Notapplicable");
addList("Country-Select", "Dominican Rep","Dominican Republic", "Notapplicable");
addList("Country-Select", "East Timor","East Timor", "Notapplicable");
addList("Country-Select", "Ecuador","Ecuador", "Notapplicable");
addList("Country-Select", "Egypt","Egypt", "Notapplicable");
addList("Country-Select", "El Salvador","El Salvador", "Notapplicable");
addList("Country-Select", "Equatorial Guinea","Equatorial Guinea", "Notapplicable");
addList("Country-Select", "Eritrea","Eritrea", "Notapplicable");
addList("Country-Select", "Estonia","Estonia", "Notapplicable");
addList("Country-Select", "Ethiopia","Ethiopia", "Notapplicable");
addList("Country-Select", "Europa Island","Europa Island", "Notapplicable");
addList("Country-Select", "Falkland Islands","Falkland Islands (Islas Malvinas)", "Notapplicable");
addList("Country-Select", "Faroe Islands","Faroe Islands", "Notapplicable");
addList("Country-Select", "Fiji","Fiji", "Notapplicable");
addList("Country-Select", "Finland","Finland", "Notapplicable");
addList("Country-Select", "France","France", "Notapplicable");
addList("Country-Select", "French Guiana","French Guiana", "Notapplicable");
addList("Country-Select", "French Polynesia","French Polynesia", "Notapplicable");
addList("Country-Select", "TFT","French Southern and Antarctic Lands", "Notapplicable");
addList("Country-Select", "Gabon","Gabon", "Notapplicable");
addList("Country-Select", "Gambia","Gambia", "Notapplicable");
addList("Country-Select", "Gaza Strip","Gaza Strip", "Notapplicable");
addList("Country-Select", "Georgia","Georgia", "Notapplicable");
addList("Country-Select", "Germany","Germany", "Notapplicable");
addList("Country-Select", "Ghana","Ghana", "Notapplicable");
addList("Country-Select", "Gibraltar","Gibraltar", "Notapplicable");
addList("Country-Select", "Glorioso Islands","Glorioso Islands", "Notapplicable");
addList("Country-Select", "Greece","Greece", "Notapplicable");
addList("Country-Select", "Greenland","Greenland", "Notapplicable");
addList("Country-Select", "Grenada","Grenada", "Notapplicable");
addList("Country-Select", "Guadeloupe","Guadeloupe", "Notapplicable");
addList("Country-Select", "Guam","Guam", "Notapplicable");
addList("Country-Select", "Guatemala","Guatemala", "Notapplicable");
addList("Country-Select", "Guernsey","Guernsey", "Notapplicable");
addList("Country-Select", "Guinea","Guinea", "Notapplicable");
addList("Country-Select", "Guinea-Bissau","Guinea-Bissau", "Notapplicable");
addList("Country-Select", "Guyana","Guyana", "Notapplicable");
addList("Country-Select", "Haiti","Haiti", "Notapplicable");
addList("Country-Select", "Heard Island","Heard Island and McDonald Islands", "Notapplicable");
addList("Country-Select", "Honduras","Honduras", "Notapplicable");
addList("Country-Select", "Hong Kong","Hong Kong", "Notapplicable");
addList("Country-Select", "Howland Island","Howland Island", "Notapplicable");
addList("Country-Select", "Hungary","Hungary", "Notapplicable");
addList("Country-Select", "Iceland","Iceland", "Notapplicable");
addList("Country-Select", "India","India", "Notapplicable");
addList("Country-Select", "Indian Ocean","Indian Ocean", "Notapplicable");
addList("Country-Select", "Indonesia","Indonesia", "Notapplicable");
addList("Country-Select", "Iran","Iran", "Notapplicable");
addList("Country-Select", "Iraq","Iraq", "Notapplicable");
addList("Country-Select", "Ireland","Ireland", "Notapplicable");
addList("Country-Select", "Isle of Man","Isle of Man", "Notapplicable");
addList("Country-Select", "Israel","Israel", "Notapplicable");
addList("Country-Select", "Italy","Italy", "Notapplicable");
addList("Country-Select", "Jamaica","Jamaica", "Notapplicable");
addList("Country-Select", "Jan Mayen","Jan Mayen", "Notapplicable");
addList("Country-Select", "Japan","Japan", "Notapplicable");
addList("Country-Select", "Jarvis Island","Jarvis Island", "Notapplicable");
addList("Country-Select", "Jersey","Jersey", "Notapplicable");
addList("Country-Select", "Johnston Atoll","Johnston Atoll", "Notapplicable");
addList("Country-Select", "Jordan","Jordan", "Notapplicable");
addList("Country-Select", "Juan de Nova Isle","Juan de Nova Island", "Notapplicable");
addList("Country-Select", "Kazakhstan","Kazakhstan", "Notapplicable");
addList("Country-Select", "Kenya","Kenya", "Notapplicable");
addList("Country-Select", "Kingman Reef","Kingman Reef", "Notapplicable");
addList("Country-Select", "Kiribati","Kiribati", "Notapplicable");
addList("Country-Select", "Kerguelen","Kerguelen Archipelago", "Notapplicable");
addList("Country-Select", "Kuwait","Kuwait", "Notapplicable");
addList("Country-Select", "Kyrgyzstan","Kyrgyzstan", "Notapplicable");
addList("Country-Select", "Laos","Laos", "Notapplicable");
addList("Country-Select", "Latvia","Latvia", "Notapplicable");
addList("Country-Select", "Lebanon","Lebanon", "Notapplicable");
addList("Country-Select", "Lesotho","Lesotho", "Notapplicable");
addList("Country-Select", "Liberia","Liberia", "Notapplicable");
addList("Country-Select", "Libya","Libya", "Notapplicable");
addList("Country-Select", "Liechtenstein","Liechtenstein", "Notapplicable");
addList("Country-Select", "Lithuania","Lithuania", "Notapplicable");
addList("Country-Select", "Luxembourg","Luxembourg", "Notapplicable");
addList("Country-Select", "Macau","Macau", "Notapplicable");
addList("Country-Select", "Macedonia","Macedonia", "Notapplicable");
addList("Country-Select", "Madagascar","Madagascar", "Notapplicable");
addList("Country-Select", "Malawi ","Malawi ", "Notapplicable");
addList("Country-Select", "Malaysia","Malaysia", "Notapplicable");
addList("Country-Select", "Maldives","Maldives", "Notapplicable");
addList("Country-Select", "Mali","Mali", "Notapplicable");
addList("Country-Select", "Malta","Malta", "Notapplicable");
addList("Country-Select", "Marshall Islands","Marshall Islands", "Notapplicable");
addList("Country-Select", "Martinique","Martinique", "Notapplicable");
addList("Country-Select", "Mauritania","Mauritania", "Notapplicable");
addList("Country-Select", "Mauritius","Mauritius", "Notapplicable");
addList("Country-Select", "Mayotte","Mayotte", "Notapplicable");
addList("Country-Select", "Mexico","Mexico", "Notapplicable");
addList("Country-Select", "Micronesia","Micronesia", "Notapplicable");
addList("Country-Select", "Midway Islands","Midway Islands", "Notapplicable");
addList("Country-Select", "Moldova","Moldova", "Notapplicable");
addList("Country-Select", "Monaco","Monaco", "Notapplicable");
addList("Country-Select", "Mongolia","Mongolia", "Notapplicable");
addList("Country-Select", "Montenegro","Montenegro", "Notapplicable");
addList("Country-Select", "Montserrat","Montserrat", "Notapplicable");
addList("Country-Select", "Morocco","Morocco", "Notapplicable");
addList("Country-Select", "Mozambique","Mozambique", "Notapplicable");
addList("Country-Select", "Myanmar","Myanmar", "Notapplicable");
addList("Country-Select", "Namibia","Namibia", "Notapplicable");
addList("Country-Select", "Nauru","Nauru", "Notapplicable");
addList("Country-Select", "Navassa Isle","Navassa Island", "Notapplicable");
addList("Country-Select", "Nepal","Nepal", "Notapplicable");
addList("Country-Select", "Netherlands","Netherlands", "Notapplicable");
addList("Country-Select", "Netherlands Antilles","Netherlands Antilles", "Notapplicable");
addList("Country-Select", "New Caledonia","New Caledonia", "Notapplicable");
addList("Country-Select", "New Zealand","New Zealand", "Notapplicable");
addList("Country-Select", "Nicaragua","Nicaragua", "Notapplicable");
addList("Country-Select", "Niger","Niger", "Notapplicable");
addList("Country-Select", "Nigeria","Nigeria", "Notapplicable");
addList("Country-Select", "Niue","Niue", "Notapplicable");
addList("Country-Select", "Norfolk Isles","Norfolk Island", "Notapplicable");
addList("Country-Select", "North Korea","North Korea", "Notapplicable");
addList("Country-Select", "N. Mariana Isls","Northern Mariana Islands", "Notapplicable");
addList("Country-Select", "Norway","Norway", "Notapplicable");
addList("Country-Select", "Oman","Oman", "Notapplicable");
addList("Country-Select", "Pacific Ocean","Pacific Ocean", "Notapplicable");
addList("Country-Select", "Pakistan","Pakistan", "Notapplicable");
addList("Country-Select", "Palau","Palau", "Notapplicable");
addList("Country-Select", "Palmyra Atoll","Palmyra Atoll", "Notapplicable");
addList("Country-Select", "Panama","Panama", "Notapplicable");
addList("Country-Select", "Papua New Guinea","Papua New Guinea", "Notapplicable");
addList("Country-Select", "Paracel Islands","Paracel Islands", "Notapplicable");
addList("Country-Select", "Paraguay","Paraguay", "Notapplicable");
addList("Country-Select", "Peru","Peru", "Notapplicable");
addList("Country-Select", "Philippines","Philippines", "Notapplicable");
addList("Country-Select", "Pitcairn Islands","Pitcairn Islands", "Notapplicable");
addList("Country-Select", "Poland","Poland", "Notapplicable");
addList("Country-Select", "Portugal","Portugal", "Notapplicable");
addList("Country-Select", "Puerto Rico","Puerto Rico", "Notapplicable");
addList("Country-Select", "Qatar","Qatar", "Notapplicable");
addList("Country-Select", "Reunion","Reunion", "Notapplicable");
addList("Country-Select", "Rep. of the Congo","Republic of the Congo", "Notapplicable");
addList("Country-Select", "Romania","Romania", "Notapplicable");
addList("Country-Select", "Russia","Russia", "Notapplicable");
addList("Country-Select", "Rwanda","Rwanda", "Notapplicable");
addList("Country-Select", "St. Helena","Saint Helena", "Notapplicable");
addList("Country-Select", "St. Kitts and Nevis","Saint Kitts and Nevis", "Notapplicable");
addList("Country-Select", "St. Lucia","Saint Lucia", "Notapplicable");
addList("Country-Select", "St. Pierre","Saint Pierre and Miquelon", "Notapplicable");
addList("Country-Select", "St. Vincent","Saint Vincent and the Grenadines", "Notapplicable");
addList("Country-Select", "Samoa","Samoa", "Notapplicable");
addList("Country-Select", "San Marino","San Marino", "Notapplicable");
addList("Country-Select", "Sao Tome","Sao Tome and Principe", "Notapplicable");
addList("Country-Select", "Saudi Arabia","Saudi Arabia", "Notapplicable");
addList("Country-Select", "Senegal","Senegal", "Notapplicable");
addList("Country-Select", "Serbia","Serbia", "Notapplicable");
addList("Country-Select", "Seychelles","Seychelles", "Notapplicable");
addList("Country-Select", "Sierra Leone","Sierra Leone", "Notapplicable");
addList("Country-Select", "Singapore","Singapore", "Notapplicable");
addList("Country-Select", "Slovakia","Slovakia", "Notapplicable");
addList("Country-Select", "Slovenia","Slovenia", "Notapplicable");
addList("Country-Select", "Solomon Islands","Solomon Islands", "Notapplicable");
addList("Country-Select", "Somalia","Somalia", "Notapplicable");
addList("Country-Select", "South Africa","South Africa", "Notapplicable");
addList("Country-Select", "Sth Georgia","South Georgia and the South Sandwich Islands", "Notapplicable");
addList("Country-Select", "Sth Korea","South Korea", "Notapplicable");
addList("Country-Select", "Spain","Spain", "Notapplicable");
addList("Country-Select", "Spratly Isles","Spratly Islands", "Notapplicable");
addList("Country-Select", "Sri Lanka","Sri Lanka", "Notapplicable");
addList("Country-Select", "Sudan","Sudan", "Notapplicable");
addList("Country-Select", "Suriname","Suriname", "Notapplicable");
addList("Country-Select", "Svalbard","Svalbard", "Notapplicable");
addList("Country-Select", "Swaziland","Swaziland", "Notapplicable");
addList("Country-Select", "Sweden","Sweden", "Notapplicable");
addList("Country-Select", "Switzerland","Switzerland", "Notapplicable");
addList("Country-Select", "Syria","Syria", "Notapplicable");
addList("Country-Select", "Taiwan","Taiwan", "Notapplicable");
addList("Country-Select", "Tajikistan","Tajikistan", "Notapplicable");
addList("Country-Select", "Tanzania","Tanzania", "Notapplicable");
addList("Country-Select", "Thailand","Thailand", "Notapplicable");
addList("Country-Select", "Togo","Togo", "Notapplicable");
addList("Country-Select", "Tokelau","Tokelau", "Notapplicable");
addList("Country-Select", "Tonga","Tonga", "Notapplicable");
addList("Country-Select", "Trinidad","Trinidad and Tobago", "Notapplicable");
addList("Country-Select", "Tromelin Island","Tromelin Island", "Notapplicable");
addList("Country-Select", "Tunisia","Tunisia", "Notapplicable");
addList("Country-Select", "Turkey","Turkey", "Notapplicable");
addList("Country-Select", "Turkmenistan","Turkmenistan", "Notapplicable");
addList("Country-Select", "Turks and Caicos","Turks and Caicos Islands", "Notapplicable");
addList("Country-Select", "Tuvalu","Tuvalu", "Notapplicable");
addList("Country-Select", "Uganda","Uganda", "Notapplicable");
addList("Country-Select", "Ukraine","Ukraine", "Notapplicable");
addList("Country-Select", "United Arab Emirates","United Arab Emirates", "Notapplicable");
addList("Country-Select", "United Kingdom","United Kingdom", "Notapplicable");
addList("Country-Select", "Uruguay","Uruguay", "Notapplicable");
addList("Country-Select", "Uzbekistan","Uzbekistan", "Notapplicable");
addList("Country-Select", "Vanuatu","Vanuatu", "Notapplicable");
addList("Country-Select", "Venezuela","Venezuela", "Notapplicable");
addList("Country-Select", "Viet Nam","Viet Nam", "Notapplicable");
addList("Country-Select", "Virgin ","Virgin Islands", "Notapplicable");
addList("Country-Select", "Wake Island","Wake Island", "Notapplicable");
addList("Country-Select", "Wallis and Futuna","Wallis and Futuna", "Notapplicable");
addList("Country-Select", "West Bank","West Bank", "Notapplicable");
addList("Country-Select", "Western Sahara","Western Sahara", "Notapplicable");
addList("Country-Select", "Yemen","Yemen", "Notapplicable");
addList("Country-Select", "Yugoslavia","Yugoslavia", "Notapplicable");
addList("Country-Select", "Zambia","Zambia", "Notapplicable");
addList("Country-Select", "Zimbabwe","Zimbabwe", "Notapplicable");

/*addOption("Webmaster", "Select an item", "", 1); //HEADER OPTION
addList("Webmaster", "JavaScript Links", "", "Webmaster-JavaScript");
addList("Webmaster", "PHP Links", "", "Webmaster-PHP");
addOption("Webmaster", "CodingForums.com", "http://www.codingforums.com"); //END OF THIS NODE*/

addOption("States", "Select State", "NA", 1); //HEADER OPTION
addOption("States", "AL","AL");
addOption("States", "AK","AK");
addOption("States", "AS","AS");
addOption("States", "AZ","AZ");
addOption("States", "AR","AR");
addOption("States", "CA","CA");
addOption("States", "CO","CO");
addOption("States", "CT","CT");
addOption("States", "DE","DE");
addOption("States", "DC","DC");
addOption("States", "FM","FM");
addOption("States", "FL","FL");
addOption("States", "GA","GA");
addOption("States", "GU","GU");
addOption("States", "HI","HI");
addOption("States", "ID","ID");
addOption("States", "IL","IL");
addOption("States", "IN","IN");
addOption("States", "IA","IA");
addOption("States", "KS","KS");
addOption("States", "KY","KY");
addOption("States", "LA","LA");
addOption("States", "ME","ME");
addOption("States", "MH","MH");
addOption("States", "MD","MD");
addOption("States", "MA","MA");
addOption("States", "MI","MI");
addOption("States", "MN","MN");
addOption("States", "MS","MS");
addOption("States", "MO","MO");
addOption("States", "MT","MT");
addOption("States", "NE","NE");
addOption("States", "NV","NV");
addOption("States", "NH","NH");
addOption("States", "NJ","NJ");
addOption("States", "NM","NM");
addOption("States", "NY","NY");
addOption("States", "NC","NC");
addOption("States", "ND","ND");
addOption("States", "MP","MP");
addOption("States", "OH","OH");
addOption("States", "OK","OK");
addOption("States", "OR","OR");
addOption("States", "PW","PW");
addOption("States", "PA","PA");
addOption("States", "PR","PR");
addOption("States", "RI","RI");
addOption("States", "SC","SC");
addOption("States", "SD","SD");
addOption("States", "TN","TN");
addOption("States", "TX","TX");
addOption("States", "UT","UT");
addOption("States", "VT","VT");
addOption("States", "VI","VI");
addOption("States", "VA","VA");
addOption("States", "WA","WA");
addOption("States", "WV","WV");
addOption("States", "WI","WI");
addOption("States", "WY","WY");
addOption("States", "AE","AE");
addOption("States", "AA","AA");
addOption("States", "AE","AE");
addOption("States", "AE","AE");
addOption("States", "AE","AE");
addOption("States", "AP","AP");

addOption("Provinces", "Select a Province", "NA", 1); //HEADER OPTION
addOption("Provinces", "AB","AB");
addOption("Provinces", "BC","BC");
addOption("Provinces", "MB","MB");
addOption("Provinces", "NB","NB");
addOption("Provinces", "NL","NL");
addOption("Provinces", "NT","NT");
addOption("Provinces", "NS","NS");
addOption("Provinces", "NU","NU");
addOption("Provinces", "ON","ON");
addOption("Provinces", "PC","PC");
addOption("Provinces", "QC","QC");
addOption("Provinces", "SK","SK");
addOption("Provinces", "YT","YT");


addOption("Notapplicable", "Select N-A", "NA", 1); //HEADER OPTION
addOption("Notapplicable", "Non Applicable","Non Applicable");

