// This javascript function takes a form object, the number of the state // selection list in the list of form elements, and the number of the // country selection list. It then refills the state box based on the // country selected in the country box. function checkState(form,state_num,country_num) { // this is the country id for the database var country = form.elements[country_num].options[form.elements[country_num].selectedIndex].value; // delete the current options in the state list for(i=form.elements[state_num].length-1;i>=0;i--) { form.elements[state_num].options[i] = null; } switch(country) { case '1': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_options[options_cnt] = new Option("Alabama",21); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Alaska",22); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("American Samoa",23); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Arizona",24); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Arkansas",25); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("California",6); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Colorado",26); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Connecticut",12); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Delaware",27); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("District of Columbia",5); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Federated States Of Micronesia",28); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Florida",14); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Georgia",29); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Guam",30); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Hawaii",31); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Idaho",32); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Illinois",33); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Indiana",11); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Iowa",34); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Kansas",35); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Kentucky",16); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Louisiana",13); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Maine",36); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Marshall Islands",37); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Maryland",19); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Massachusetts",15); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Michigan",38); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Minnesota",39); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Mississippi",40); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Missouri",4); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Montana",41); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Nebraska",42); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Nevada",43); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("New Hampshire",44); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("New Jersey",2); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("New Mexico",45); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("New York",1); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("North Carolina",17); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("North Dakota",46); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Northern Mariana Islands",47); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Ohio",10); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Oklahoma",48); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Oregon",49); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Palau",50); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Pennsylvania",7); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Puerto Rico",51); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Rhode Island",52); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("South Carolina",53); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("South Dakota",54); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Tennessee",55); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Texas",8); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Utah",56); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Vermont",57); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Virgin Islands",58); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Virginia",3); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Washington",59); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("West Virginia",60); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Wisconsin",18); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Wyoming",61); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; break; case '2': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_options[options_cnt] = new Option("Alberta",62); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("British Columbia",9); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Manitoba",63); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("New Brunswick",64); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Newfoundland",65); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Northwest Territories",66); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Nova Scotia",67); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Nunavut",68); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Ontario",69); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Price Edward Island",70); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Quebec",71); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Saskatchewan",72); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Yukon Territory",73); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; break; case '3': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '4': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '5': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '6': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '7': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '8': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_options[options_cnt] = new Option("Australian Capital Territory",80); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("New South Wales",74); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Northern Territory",75); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Queensland",76); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("South Australia",81); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Tasmania",78); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Victoria",79); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; new_options[options_cnt] = new Option("Western Australia",77); form.elements[state_num].options[options_cnt] = new_options[options_cnt]; options_cnt++; break; case '9': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '10': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '11': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '12': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '13': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '14': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '15': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '16': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '17': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '18': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '19': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '20': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '21': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '22': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '23': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '24': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '25': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '26': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '27': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '28': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '29': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '30': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '31': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '32': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '33': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '34': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '35': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '36': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '37': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '38': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '39': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '40': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '41': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '42': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '43': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '44': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '45': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '46': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '47': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '48': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '49': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '50': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '51': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '52': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '53': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '54': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '55': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '56': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '57': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '58': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '59': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '60': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '61': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '62': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '63': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '64': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '65': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '66': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '67': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '68': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '69': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '70': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '71': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '72': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '73': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '74': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '75': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '76': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '77': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '78': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '79': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '80': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '81': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '82': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '83': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '84': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '85': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '86': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '87': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '88': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '89': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '90': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '91': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '92': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '93': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '94': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '95': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '96': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '97': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '98': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '99': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '100': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '101': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '102': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '103': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '104': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '105': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '106': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '107': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '108': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '109': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '110': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '111': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '112': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '113': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '114': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '115': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '116': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '117': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '118': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '119': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '120': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '121': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '122': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '123': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '124': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '125': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '126': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '127': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '128': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '129': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '130': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '131': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '132': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '133': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '134': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '135': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '136': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '137': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '138': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '139': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '140': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '141': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '142': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '145': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '146': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '147': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '148': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '149': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '150': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '151': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '152': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '153': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '154': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '155': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '156': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '157': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '159': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '160': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '161': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '162': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '163': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '164': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '165': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '166': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '167': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '168': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '169': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '170': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '171': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '172': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '173': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '174': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '175': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '176': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '177': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '178': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '179': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '180': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '181': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '182': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '183': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '184': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '185': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '186': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '187': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '188': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '189': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '190': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '191': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '192': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '195': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '196': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '197': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '198': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '199': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '200': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '201': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '202': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '203': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '204': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '205': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '207': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '208': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '209': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '210': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '212': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '213': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '214': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '215': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '216': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '217': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '218': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '219': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '220': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '221': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '222': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '223': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '224': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '225': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '226': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '227': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '228': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '229': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '230': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '231': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '232': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '233': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '234': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '235': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '236': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '237': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '238': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '239': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '240': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '241': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '242': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '243': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '244': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '245': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '246': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '247': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; case '248': // if this country was selected var new_options = new Array() // an array of new options var options_cnt = 0; // keep track of the index in the array new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; default: new_option = new Option('--- No States ---','0'); // one 'empty' option form.elements[state_num].options[0] = new_option; // add it to the option list break; } form.elements[state_num].selectedIndex = 0; // and select the first one return; } //====================================================================================== // This javascript function takes a form object, the number of the state // selection list, and the value of the state id and selects that state function setState(form,state_num,state_id) { for(i=0;i