//define variables of Countries
var arrCountry = new Array();
arrCountry[0] = "AF::Afghanistan";
arrCountry[1] = "AL::Albania";
arrCountry[2] = "DZ::Algeria";
arrCountry[3] = "AS::American Samoa";
arrCountry[4] = "AD::Andorra";
arrCountry[5] = "AO::Angola";
arrCountry[6] = "AI::Anguilla";
arrCountry[7] = "AQ::Antarctica";
arrCountry[8] = "AG::Antigua And Barbuda";
arrCountry[9] = "AR::Argentina";
arrCountry[10] = "AM::Armenia";
arrCountry[11] = "AW::Aruba";
arrCountry[12] = "AU::Australia";
arrCountry[13] = "AT::Austria";
arrCountry[14] = "AZ::Azerbaijan";
arrCountry[15] = "BS::Bahamas";
arrCountry[16] = "BH::Bahrain";
arrCountry[17] = "BD::Bangladesh";
arrCountry[18] = "BB::Barbados";
arrCountry[19] = "BY::Belarus";
arrCountry[20] = "BE::Belgium";
arrCountry[21] = "BZ::Belize";
arrCountry[22] = "BJ::Benin";
arrCountry[23] = "BM::Bermuda";
arrCountry[24] = "BT::Bhutan";
arrCountry[25] = "BO::Bolivia";
arrCountry[26] = "BA::Bosnia And Herzegowina";
arrCountry[27] = "BW::Botswana";
arrCountry[28] = "BV::Bouvet Island";
arrCountry[29] = "BR::Brazil";
arrCountry[30] = "BN::Brunei Darussalam";
arrCountry[31] = "BG::Bulgaria";
arrCountry[32] = "BF::Burkina Faso";
arrCountry[33] = "BI::Burundi";
arrCountry[34] = "KH::Cambodia";
arrCountry[35] = "CM::Cameroon";
arrCountry[36] = "CA::Canada";
arrCountry[37] = "CV::Cape Verde";
arrCountry[38] = "KY::Cayman Islands";
arrCountry[39] = "CF::Central African Rep";
arrCountry[40] = "TD::Chad";
arrCountry[41] = "CL::Chile";
arrCountry[42] = "CN::China";
arrCountry[43] = "CX::Christmas Island";
arrCountry[44] = "CC::Cocos Islands";
arrCountry[45] = "CO::Colombia";
arrCountry[46] = "KM::Comoros";
arrCountry[47] = "CG::Congo";
arrCountry[48] = "CK::Cook Islands";
arrCountry[49] = "CR::Costa Rica";
arrCountry[50] = "CI::Cote D'ivoire";
arrCountry[51] = "HR::Croatia";
arrCountry[52] = "CU::Cuba";
arrCountry[53] = "CY::Cyprus";
arrCountry[54] = "CZ::Czech Republic";
arrCountry[55] = "DK::Denmark";
arrCountry[56] = "DJ::Djibouti";
arrCountry[57] = "DM::Dominica";
arrCountry[58] = "DO::Dominican Republic";
arrCountry[59] = "TP::East Timor";
arrCountry[60] = "EC::Ecuador";
arrCountry[61] = "EG::Egypt";
arrCountry[62] = "SV::El Salvador";
arrCountry[63] = "GQ::Equatorial Guinea";
arrCountry[64] = "ER::Eritrea";
arrCountry[65] = "EE::Estonia";
arrCountry[66] = "ET::Ethiopia";
arrCountry[67] = "FK::Falkland Islands (Malvinas)";
arrCountry[68] = "FO::Faroe Islands";
arrCountry[69] = "FJ::Fiji";
arrCountry[70] = "FI::Finland";
arrCountry[71] = "FR::France";
arrCountry[72] = "GF::French Guiana";
arrCountry[73] = "PF::French Polynesia";
arrCountry[74] = "TF::French S. Territories";
arrCountry[75] = "GA::Gabon";
arrCountry[76] = "GM::Gambia";
arrCountry[77] = "GE::Georgia";
arrCountry[78] = "DE::Germany";
arrCountry[79] = "GH::Ghana";
arrCountry[80] = "GI::Gibraltar";
arrCountry[81] = "GR::Greece";
arrCountry[82] = "GL::Greenland";
arrCountry[83] = "GD::Grenada";
arrCountry[84] = "GP::Guadeloupe";
arrCountry[85] = "GU::Guam";
arrCountry[86] = "GT::Guatemala";
arrCountry[87] = "GN::Guinea";
arrCountry[88] = "GW::Guinea-bissau";
arrCountry[89] = "GY::Guyana";
arrCountry[90] = "HT::Haiti";
arrCountry[91] = "HN::Honduras";
arrCountry[92] = "HK::Hong Kong";
arrCountry[93] = "HU::Hungary";
arrCountry[94] = "IS::Iceland";
arrCountry[95] = "IN::India";
arrCountry[96] = "ID::Indonesia";
arrCountry[97] = "IR::Iran";
arrCountry[98] = "IQ::Iraq";
arrCountry[99] = "IE::Ireland";
arrCountry[100] = "IL::Israel";
arrCountry[101] = "IT::Italy";
arrCountry[102] = "JM::Jamaica";
arrCountry[103] = "JP::Japan";
arrCountry[104] = "JO::Jordan";
arrCountry[105] = "KZ::Kazakhstan";
arrCountry[106] = "KE::Kenya";
arrCountry[107] = "KI::Kiribati";
arrCountry[108] = "KP::Korea (North)";
arrCountry[109] = "KR::Korea (South)";
arrCountry[110] = "KW::Kuwait";
arrCountry[111] = "KG::Kyrgyzstan";
arrCountry[112] = "LA::Laos";
arrCountry[113] = "LV::Latvia";
arrCountry[114] = "LB::Lebanon";
arrCountry[115] = "LS::Lesotho";
arrCountry[116] = "LR::Liberia";
arrCountry[117] = "LY::Libya";
arrCountry[118] = "LI::Liechtenstein";
arrCountry[119] = "LT::Lithuania";
arrCountry[120] = "LU::Luxembourg";
arrCountry[121] = "MO::Macau";
arrCountry[122] = "MK::Macedonia";
arrCountry[123] = "MG::Madagascar";
arrCountry[124] = "MW::Malawi";
arrCountry[125] = "MY::Malaysia";
arrCountry[126] = "MV::Maldives";
arrCountry[127] = "ML::Mali";
arrCountry[128] = "MT::Malta";
arrCountry[129] = "MH::Marshall Islands";
arrCountry[130] = "MQ::Martinique";
arrCountry[131] = "MR::Mauritania";
arrCountry[132] = "MU::Mauritius";
arrCountry[133] = "YT::Mayotte";
arrCountry[134] = "MX::Mexico";
arrCountry[135] = "FM::Micronesia";
arrCountry[136] = "MD::Moldova";
arrCountry[137] = "MC::Monaco";
arrCountry[138] = "MN::Mongolia";
arrCountry[139] = "MS::Montserrat";
arrCountry[140] = "MA::Morocco";
arrCountry[141] = "MZ::Mozambique";
arrCountry[142] = "MM::Myanmar";
arrCountry[143] = "NA::Namibia";
arrCountry[144] = "NR::Nauru";
arrCountry[145] = "NP::Nepal";
arrCountry[146] = "NL::Netherlands";
arrCountry[147] = "AN::Netherlands Antilles";
arrCountry[148] = "NC::New Caledonia";
arrCountry[149] = "NZ::New Zealand";
arrCountry[150] = "NI::Nicaragua";
arrCountry[151] = "NE::Niger";
arrCountry[152] = "NG::Nigeria";
arrCountry[153] = "NU::Niue";
arrCountry[154] = "NF::Norfolk Island";
arrCountry[155] = "MP::Northern Mariana Islands";
arrCountry[156] = "NO::Norway";
arrCountry[157] = "OM::Oman";
arrCountry[158] = "PK::Pakistan";
arrCountry[159] = "PW::Palau";
arrCountry[160] = "PA::Panama";
arrCountry[161] = "PG::Papua New Guinea";
arrCountry[162] = "PY::Paraguay";
arrCountry[163] = "PE::Peru";
arrCountry[164] = "PH::Philippines";
arrCountry[165] = "PN::Pitcairn";
arrCountry[166] = "PL::Poland";
arrCountry[167] = "PT::Portugal";
arrCountry[168] = "PR::Puerto Rico";
arrCountry[169] = "QA::Qatar";
arrCountry[170] = "RE::Reunion";
arrCountry[171] = "RO::Romania";
arrCountry[172] = "RU::Russian Federation";
arrCountry[173] = "RW::Rwanda";
arrCountry[174] = "KN::Saint Kitts And Nevis";
arrCountry[175] = "LC::Saint Lucia";
arrCountry[176] = "WS::Samoa";
arrCountry[177] = "SM::San Marino";
arrCountry[178] = "ST::Sao Tome";
arrCountry[179] = "SA::Saudi Arabia";
arrCountry[180] = "SN::Senegal";
arrCountry[181] = "SC::Seychelles";
arrCountry[182] = "SL::Sierra Leone";
arrCountry[183] = "SG::Singapore";
arrCountry[184] = "SK::Slovakia";
arrCountry[185] = "SI::Slovenia";
arrCountry[186] = "SB::Solomon Islands";
arrCountry[187] = "SO::Somalia";
arrCountry[188] = "ZA::South Africa";
arrCountry[189] = "ES::Spain";
arrCountry[190] = "LK::Sri Lanka";
arrCountry[191] = "VC::St Vincent/Grenadines";
arrCountry[192] = "SH::St. Helena";
arrCountry[193] = "PM::St.Pierre";
arrCountry[194] = "SD::Sudan";
arrCountry[195] = "SR::Suriname";
arrCountry[196] = "SZ::Switzeland";
arrCountry[197] = "SE::Sweden";
arrCountry[198] = "CH::Switzerland";
arrCountry[199] = "SY::Syrian Arab Republic";
arrCountry[200] = "TW::Taiwan";
arrCountry[201] = "TJ::Tajikistan";
arrCountry[202] = "TZ::Tanzania";
arrCountry[203] = "TH::Thailand";
arrCountry[204] = "TG::Togo";
arrCountry[205] = "TK::Tokelau";
arrCountry[206] = "TO::Tonga";
arrCountry[207] = "TT::Trinidad And Tobago";
arrCountry[208] = "TN::Tunisia";
arrCountry[209] = "TR::Turkey";
arrCountry[210] = "TM::Turkmenistan";
arrCountry[211] = "TV::Tuvalu";
arrCountry[212] = "UG::Uganda";
arrCountry[213] = "UA::Ukraine";
arrCountry[214] = "AE::United Arab Emirates";
arrCountry[215] = "UK::United Kingdom";
arrCountry[216] = "US::United States";
arrCountry[217] = "UY::Uruguay";
arrCountry[218] = "UZ::Uzbekistan";
arrCountry[219] = "VU::Vanuatu";
arrCountry[220] = "VA::Vatican City State";
arrCountry[221] = "VE::Venezuela";
arrCountry[222] = "VN::Viet Nam";
arrCountry[223] = "VG::Virgin Islands (British)";
arrCountry[224] = "VI::Virgin Islands (U.S.)";
arrCountry[225] = "EH::Western Sahara";
arrCountry[226] = "YE::Yemen";
arrCountry[227] = "YU::Yugoslavia";
arrCountry[228] = "ZR::Zaire";
arrCountry[229] = "ZM::Zambia";
arrCountry[230] = "ZW::Zimbabwe";

