function Country(abbr, name)
 {    
  this.abbr = abbr;
  this.name = name;
  this.states = new Array;
 }
 
 function State(abbr, name)
 {
     this.abbr = abbr;
     this.name = name;
 }
 
 var countryList = new Array();
 countryList[0] = new Country("US","United States");
 countryList[0].states[0] = "Alabama";
 countryList[0].states[1] = "Alaska";
 countryList[0].states[2] = "American Samoa";
 countryList[0].states[3] = "Arizona";
 countryList[0].states[4] = "Arkansas";
 countryList[0].states[5] = "Armed Forces Americas";
 countryList[0].states[6] = "Armed Forces Europe";
 countryList[0].states[7] = "Armed Forces Pacific";
 countryList[0].states[8] = "California";
 countryList[0].states[9] = "Colorado";
 countryList[0].states[10] = "Connecticut";
 countryList[0].states[11] = "Delaware";
 countryList[0].states[12] = "District of Columbia";
 countryList[0].states[13] = "Florida";
 countryList[0].states[14] = "Georgia";
 countryList[0].states[15] = "Guam";
 countryList[0].states[16] = "Hawaii";
 countryList[0].states[17] = "Idaho";
 countryList[0].states[18] = "Illinois";
 countryList[0].states[19] = "Indiana";
 countryList[0].states[20] = "Iowa";
 countryList[0].states[21] = "Kansas";
 countryList[0].states[22] = "Kentucky";
 countryList[0].states[23] = "Louisiana";
 countryList[0].states[24] = "Maine";
 countryList[0].states[25] = "Maryland";
 countryList[0].states[26] = "Massachusetts";
 countryList[0].states[27] = "Michigan";
 countryList[0].states[28] = "Minnesota";
 countryList[0].states[29] = "Mississippi";
 countryList[0].states[30] = "Missouri";
 countryList[0].states[31] = "Montana";
 countryList[0].states[32] = "Nebraska";
 countryList[0].states[33] = "Nevada";
 countryList[0].states[34] = "New Hampshire";
 countryList[0].states[35] = "New Jersey";
 countryList[0].states[36] = "New Mexico";
 countryList[0].states[37] = "New York";
 countryList[0].states[38] = "North Carolina";
 countryList[0].states[39] = "North Dakota";
 countryList[0].states[40] = "Northern Mariana Islands";
 countryList[0].states[41] = "Ohio";
 countryList[0].states[42] = "Oklahoma";
 countryList[0].states[43] = "Oregon";
 countryList[0].states[44] = "Palau";
 countryList[0].states[45] = "Pennsylvania";
 countryList[0].states[46] = "Rhode Island";
 countryList[0].states[47] = "South Carolina";
 countryList[0].states[48] = "South Dakota";
 countryList[0].states[49] = "Tennessee";
 countryList[0].states[50] = "Texas";
 countryList[0].states[51] = "U.S. Virgin Islands";
 countryList[0].states[52] = "Utah";
 countryList[0].states[53] = "Vermont";
 countryList[0].states[54] = "Virginia";
 countryList[0].states[55] = "Washington";
 countryList[0].states[56] = "West Virginia";
 countryList[0].states[57] = "Wisconsin";
 countryList[0].states[58] = "Wyoming";
 countryList[0].states[59] = "Select a State";
 countryList[1] = new Country("CA","Canada");
 countryList[1].states[0] = "CA, Alberta";
 countryList[1].states[1] = "CA, British Columbia";
 countryList[1].states[2] = "CA, Manitoba";
 countryList[1].states[3] = "CA, New Brunswick";
 countryList[1].states[4] = "CA, Newfoundland";
 countryList[1].states[5] = "CA, Northwest Territory";
 countryList[1].states[6] = "CA, Nova Scotia";
 countryList[1].states[7] = "CA, Nunavut";
 countryList[1].states[8] = "CA, Ontario";
 countryList[1].states[9] = "CA, Prince Edward Island";
 countryList[1].states[10] = "CA, Quebec";
 countryList[1].states[11] = "CA, Saskatchewan";
 countryList[1].states[12] = "CA, Yukon";
 countryList[1].states[13] = "Select a State";
 
 // For when we go international...............
 countryList[0] = new Country("AD", "Andorra");
 countryList[1] = new Country("AE", "United Arab Emirates");
 countryList[2] = new Country("AF", "Afghanistan");
 countryList[3] = new Country("AG", "Antigua and Barbuda");
 countryList[4] = new Country("AI", "Anguilla");
 countryList[5] = new Country("AL", "Albania");
 countryList[6] = new Country("AM", "Armenia");
 countryList[7] = new Country("AN", "Netherlands Antilles");
 countryList[8] = new Country("AO", "Angola");
 countryList[9] = new Country("AQ", "Antarctica");
 countryList[10] = new Country("AR", "Argentina");
 countryList[11] = new Country("AS", "American Samoa");
 countryList[12] = new Country("AT", "Austria");
 countryList[13] = new Country("AU", "Australia");
 countryList[14] = new Country("AW", "Aruba");
 countryList[15] = new Country("AZ", "Azerbaijan");
 countryList[16] = new Country("BA", "Bosnia and Herzegovina");
 countryList[17] = new Country("BB", "Barbados");
 countryList[18] = new Country("BD", "Bangladesh");
 countryList[19] = new Country("BE", "Belgium");
 countryList[20] = new Country("BF", "Burkina Faso");
 countryList[21] = new Country("BG", "Bulgaria");
 countryList[22] = new Country("BH", "Bahrain");
 countryList[23] = new Country("BI", "Burundi");
 countryList[24] = new Country("BJ", "Benin");
 countryList[25] = new Country("BM", "Bermuda");
 countryList[26] = new Country("BN", "Brunei");
 countryList[27] = new Country("BO", "Bolivia");
 countryList[28] = new Country("BR", "Brazil");
 countryList[29] = new Country("BS", "Bahamas");
 countryList[30] = new Country("BT", "Bhutan");
 countryList[31] = new Country("BV", "Bouvet Island");
 countryList[32] = new Country("BW", "Botswana");
 countryList[33] = new Country("BY", "Belarus");
 countryList[34] = new Country("BZ", "Belize");
 countryList[35] = new Country("CA", "Canada");
 countryList[35].states[0] = "Alberta";
 countryList[35].states[1] = "British Columbia";
 countryList[35].states[2] = "Manitoba";
 countryList[35].states[3] = "New Brunswick";
 countryList[35].states[4] = "Newfoundland";
 countryList[35].states[5] = "Northwest Territory";
 countryList[35].states[6] = "Nova Scotia";
 countryList[35].states[7] = "Nunavut";
 countryList[35].states[8] = "Ontario";
 countryList[35].states[9] = "Prince Edward Island";
 countryList[35].states[10] = "Quebec";
 countryList[35].states[11] = "Saskatchewan";
 countryList[35].states[12] = "Yukon";
 
 
 countryList[36] = new Country("CC", "Cocos Islands");
 countryList[37] = new Country("CD", "Congo, Democratic Republic of the");
 countryList[38] = new Country("CF", "Central African Republic");
 countryList[39] = new Country("CG", "Congo");
 countryList[40] = new Country("CH", "Switzerland");
 countryList[41] = new Country("CI", "Cote d'Ivoire");
 countryList[42] = new Country("CK", "Cook Islands");
 countryList[43] = new Country("CL", "Chile");
 countryList[44] = new Country("CM", "Cameroon");
 countryList[45] = new Country("CN", "China");
 countryList[46] = new Country("CO", "Colombia");
 countryList[47] = new Country("CR", "Costa Rica");
 countryList[48] = new Country("CU", "Cuba");
 countryList[49] = new Country("CV", "Cape Verde");
 countryList[50] = new Country("CX", "Christmas Island");
 countryList[51] = new Country("CY", "Cyprus");
 countryList[52] = new Country("CZ", "Czech Republic");
 countryList[53] = new Country("DE", "Germany");
 countryList[54] = new Country("DJ", "Djibouti");
 countryList[55] = new Country("DK", "Denmark");
 countryList[56] = new Country("DM", "Dominica");
 countryList[57] = new Country("DO", "Dominican Republic");
 countryList[58] = new Country("DZ", "Algeria");
 countryList[59] = new Country("EC", "Ecuador");
 countryList[60] = new Country("EE", "Estonia");
 countryList[61] = new Country("EG", "Egypt");
 countryList[62] = new Country("EH", "Western Saraha");
 countryList[63] = new Country("ER", "Eritrea");
 countryList[64] = new Country("ES", "Spain");
 countryList[65] = new Country("ET", "Ethiopia");
 countryList[66] = new Country("FI", "Finland");
 countryList[67] = new Country("FJ", "Fiji");
 countryList[68] = new Country("FK", "Falkland Islands");
 countryList[69] = new Country("FM", "Micronesia");
 countryList[70] = new Country("FO", "Faroe Islands");
 countryList[71] = new Country("FR", "France");
 countryList[72] = new Country("GA", "Gabon");
 countryList[73] = new Country("GB", "United Kingdom");
 countryList[74] = new Country("GD", "Grenada");
 countryList[75] = new Country("GE", "Georgia");
 countryList[76] = new Country("GF", "French Guiana");
 countryList[77] = new Country("GH", "Ghana");
 countryList[78] = new Country("GI", "Gibraltar");
 countryList[79] = new Country("GL", "Greenland");
 countryList[80] = new Country("GM", "Gambia");
 countryList[81] = new Country("GN", "Guinea");
 countryList[82] = new Country("GP", "Guadeloupe");
 countryList[83] = new Country("GQ", "Equatorial Guinea");
 countryList[84] = new Country("GR", "Greece");
 countryList[85] = new Country("GS", "South Georgia and the South Sandwich Islands");
 countryList[86] = new Country("GT", "Guatemala");
 countryList[87] = new Country("GU", "Guam");
 countryList[88] = new Country("GW", "Guinea-Bissau");
 countryList[89] = new Country("GY", "Guyana");
 countryList[90] = new Country("HK", "Hong Kong S.A.R. of China");
 countryList[91] = new Country("HM", "Heard Island and Mcdonald Islands");
 countryList[92] = new Country("HN", "Honduras");
 countryList[93] = new Country("HR", "Croatia");
 countryList[94] = new Country("HT", "Haiti");
 countryList[95] = new Country("HU", "Hungary");
 countryList[96] = new Country("ID", "Indonesia");
 countryList[97] = new Country("IE", "Ireland");
 countryList[98] = new Country("IL", "Israel");
 countryList[99] = new Country("IN", "India");
 countryList[100] = new Country("IO", "British Indian Ocean Territory");
 countryList[101] = new Country("IQ", "Iraq");
 countryList[102] = new Country("IR", "Iran");
 countryList[103] = new Country("IS", "Iceland");
 countryList[104] = new Country("IT", "Italy");
 countryList[105] = new Country("JM", "Jamaica");
 countryList[106] = new Country("JO", "Jordan");
 countryList[107] = new Country("JP", "Japan");
 countryList[108] = new Country("KE", "Kenya");
 countryList[109] = new Country("KG", "Kyrgyzstan");
 countryList[110] = new Country("KH", "Cambodia");
 countryList[111] = new Country("KI", "Kiribati");
 countryList[112] = new Country("KM", "Comoros");
 countryList[113] = new Country("KN", "Saint Kitts and Nevis");
 countryList[114] = new Country("KP", "Korea, North");
 countryList[115] = new Country("KR", "Korea, South");
 countryList[116] = new Country("KW", "Kuwait");
 countryList[117] = new Country("KY", "Cayman Islands");
 countryList[118] = new Country("KZ", "Kazakhstan");
 countryList[119] = new Country("LA", "Laos");
 countryList[120] = new Country("LB", "Lebanon");
 countryList[121] = new Country("LC", "Saint Lucia");
 countryList[122] = new Country("LI", "Liechtenstein");
 countryList[123] = new Country("LK", "Sri Lanka");
 countryList[124] = new Country("LR", "Liberia");
 countryList[125] = new Country("LS", "Lesotho");
 countryList[126] = new Country("LT", "Lithuania");
 countryList[127] = new Country("LU", "Luxembourg");
 countryList[128] = new Country("LV", "Latvia");
 countryList[129] = new Country("LY", "Libya");
 countryList[130] = new Country("MA", "Morocco");
 countryList[131] = new Country("MC", "Monaco");
 countryList[132] = new Country("MD", "Moldova");
 countryList[133] = new Country("MG", "Madagascar");
 countryList[134] = new Country("MH", "Marshall Islands");
 countryList[135] = new Country("MK", "Macedonia");
 countryList[136] = new Country("ML", "Mali");
 countryList[137] = new Country("MM", "Myanmar");
 countryList[138] = new Country("MN", "Mongolia");
 countryList[139] = new Country("MO", "Macau S.A.R. of China");
 countryList[140] = new Country("MP", "Northern Mariana Islands");
 countryList[141] = new Country("MQ", "Martinique");
 countryList[142] = new Country("MR", "Mauritania");
 countryList[143] = new Country("MS", "Montserrat");
 countryList[144] = new Country("MT", "Malta");
 countryList[145] = new Country("MU", "Mauritius");
 countryList[146] = new Country("MV", "Maldives");
 countryList[147] = new Country("MW", "Malawi");
 countryList[148] = new Country("MX", "Mexico");
 countryList[149] = new Country("MY", "Malaysia");
 countryList[150] = new Country("MZ", "Mozambique");
 countryList[151] = new Country("NA", "Namibia");
 countryList[152] = new Country("NC", "New Caledonia");
 countryList[153] = new Country("NE", "Niger");
 countryList[154] = new Country("NF", "Norfolk Island");
 countryList[155] = new Country("NG", "Nigeria");
 countryList[156] = new Country("NI", "Nicaragua");
 countryList[157] = new Country("NL", "Netherlands");
 countryList[158] = new Country("NO", "Norway");
 countryList[159] = new Country("NP", "Nepal");
 countryList[160] = new Country("NR", "Nauru");
 countryList[161] = new Country("NU", "Niue");
 countryList[162] = new Country("NZ", "New Zealand");
 countryList[163] = new Country("OM", "Oman");
 countryList[164] = new Country("PA", "Panama");
 countryList[165] = new Country("PE", "Peru");
 countryList[166] = new Country("PF", "French Polynesia");
 countryList[167] = new Country("PG", "Papua New Guinea");
 countryList[168] = new Country("PH", "Philippines");
 countryList[169] = new Country("PK", "Pakistan");
 countryList[170] = new Country("PL", "Poland");
 countryList[171] = new Country("PM", "Saint Pierre and Miquelon");
 countryList[172] = new Country("PN", "Pitcairn");
 countryList[173] = new Country("PR", "Puerto Rico");
 countryList[174] = new Country("PS", "Palestinian Territory");
 countryList[175] = new Country("PT", "Portugal");
 countryList[176] = new Country("PW", "Palau");
 countryList[177] = new Country("PY", "Paraguay");
 countryList[178] = new Country("QA", "Qatar");
 countryList[179] = new Country("RE", "Reunion");
 countryList[180] = new Country("RO", "Romania");
 countryList[181] = new Country("RU", "Russian Federation");
 countryList[182] = new Country("RW", "Rwanda");
 countryList[183] = new Country("SA", "Saudi Arabia");
 countryList[184] = new Country("SB", "Solomon Islands");
 countryList[185] = new Country("SC", "Seychelles");
 countryList[186] = new Country("SD", "Sudan");
 countryList[187] = new Country("SE", "Sweden");
 countryList[188] = new Country("SG", "Singapore");
 countryList[189] = new Country("SH", "Saint Helena");
 countryList[190] = new Country("SI", "Slovenia");
 countryList[191] = new Country("SJ", "Svalbard and Jan Mayen");
 countryList[192] = new Country("SK", "Slovakia");
 countryList[193] = new Country("SL", "Sierra Leone");
 countryList[194] = new Country("SM", "San Marino");
 countryList[195] = new Country("SN", "Senegal");
 countryList[196] = new Country("SO", "Somalia");
 countryList[197] = new Country("SR", "Suriname");
 countryList[198] = new Country("ST", "Sao Tome and Principe");
 countryList[199] = new Country("SV", "El Salvador");
 countryList[200] = new Country("SY", "Syria");
 countryList[201] = new Country("SZ", "Swaziland");
 countryList[202] = new Country("TC", "Turks and Caicos Islands");
 countryList[203] = new Country("TD", "Chad");
 countryList[204] = new Country("TF", "French Southern Territories");
 countryList[205] = new Country("TG", "Togo");
 countryList[206] = new Country("TH", "Thailand");
 countryList[207] = new Country("TJ", "Tajikistan");
 countryList[208] = new Country("TK", "Tokelau");
 countryList[209] = new Country("TM", "Turkmenistan");
 countryList[210] = new Country("TN", "Tunisia");
 countryList[211] = new Country("TO", "Tonga");
 countryList[212] = new Country("TP", "East Timor");
 countryList[213] = new Country("TR", "Turkey");
 countryList[214] = new Country("TT", "Trinidad and Tobago");
 countryList[215] = new Country("TV", "Tuvalu");
 countryList[216] = new Country("TW", "Taiwan");
 countryList[217] = new Country("TZ", "Tanzania");
 countryList[218] = new Country("UA", "Ukraine");
 countryList[219] = new Country("UG", "Uganda");
 countryList[220] = new Country("UM", "United States Minor Outlying Islands");
 countryList[221] = new Country("US", "United States");
 countryList[221].states[0] = "Alabama";
 countryList[221].states[1] = "Alaska";
 countryList[221].states[2] = "American Samoa";
 countryList[221].states[3] = "Arizona";
 countryList[221].states[4] = "Arkansas";
 countryList[221].states[5] = "Armed Forces Americas";
 countryList[221].states[6] = "Armed Forces Europe";
 countryList[221].states[7] = "Armed Forces Pacific";
 countryList[221].states[8] = "California";
 countryList[221].states[9] = "Colorado";
 countryList[221].states[10] = "Connecticut";
 countryList[221].states[11] = "Delaware";
 countryList[221].states[12] = "District of Columbia";
 countryList[221].states[13] = "Florida";
 countryList[221].states[14] = "Georgia";
 countryList[221].states[15] = "Guam";
 countryList[221].states[16] = "Hawaii";
 countryList[221].states[17] = "Idaho";
 countryList[221].states[18] = "Illinois";
 countryList[221].states[19] = "Indiana";
 countryList[221].states[20] = "Iowa";
 countryList[221].states[21] = "Kansas";
 countryList[221].states[22] = "Kentucky";
 countryList[221].states[23] = "Louisiana";
 countryList[221].states[24] = "Maine";
 countryList[221].states[25] = "Maryland";
 countryList[221].states[26] = "Massachusetts";
 countryList[221].states[27] = "Michigan";
 countryList[221].states[28] = "Minnesota";
 countryList[221].states[29] = "Mississippi";
 countryList[221].states[30] = "Missouri";
 countryList[221].states[31] = "Montana";
 countryList[221].states[32] = "Nebraska";
 countryList[221].states[33] = "Nevada";
 countryList[221].states[34] = "New Hampshire";
 countryList[221].states[35] = "New Jersey";
 countryList[221].states[36] = "New Mexico";
 countryList[221].states[37] = "New York";
 countryList[221].states[38] = "North Carolina";
 countryList[221].states[39] = "North Dakota";
 countryList[221].states[40] = "Northern Mariana Islands";
 countryList[221].states[41] = "Ohio";
 countryList[221].states[42] = "Oklahoma";
 countryList[221].states[43] = "Oregon";
 countryList[221].states[44] = "Palau";
 countryList[221].states[45] = "Pennsylvania";
 countryList[221].states[46] = "Rhode Island";
 countryList[221].states[47] = "South Carolina";
 countryList[221].states[48] = "South Dakota";
 countryList[221].states[49] = "Tennessee";
 countryList[221].states[50] = "Texas";
 countryList[221].states[51] = "U.S. Virgin Islands";
 countryList[221].states[52] = "Utah";
 countryList[221].states[53] = "Vermont";
 countryList[221].states[54] = "Virginia";
 countryList[221].states[55] = "Washington";
 countryList[221].states[56] = "West Virginia";
 countryList[221].states[57] = "Wisconsin";
 countryList[221].states[58] = "Wyoming";
 
 
 countryList[222] = new Country("UY", "Uruguay");
 countryList[223] = new Country("UZ", "Uzbekistan");
 countryList[224] = new Country("VA", "Holy See");
 countryList[225] = new Country("VC", "Saint Vincent and the Grenadines");
 countryList[226] = new Country("VE", "Venezuela");
 countryList[227] = new Country("VG", "Virgin Islands, British");
 countryList[228] = new Country("VI", "Virgin Islands, US");
 countryList[229] = new Country("VN", "Viet Nam");
 countryList[230] = new Country("VU", "Vanuatu");
 countryList[231] = new Country("WF", "Wallis and Futuna");
 countryList[232] = new Country("WS", "Samoa");
 countryList[233] = new Country("YE", "Yemen");
 countryList[234] = new Country("YT", "Mayotte");
 countryList[235] = new Country("YU", "Yugoslavia");
 countryList[236] = new Country("ZA", "South Africa");
 countryList[237] = new Country("ZM", "Zambia");
 countryList[238] = new Country("ZW", "Zimbabwe");
 
    var usStateList = new Array();
 usStateList[0] = new State("AL","Alabama");
 usStateList[1] = new State("AK","Alaska");
 usStateList[2] = new State("AS","American Samoa");
 usStateList[3] = new State("AZ","Arizona");
 usStateList[4] = new State("AR","Arkansas");
 usStateList[5] = new State("AA","Armed Forces Americas");
 usStateList[6] = new State("AE","Armed Forces Europe");
 usStateList[7] = new State("AP","Armed Forces Pacific");
 usStateList[8] = new State("CA","California");
 usStateList[9] = new State("CO","Colorado");
 usStateList[10] = new State("CT","Connecticut");
 usStateList[11] = new State("DE","Delaware");
 usStateList[12] = new State("DC","District of Columbia");
 usStateList[13] = new State("FL","Florida");
 usStateList[14] = new State("GA","Georgia");
 usStateList[15] = new State("GU","Guam");
 usStateList[16] = new State("HI","Hawaii");
 usStateList[17] = new State("ID","Idaho");
 usStateList[18] = new State("IL","Illinois");
 usStateList[19] = new State("IN","Indiana");
 usStateList[20] = new State("IA","Iowa");
 usStateList[21] = new State("KS","Kansas");
 usStateList[22] = new State("KY","Kentucky");
 usStateList[23] = new State("LA","Louisiana");
 usStateList[24] = new State("ME","Maine");
 usStateList[25] = new State("MD","Maryland");
 usStateList[26] = new State("MA","Massachusetts");
 usStateList[27] = new State("MI","Michigan");
 usStateList[28] = new State("MN","Minnesota");
 usStateList[29] = new State("MS","Mississippi");
 usStateList[30] = new State("MO","Missouri");
 usStateList[31] = new State("MT","Montana");
 usStateList[32] = new State("NE","Nebraska");
 usStateList[33] = new State("NV","Nevada");
 usStateList[34] = new State("NH","New Hampshire");
 usStateList[35] = new State("NJ","New Jersey");
 usStateList[36] = new State("NM","New Mexico");
 usStateList[37] = new State("NY","New York");
 usStateList[38] = new State("NC","North Carolina");
 usStateList[39] = new State("ND","North Dakota");
 usStateList[40] = new State("MP","Northern Mariana Islands");
 usStateList[41] = new State("OH","Ohio");
 usStateList[42] = new State("OK","Oklahoma");
 usStateList[43] = new State("OR","Oregon");
 usStateList[44] = new State("PW","Palau");
 usStateList[45] = new State("PA","Pennsylvania");
 usStateList[46] = new State("RI","Rhode Island");
 usStateList[47] = new State("SC","South Carolina");
 usStateList[48] = new State("SD","South Dakota");
 usStateList[49] = new State("TN","Tennessee");
 usStateList[50] = new State("TX","Texas");
 usStateList[51] = new State("VI","U.S. Virgin Islands");
 usStateList[52] = new State("UT","Utah");
 usStateList[53] = new State("VT","Vermont");
 usStateList[54] = new State("VA","Virginia");
 usStateList[55] = new State("WA","Washington");
 usStateList[56] = new State("WV","West Virginia");
 usStateList[57] = new State("WI","Wisconsin");
 usStateList[58] = new State("WY","Wyoming");
 usStateList[59] = new State("","Select a State");
 
 var canadaStateList = new Array();
 canadaStateList[0] = new State("AB","Alberta");
 canadaStateList[1] = new State("BC","British Columbia");
 canadaStateList[2] = new State("MB","Manitoba");
 canadaStateList[3] = new State("NB","New Brunswick");
 canadaStateList[4] = new State("NL","Newfoundland");
 canadaStateList[5] = new State("NT","Northwest Territory");
 canadaStateList[6] = new State("NS","Nova Scotia");
 canadaStateList[7] = new State("NU","Nunavut");
 canadaStateList[8] = new State("ON","Ontario");
 canadaStateList[9] = new State("PE","Prince Edward Island");
 canadaStateList[10] = new State("QC","Quebec");
 canadaStateList[11] = new State("SK","Saskatchewan");
 canadaStateList[12] = new State("YT","Yukon");
 canadaStateList[13] = new State("","Select a State");
 
 
 function setCountrySelect(selectBox, selectedCountry)
 {
  selectBox.options.length = 0;
  for (var i=0; i<countryList.length; i++)
  {
   selectBox.options[i] = new Option(countryList[i].name,countryList[i].abbr);
   if (countryList[i].abbr == selectedCountry)
   { 
    iCountry = i;
    selectBox.options[i].selected = true;
    selectBox.value = countryList[i].abbr;
   }
  }
 
 }
 
 function setCountry(selectCountryBox){
 
	if(selectCountryBox.value != 'US'){
	
		document.getElementById('myStateTxt2').style.display = "";
		document.getElementById('myStateTxt1').style.display = "none";
		
		document.getElementById('phoneTxt2').style.display = "";
		document.getElementById('phoneTxt1').style.display = "none";	
	}
	else{
	
		document.getElementById('myStateTxt2').style.display = "none";
		document.getElementById('myStateTxt1').style.display = "";	
	
		document.getElementById('phoneTxt2').style.display = "none";
		document.getElementById('phoneTxt1').style.display = "";
	}
/*	
 var iCountry = -1;
  for (var i=0; i<countryList.length; i++)
  {
   if (countryList[i].abbr == selectCountryBox.value)
   { 
    iCountry = i;
   }
  }
*/
 }
 
 function setStateSelect(selectCountryBox, selectStateBox, selectedState)
 { 
  var iCountry = -1;
  for (var i=0; i<countryList.length; i++)
  {
   if (countryList[i].abbr == selectCountryBox.value)
   { 
    iCountry = i;
   }
  }
 
   
  selectStateBox.options.length = 0;
  if (iCountry >= 0)
  {
   stateList = countryList[iCountry].states;
   
   var stateabbr = "";
   
   for (var i=0; i<stateList.length; i++)
   {
    if (iCountry == 0)
    //if (iCountry == 221)
       {
        stateabbr = usStateList[i].abbr;
       }
       if (iCountry == 1)
       //if (iCountry == 35)
       {
           stateabbr = canadaStateList[i].abbr;
       }
    selectStateBox.options[i] = new Option(stateList[i], stateabbr);
    if (stateList[i] == selectedState)
    { 
     selectStateBox.options[i].selected = true;
    }
    if (stateabbr == selectedState)
    {
     selectStateBox.options[i].selected = true;
    }
   }
  }  
 }
 
 
 