//define variables of States
var arrState = new Array();
arrState[0] = "AL::Alabama";
arrState[1] = "AK::Alaska";
arrState[2] = "AZ::Arizona";
arrState[3] = "AR::Arkansas";
arrState[4] = "CA::California";
arrState[5] = "CO::Colorado";
arrState[6] = "CT::Connecticut";
arrState[7] = "DE::Delaware";
arrState[8] = "FL::Florida";
arrState[9] = "GA::Georgia";
arrState[10] = "HI::Hawaii";
arrState[11] = "ID::Idaho";
arrState[12] = "IL::Illinois";
arrState[13] = "IN::Indiana";
arrState[14] = "IA::Iowa";
arrState[15] = "KS::Kansas";
arrState[16] = "KY::Kentucky";
arrState[17] = "LA::Louisiana";
arrState[18] = "ME::Maine";
arrState[19] = "MD::Maryland";
arrState[20] = "MA::Massachusetts";
arrState[21] = "MI::Michigan";
arrState[22] = "MN::Minnesota";
arrState[23] = "MS::Mississippi";
arrState[24] = "MO::Missouri";
arrState[25] = "MT::Montana";
arrState[26] = "NE::Nebraska";
arrState[27] = "NV::Nevada";
arrState[28] = "NH::New Hampshire";
arrState[29] = "NJ::New Jersey";
arrState[30] = "NM::New Mexico";
arrState[31] = "NY::New York";
arrState[32] = "NC::North Carolina";
arrState[33] = "ND::North Dakota";
arrState[34] = "OH::Ohio";
arrState[35] = "OK::Oklahoma";
arrState[36] = "OR::Oregon";
arrState[37] = "PA::Pennsylvania";
arrState[38] = "RI::Rhode Island";
arrState[39] = "SC::South Carolina";
arrState[40] = "SD::South Dakota";
arrState[41] = "TN::Tennessee";
arrState[42] = "TX::Texas";
arrState[43] = "UT::Utah";
arrState[44] = "VT::Vermont";
arrState[45] = "VA::Virginia";
arrState[46] = "WA::Washington";
arrState[47] = "DC::Washington D.C.";
arrState[48] = "WV::West Virginia";
arrState[49] = "WI::Wisconsin";
arrState[50] = "WY::Wyoming";
arrState[50] = "NO::No State";

var ArrStates = new Array();ArrStates[0] = 'AD::NO::No State'; ArrStates[1] = 'AE::NO::No State'; ArrStates[2] = 'AF::NO::No State'; ArrStates[3] = 'AG::NO::No State'; ArrStates[4] = 'AI::NO::No State'; ArrStates[5] = 'AL::NO::No State'; ArrStates[6] = 'AM::NO::No State'; ArrStates[7] = 'AN::NO::No State'; ArrStates[8] = 'AO::NO::No State'; ArrStates[9] = 'AQ::NO::No State'; ArrStates[10] = 'AR::NO::No State'; ArrStates[11] = 'AS::NO::No State'; ArrStates[12] = 'AT::NO::No State'; ArrStates[13] = 'AU::NO::No State'; ArrStates[14] = 'AW::NO::No State'; ArrStates[15] = 'AZ::NO::No State'; ArrStates[16] = 'BA::NO::No State'; ArrStates[17] = 'BB::NO::No State'; ArrStates[18] = 'BD::NO::No State'; ArrStates[19] = 'BE::NO::No State'; ArrStates[20] = 'BF::NO::No State'; ArrStates[21] = 'BG::NO::No State'; ArrStates[22] = 'BH::NO::No State'; ArrStates[23] = 'BI::NO::No State'; ArrStates[24] = 'BJ::NO::No State'; ArrStates[25] = 'BM::NO::No State'; ArrStates[26] = 'BN::NO::No State'; ArrStates[27] = 'BO::NO::No State'; ArrStates[28] = 'BR::NO::No State'; ArrStates[29] = 'BS::NO::No State'; ArrStates[30] = 'BT::NO::No State'; ArrStates[31] = 'BV::NO::No State'; ArrStates[32] = 'BW::NO::No State'; ArrStates[33] = 'BY::NO::No State'; ArrStates[34] = 'BZ::NO::No State'; ArrStates[35] = 'CA::AB::Alberta'; ArrStates[36] = 'CA::BC::British Columbia'; ArrStates[37] = 'CA::MB::Manitoba'; ArrStates[38] = 'CA::NB::New Brunswick'; ArrStates[39] = 'CA::NF::Newfoundland'; ArrStates[40] = 'CA::NS::Nova Scotia'; ArrStates[41] = 'CA::NT::Northwest Territories'; ArrStates[42] = 'CA::ON::Ontario'; ArrStates[43] = 'CA::PI::Prince Edward Island'; ArrStates[44] = 'CA::PQ::Quebec'; ArrStates[45] = 'CA::SK::Saskatchewan'; ArrStates[46] = 'CA::YT::Yukon'; ArrStates[47] = 'CC::NO::No State'; ArrStates[48] = 'CF::NO::No State'; ArrStates[49] = 'CG::NO::No State'; ArrStates[50] = 'CH::NO::No State'; ArrStates[51] = 'CI::NO::No State'; ArrStates[52] = 'CK::NO::No State'; ArrStates[53] = 'CL::NO::No State'; ArrStates[54] = 'CM::NO::No State'; ArrStates[55] = 'CN::NO::No State'; ArrStates[56] = 'CO::NO::No State'; ArrStates[57] = 'CR::NO::No State'; ArrStates[58] = 'CU::NO::No State'; ArrStates[59] = 'CV::NO::No State'; ArrStates[60] = 'CX::NO::No State'; ArrStates[61] = 'CY::NO::No State'; ArrStates[62] = 'CZ::NO::No State'; ArrStates[63] = 'DE::NO::No State'; ArrStates[64] = 'DJ::NO::No State'; ArrStates[65] = 'DK::NO::No State'; ArrStates[66] = 'DM::NO::No State'; ArrStates[67] = 'DO::NO::No State'; ArrStates[68] = 'DZ::NO::No State'; ArrStates[69] = 'EC::NO::No State'; ArrStates[70] = 'EE::NO::No State'; ArrStates[71] = 'EG::NO::No State'; ArrStates[72] = 'EH::NO::No State'; ArrStates[73] = 'ER::NO::No State'; ArrStates[74] = 'ES::NO::No State'; ArrStates[75] = 'ET::NO::No State'; ArrStates[76] = 'FI::NO::No State'; ArrStates[77] = 'FJ::NO::No State'; ArrStates[78] = 'FK::NO::No State'; ArrStates[79] = 'FM::NO::No State'; ArrStates[80] = 'FO::NO::No State'; ArrStates[81] = 'FR::NO::No State'; ArrStates[82] = 'GA::NO::No State'; ArrStates[83] = 'GD::NO::No State'; ArrStates[84] = 'GE::NO::No State'; ArrStates[85] = 'GF::NO::No State'; ArrStates[86] = 'GH::NO::No State'; ArrStates[87] = 'GI::NO::No State'; ArrStates[88] = 'GL::NO::No State'; ArrStates[89] = 'GM::NO::No State'; ArrStates[90] = 'GN::NO::No State'; ArrStates[91] = 'GP::NO::No State'; ArrStates[92] = 'GQ::NO::No State'; ArrStates[93] = 'GR::NO::No State'; ArrStates[94] = 'GT::NO::No State'; ArrStates[95] = 'GU::NO::No State'; ArrStates[96] = 'GW::NO::No State'; ArrStates[97] = 'GY::NO::No State'; ArrStates[98] = 'HK::NO::No State'; ArrStates[99] = 'HN::NO::No State'; ArrStates[100] = 'HR::NO::No State'; ArrStates[101] = 'HT::NO::No State'; ArrStates[102] = 'HU::NO::No State'; ArrStates[103] = 'ID::NO::No State'; ArrStates[104] = 'IE::NO::No State'; ArrStates[105] = 'IL::NO::No State'; ArrStates[106] = 'IN::NO::No State'; ArrStates[107] = 'IQ::NO::No State'; ArrStates[108] = 'IR::NO::No State'; ArrStates[109] = 'IS::NO::No State'; ArrStates[110] = 'IT::NO::No State'; ArrStates[111] = 'JM::NO::No State'; ArrStates[112] = 'JO::NO::No State'; ArrStates[113] = 'JP::NO::No State'; ArrStates[114] = 'KE::NO::No State'; ArrStates[115] = 'KG::NO::No State'; ArrStates[116] = 'KH::NO::No State'; ArrStates[117] = 'KI::NO::No State'; ArrStates[118] = 'KM::NO::No State'; ArrStates[119] = 'KN::NO::No State'; ArrStates[120] = 'KP::NO::No State'; ArrStates[121] = 'KR::NO::No State'; ArrStates[122] = 'KW::NO::No State'; ArrStates[123] = 'KY::NO::No State'; ArrStates[124] = 'KZ::NO::No State'; ArrStates[125] = 'LA::NO::No State'; ArrStates[126] = 'LB::NO::No State'; ArrStates[127] = 'LC::NO::No State'; ArrStates[128] = 'LI::NO::No State'; ArrStates[129] = 'LK::NO::No State'; ArrStates[130] = 'LR::NO::No State'; ArrStates[131] = 'LS::NO::No State'; ArrStates[132] = 'LT::NO::No State'; ArrStates[133] = 'LU::NO::No State'; ArrStates[134] = 'LV::NO::No State'; ArrStates[135] = 'LY::NO::No State'; ArrStates[136] = 'MA::NO::No State'; ArrStates[137] = 'MC::NO::No State'; ArrStates[138] = 'MD::NO::No State'; ArrStates[139] = 'MG::NO::No State'; ArrStates[140] = 'MH::NO::No State'; ArrStates[141] = 'MK::NO::No State'; ArrStates[142] = 'ML::NO::No State'; ArrStates[143] = 'MM::NO::No State'; ArrStates[144] = 'MN::NO::No State'; ArrStates[145] = 'MO::NO::No State'; ArrStates[146] = 'MP::NO::No State'; ArrStates[147] = 'MQ::NO::No State'; ArrStates[148] = 'MR::NO::No State'; ArrStates[149] = 'MS::NO::No State'; ArrStates[150] = 'MT::NO::No State'; ArrStates[151] = 'MU::NO::No State'; ArrStates[152] = 'MV::NO::No State'; ArrStates[153] = 'MW::NO::No State'; ArrStates[154] = 'MX::NO::No State'; ArrStates[155] = 'MY::NO::No State'; ArrStates[156] = 'MZ::NO::No State'; ArrStates[157] = 'NA::NO::No State'; ArrStates[158] = 'NC::NO::No State'; ArrStates[159] = 'NE::NO::No State'; ArrStates[160] = 'NF::NO::No State'; ArrStates[161] = 'NG::NO::No State'; ArrStates[162] = 'NI::NO::No State'; ArrStates[163] = 'NL::NO::No State'; ArrStates[164] = 'NO::NO::No State'; ArrStates[165] = 'NP::NO::No State'; ArrStates[166] = 'NR::NO::No State'; ArrStates[167] = 'NU::NO::No State'; ArrStates[168] = 'NZ::NO::No State'; ArrStates[169] = 'OM::NO::No State'; ArrStates[170] = 'PA::NO::No State'; ArrStates[171] = 'PE::NO::No State'; ArrStates[172] = 'PF::NO::No State'; ArrStates[173] = 'PG::NO::No State'; ArrStates[174] = 'PH::NO::No State'; ArrStates[175] = 'PK::NO::No State'; ArrStates[176] = 'PL::NO::No State'; ArrStates[177] = 'PM::NO::No State'; ArrStates[178] = 'PN::NO::No State'; ArrStates[179] = 'PR::NO::No State'; ArrStates[180] = 'PT::NO::No State'; ArrStates[181] = 'PW::NO::No State'; ArrStates[182] = 'PY::NO::No State'; ArrStates[183] = 'QA::NO::No State'; ArrStates[184] = 'RE::NO::No State'; ArrStates[185] = 'RO::NO::No State'; ArrStates[186] = 'RU::NO::No State'; ArrStates[187] = 'RW::NO::No State'; ArrStates[188] = 'SA::NO::No State'; ArrStates[189] = 'SB::NO::No State'; ArrStates[190] = 'SC::NO::No State'; ArrStates[191] = 'SD::NO::No State'; ArrStates[192] = 'SE::NO::No State`'; ArrStates[193] = 'SG::NO::No State'; ArrStates[194] = 'SH::NO::No State'; ArrStates[195] = 'SI::NO::No State'; ArrStates[196] = 'SK::NO::No State'; ArrStates[197] = 'SL::NO::No State'; ArrStates[198] = 'SM::NO::No State'; ArrStates[199] = 'SN::NO::No State'; ArrStates[200] = 'SO::NO::No State'; ArrStates[201] = 'SR::NO::No State'; ArrStates[202] = 'ST::NO::No State'; ArrStates[203] = 'SV::NO::No State'; ArrStates[204] = 'SY::NO::No State'; ArrStates[205] = 'SZ::NO::No State'; ArrStates[206] = 'TD::NO::No State'; ArrStates[207] = 'TF::NO::No State'; ArrStates[208] = 'TG::NO::No State'; ArrStates[209] = 'TH::NO::No State'; ArrStates[210] = 'TJ::NO::No State'; ArrStates[211] = 'TK::NO::No State'; ArrStates[212] = 'TM::NO::No State'; ArrStates[213] = 'TN::NO::No State'; ArrStates[214] = 'TO::NO::No State'; ArrStates[215] = 'TP::NO::No State'; ArrStates[216] = 'TR::NO::No State'; ArrStates[217] = 'TT::NO::No State'; ArrStates[218] = 'TV::NO::No State'; ArrStates[219] = 'TW::NO::No State'; ArrStates[220] = 'TZ::NO::No State'; ArrStates[221] = 'UA::NO::No State'; ArrStates[222] = 'UG::NO::No State'; ArrStates[223] = 'UK::NO::No State'; ArrStates[224] = 'US::AK::Alaska'; ArrStates[225] = 'US::AL::Alabama'; ArrStates[226] = 'US::AR::Arkansas'; ArrStates[227] = 'US::AZ::Arizona'; ArrStates[228] = 'US::CA::California'; ArrStates[229] = 'US::CO::Colorado'; ArrStates[230] = 'US::CT::Connecticut'; ArrStates[231] = 'US::DC::Washington D.C.'; ArrStates[232] = 'US::DE::Delaware'; ArrStates[233] = 'US::FL::Florida'; ArrStates[234] = 'US::GA::Georgia'; ArrStates[235] = 'US::HI::Hawaii'; ArrStates[236] = 'US::IA::Iowa'; ArrStates[237] = 'US::ID::Idaho'; ArrStates[238] = 'US::IL::Illinois'; ArrStates[239] = 'US::IN::Indiana'; ArrStates[240] = 'US::KS::Kansas'; ArrStates[241] = 'US::KY::Kentucky'; ArrStates[242] = 'US::LA::Louisiana'; ArrStates[243] = 'US::MA::Massachusetts'; ArrStates[244] = 'US::MD::Maryland'; ArrStates[245] = 'US::ME::Maine'; ArrStates[246] = 'US::MI::Michigan'; ArrStates[247] = 'US::MN::Minnesota'; ArrStates[248] = 'US::MO::Missouri'; ArrStates[249] = 'US::MS::Mississippi'; ArrStates[250] = 'US::MT::Montana'; ArrStates[251] = 'US::NC::North Carolina'; ArrStates[252] = 'US::ND::North Dakota'; ArrStates[253] = 'US::NE::Nebraska'; ArrStates[254] = 'US::NH::New Hampshire'; ArrStates[255] = 'US::NJ::New Jersey'; ArrStates[256] = 'US::NM::New Mexico'; ArrStates[257] = 'US::NV::Nevada'; ArrStates[258] = 'US::NY::New York'; ArrStates[259] = 'US::OH::Ohio'; ArrStates[260] = 'US::OK::Oklahoma'; ArrStates[261] = 'US::OR::Oregon'; ArrStates[262] = 'US::PA::Pennsylvania'; ArrStates[263] = 'US::RI::Rhode Island'; ArrStates[264] = 'US::SC::South Carolina'; ArrStates[265] = 'US::SD::South Dakota'; ArrStates[266] = 'US::TN::Tennessee'; ArrStates[267] = 'US::TX::Texas'; ArrStates[268] = 'US::UT::Utah'; ArrStates[269] = 'US::VA::Virginia'; ArrStates[270] = 'US::VT::Vermont'; ArrStates[271] = 'US::WA::Washington'; ArrStates[272] = 'US::WI::Wisconsin'; ArrStates[273] = 'US::WV::West Virginia'; ArrStates[274] = 'US::WY::Wyoming'; ArrStates[275] = 'UY::NO::No State'; ArrStates[276] = 'UZ::NO::No State'; ArrStates[277] = 'VA::NO::No State'; ArrStates[278] = 'VC::NO::No State'; ArrStates[279] = 'VE::NO::No State'; ArrStates[280] = 'VG::NO::No State'; ArrStates[281] = 'VI::NO::No State'; ArrStates[282] = 'VN::NO::No State'; ArrStates[283] = 'VU::NO::No State'; ArrStates[284] = 'WS::NO::No State'; ArrStates[285] = 'YE::NO::No State'; ArrStates[286] = 'YT::NO::No State'; ArrStates[287] = 'YU::NO::No State'; ArrStates[288] = 'ZA::NO::No State'; ArrStates[289] = 'ZM::NO::No State'; ArrStates[290] = 'ZR::NO::No State'; ArrStates[291] = 'ZW::NO::No State'; 

function ValuesOfSelectionBox(arrName, valueSelected){
	var sReturn="";
	for (i = 0; i < arrName.length; i++){
		var value = arrName[i].split("::");
		if (value[0]==valueSelected) sSelect = " Selected";
		else sSelect = "";
		sReturn += "<option value=\""+value[0]+"\""+sSelect+">"+value[1]+"</option>\n";
	}
	document.write(sReturn);
}

function getText(arrName, valueSelected){
	var sReturn="";
	for (i = 0; i < arrName.length; i++){
		var value = arrName[i].split("::");
		if (value[0]==valueSelected){
			sReturn = value[1];
			break;
		}
	}
	document.write(sReturn);
}

<!--
//Each time user change Country box, this function will be call.
//function ChangeStates(objForm, objCountry, objState){
function ChangeStates(objForm, objCountry, CountryTmp, objAct){

  var CCode = eval(objForm + "." + objCountry).options[eval(objForm + "." + objCountry).selectedIndex].value
  eval(objForm).CountryTmp.value=CCode;
  eval(objForm).submit();
  /*
  
  
  SelfURL = document.location.href;
    var paramIndex = SelfURL.indexOf("?");
    if (paramIndex > -1) SelfURL = SelfURL.substr(0, paramIndex);    // strip off the parameters
    window.location.href = (SelfURL+"?CountryTmp="+CCode);
    */
    
        /*
        var arrStateItem = new Array()
        //get number of State items in Combo contain State name.
        //var numStateItems = eval(objForm + "." + objCountry).options.length
        //get number of all State items of all Countries.
        var numAllStateItems = ArrStates.length
        //get Country Code of Country which be chosen
        var CCode = eval(objForm + "." + objCountry).options[eval(objForm + "." + objCountry).selectedIndex].value
        //delete all State items in combo contain State name
        for (i = 0; i < numAllStateItems; i++)
        {
                eval("document.all." + objState).remove(eval(objForm + "." + objState).options[i])
        }
        //add States which belong to Country which be chosen
        //into Country combo
        for (i = 0; i < numAllStateItems; i++)
        {
                value = ArrStates[i].split("::")
                var oOption = document.createElement("OPTION");
                if(value[0] == CCode)
                {
                        oOption.text = value[2]
                        oOption.value = value[1];
                        eval("document.all." + objState).add(oOption);
                }
        }
      */

}

function getCountryName(arrCountry, id){
	var intCountry = arrCountry.length;
	for (i = 0; i < intCountry; i++){
		var value = arrCountry[i].split("::");
		if (value[0]==id){
			document.write(value[1]);
			break;
		}
	}
	return "";
}

function getCountry(arrCountry, arrCountry1){
  var intCountry = arrCountry.length;
	var intCountry1 = arrCountry1.length;
	var arrReturn = new Array();
	var k=0;
  for (i = 0; i < intCountry1; i++){
		for (j = 0; j < intCountry; j++){
			var value = arrCountry[j].split("::");
			if (value[0]==arrCountry1[i]){
				arrReturn[k] = arrCountry[j];
				k++;
				break;
			}
		}
	}
	return arrReturn;
}
//-->

