function gettyWriteCountriesSelect(fieldName, currentVal) {

	document.write('<select name="'+fieldName+'" id="'+fieldName+'" style="width:200px">');
	document.write('<option value="">Select Below');
	
	
	document.write('<option value="AFG" ' + ((currentVal == "AFG")?'selected="true"':'') + '> Afghanistan</option>');
	document.write('<option value="ALB" ' + ((currentVal == "ALB")?'selected="true"':'') + '> Albania</option>');
	document.write('<option value="DZ" ' + ((currentVal == "DZ")?'selected="true"':'') + '> Algeria</option>');
	document.write('<option value="ASM" ' + ((currentVal == "ASM")?'selected="true"':'') + '> American Samoa</option>');
	document.write('<option value="AND" ' + ((currentVal == "AND")?'selected="true"':'') + '> Andorra</option>');
	document.write('<option value="AGO" ' + ((currentVal == "AGO")?'selected="true"':'') + '> Angola</option>');			
	document.write('<option value="AIA" ' + ((currentVal == "AIA")?'selected="true"':'') + '> Anguilla</option>');	
	document.write('<option value="ATA" ' + ((currentVal == "ATA")?'selected="true"':'') + '> Antarctica</option>');
	document.write('<option value="ATG" ' + ((currentVal == "ATG")?'selected="true"':'') + '> Antigua and Barbuda</option>');	
	document.write('<option value="ARG" ' + ((currentVal == "ARG")?'selected="true"':'') + '> Argentina</option>');
	document.write('<option value="ARM" ' + ((currentVal == "ARM")?'selected="true"':'') + '> Armenia</option>');
	document.write('<option value="ABW" ' + ((currentVal == "ABW")?'selected="true"':'') + '> Aruba</option>');
	document.write('<option value="AUS" ' + ((currentVal == "AUS")?'selected="true"':'') + '> Australia</option>');	
	document.write('<option value="AUT" ' + ((currentVal == "AUT")?'selected="true"':'') + '> Austria</option>');
	document.write('<option value="AZE" ' + ((currentVal == "AZE")?'selected="true"':'') + '> Azerbaijan</option>');
	document.write('<option value="BS" ' + ((currentVal == "BS")?'selected="true"':'') + '> Bahamas</option>');
	document.write('<option value="BH" ' + ((currentVal == "BH")?'selected="true"':'') + '> Bahrain</option>');
	document.write('<option value="BGD" ' + ((currentVal == "BGD")?'selected="true"':'') + '> Bangladesh</option>');	
	document.write('<option value="BRB" ' + ((currentVal == "BRB")?'selected="true"':'') + '> Barbados</option>');
	document.write('<option value="BY" ' + ((currentVal == "BY")?'selected="true"':'') + '> Belarus</option>');
	document.write('<option value="BEL" ' + ((currentVal == "BEL")?'selected="true"':'') + '> Belgium</option>');
	document.write('<option value="BZ" ' + ((currentVal == "BZ")?'selected="true"':'') + '> Belize</option>');
	document.write('<option value="BJ" ' + ((currentVal == "BJ")?'selected="true"':'') + '> Benin</option>');
	document.write('<option value="BM" ' + ((currentVal == "BM")?'selected="true"':'') + '> Bermuda</option>');
	document.write('<option value="BT" ' + ((currentVal == "BT")?'selected="true"':'') + '> Bhutan</option>');
	document.write('<option value="BO" ' + ((currentVal == "BO")?'selected="true"':'') + '> Bolivia</option>');
	document.write('<option value="BIH" ' + ((currentVal == "BIH")?'selected="true"':'') + '> Bosnia and Herzegovina</option>');
	document.write('<option value="BW" ' + ((currentVal == "BW")?'selected="true"':'') + '> Botswana</option>');		
	document.write('<option value="BV" ' + ((currentVal == "BV")?'selected="true"':'') + '> Bouvet Island</option>');
	document.write('<option value="BR" ' + ((currentVal == "BR")?'selected="true"':'') + '> Brazil</option>');		
	document.write('<option value="IO" ' + ((currentVal == "IO")?'selected="true"':'') + '> British Indian Ocean Territory</option>');		
	document.write('<option value="BG" ' + ((currentVal == "BG")?'selected="true"':'') + '> Bulgaria</option>');
	document.write('<option value="BFA" ' + ((currentVal == "BFA")?'selected="true"':'') + '> Burkina Faso</option>');
	document.write('<option value="BI" ' + ((currentVal == "BI")?'selected="true"':'') + '> Burundi</option>');
	document.write('<option value="BN" ' + ((currentVal == "BN")?'selected="true"':'') + '> Brunei Darussalam</option>');
	document.write('<option value="KH" ' + ((currentVal == "KH")?'selected="true"':'') + '> Cambodia, Kingdom of</option>');
	document.write('<option value="CM" ' + ((currentVal == "CM")?'selected="true"':'') + '> Cameroon</option>');	
	document.write('<option value="CA" ' + ((currentVal == "CA")?'selected="true"':'') + '> Canada</option>');
	document.write('<option value="CV" ' + ((currentVal == "CV")?'selected="true"':'') + '> Cape Verde</option>');
	document.write('<option value="KY" ' + ((currentVal == "KY")?'selected="true"':'') + '> Cayman Islands</option>');	
	document.write('<option value="CF" ' + ((currentVal == "CF")?'selected="true"':'') + '> Central African Republic</option>');
	document.write('<option value="TD" ' + ((currentVal == "TD")?'selected="true"':'') + '> Chad</option>');
	document.write('<option value="CL" ' + ((currentVal == "CL")?'selected="true"':'') + '> Chile</option>');	
	document.write('<option value="CN" ' + ((currentVal == "CN")?'selected="true"':'') + '> China</option>');
	document.write('<option value="CX" ' + ((currentVal == "CX")?'selected="true"':'') + '> Christmas Island</option>');
	document.write('<option value="CC" ' + ((currentVal == "CC")?'selected="true"':'') + '> Cocos (Keeling) Islands</option>');
	document.write('<option value="CO" ' + ((currentVal == "CO")?'selected="true"':'') + '> Colombia</option>');
	document.write('<option value="KM" ' + ((currentVal == "KM")?'selected="true"':'') + '> Comoros</option>');
	document.write('<option value="CD" ' + ((currentVal == "CD")?'selected="true"':'') + '> Congo, The Democratic Republic of the</option>');
	document.write('<option value="CG" ' + ((currentVal == "CG")?'selected="true"':'') + '> Congo</option>');
	document.write('<option value="CK" ' + ((currentVal == "CK")?'selected="true"':'') + '> Cook Islands</option>');
	document.write('<option value="CR" ' + ((currentVal == "CR")?'selected="true"':'') + '> Costa Rica</option>');
	document.write('<option value="HR" ' + ((currentVal == "HR")?'selected="true"':'') + '> Croatia</option>');
	document.write('<option value="CU" ' + ((currentVal == "CU")?'selected="true"':'') + '> Cuba</option>');
	document.write('<option value="CY" ' + ((currentVal == "CY")?'selected="true"':'') + '> Cyprus</option>');
	document.write('<option value="CZ" ' + ((currentVal == "CZ")?'selected="true"':'') + '> Czech Republic</option>');
	document.write('<option value="DK" ' + ((currentVal == "DK")?'selected="true"':'') + '> Denmark</option>');	
	document.write('<option value="DJ" ' + ((currentVal == "DJ")?'selected="true"':'') + '> Djibouti</option>');
	document.write('<option value="DM" ' + ((currentVal == "DM")?'selected="true"':'') + '> Dominica</option>');
	document.write('<option value="DO" ' + ((currentVal == "DO")?'selected="true"':'') + '> Dominican Republic</option>');
	document.write('<option value="TP" ' + ((currentVal == "TP")?'selected="true"':'') + '> East Timor</option>');
	document.write('<option value="SV" ' + ((currentVal == "SV")?'selected="true"':'') + '> El Salvador</option>');	
	document.write('<option value="EC" ' + ((currentVal == "EC")?'selected="true"':'') + '> Ecuador</option>');
	document.write('<option value="EG" ' + ((currentVal == "EG")?'selected="true"':'') + '> Egypt</option>');
	document.write('<option value="ER" ' + ((currentVal == "ER")?'selected="true"':'') + '> Eritrea</option>');
	document.write('<option value="EE" ' + ((currentVal == "EE")?'selected="true"':'') + '> Estonia</option>');
	document.write('<option value="ET" ' + ((currentVal == "ET")?'selected="true"':'') + '> Ethiopia</option>');
	document.write('<option value="GQ" ' + ((currentVal == "GQ")?'selected="true"':'') + '> Equatorial Guinea</option>');
	document.write('<option value="FK" ' + ((currentVal == "FK")?'selected="true"':'') + '> Falkland Islands</option>');
	document.write('<option value="FO" ' + ((currentVal == "FO")?'selected="true"':'') + '> Faroe Islands</option>');
	document.write('<option value="FJ" ' + ((currentVal == "FJ")?'selected="true"':'') + '> Fiji</option>');	
	document.write('<option value="FI" ' + ((currentVal == "FI")?'selected="true"':'') + '> Finland</option>');
	document.write('<option value="CS" ' + ((currentVal == "CS")?'selected="true"':'') + '> Former Czechoslovakia</option>');
	document.write('<option value="SU" ' + ((currentVal == "SU")?'selected="true"':'') + '> Former USSR</option>');
	document.write('<option value="FR" ' + ((currentVal == "FR")?'selected="true"':'') + '> France</option>');
	document.write('<option value="FX" ' + ((currentVal == "FX")?'selected="true"':'') + '> France (European Territory)</option>');
	document.write('<option value="GF" ' + ((currentVal == "GF")?'selected="true"':'') + '> French Guyana</option>');
	document.write('<option value="TF" ' + ((currentVal == "TF")?'selected="true"':'') + '> French Southern Territories</option>');
	document.write('<option value="GA" ' + ((currentVal == "GA")?'selected="true"':'') + '> Gabon</option>');
	document.write('<option value="GM" ' + ((currentVal == "GM")?'selected="true"':'') + '> Gambia</option>');
	document.write('<option value="GE" ' + ((currentVal == "GE")?'selected="true"':'') + '> Georgia</option>');
	document.write('<option value="DE" ' + ((currentVal == "DE")?'selected="true"':'') + '> Germany</option>');
	document.write('<option value="GH" ' + ((currentVal == "GH")?'selected="true"':'') + '> Ghana</option>');
	document.write('<option value="GI" ' + ((currentVal == "GI")?'selected="true"':'') + '> Gibraltar</option>');	
	document.write('<option value="GB" ' + ((currentVal == "GB")?'selected="true"':'') + '> Great Britain</option>');
	document.write('<option value="GR" ' + ((currentVal == "GR")?'selected="true"':'') + '> Greece</option>');
	document.write('<option value="GL" ' + ((currentVal == "GL")?'selected="true"':'') + '> Greenland</option>');	
	document.write('<option value="GD" ' + ((currentVal == "GD")?'selected="true"':'') + '> Grenada</option>');
	document.write('<option value="GP" ' + ((currentVal == "GP")?'selected="true"':'') + '> Guadeloupe (French)</option>');
	document.write('<option value="GU" ' + ((currentVal == "GU")?'selected="true"':'') + '> Guam (USA)</option>');
	document.write('<option value="GT" ' + ((currentVal == "GT")?'selected="true"':'') + '> Guatemala</option>');
	document.write('<option value="GN" ' + ((currentVal == "GN")?'selected="true"':'') + '> Guinea</option>');
	document.write('<option value="GW" ' + ((currentVal == "GW")?'selected="true"':'') + '> Guinea Bissau</option>');
	document.write('<option value="GY" ' + ((currentVal == "GY")?'selected="true"':'') + '> Guyana</option>');
	document.write('<option value="HT" ' + ((currentVal == "HT")?'selected="true"':'') + '> Haiti</option>');	
	document.write('<option value="HM" ' + ((currentVal == "HM")?'selected="true"':'') + '> Heard and McDonald Islands</option>');
	document.write('<option value="VA" ' + ((currentVal == "VA")?'selected="true"':'') + '> Holy See (Vatican City State)</option>');
	document.write('<option value="HN" ' + ((currentVal == "HN")?'selected="true"':'') + '> Honduras</option>');
	document.write('<option value="HK" ' + ((currentVal == "HK")?'selected="true"':'') + '> Hong Kong</option>');
	document.write('<option value="HU" ' + ((currentVal == "HU")?'selected="true"':'') + '> Hungary</option>');
	document.write('<option value="IS" ' + ((currentVal == "IS")?'selected="true"':'') + '> Iceland</option>');
	document.write('<option value="IN" ' + ((currentVal == "IN")?'selected="true"':'') + '> India</option>');
	document.write('<option value="ID" ' + ((currentVal == "ID")?'selected="true"':'') + '> Indonesia</option>');
	document.write('<option value="IR" ' + ((currentVal == "IR")?'selected="true"':'') + '> Iran</option>');
	document.write('<option value="IQ" ' + ((currentVal == "IQ")?'selected="true"':'') + '> Iraq</option>');
	document.write('<option value="IE" ' + ((currentVal == "IE")?'selected="true"':'') + '> Ireland</option>');
	document.write('<option value="IL" ' + ((currentVal == "IL")?'selected="true"':'') + '> Israel</option>');
	document.write('<option value="IT" ' + ((currentVal == "IT")?'selected="true"':'') + '> Italy</option>');
	document.write('<option value="CI" ' + ((currentVal == "CI")?'selected="true"':'') + '> Ivory Coast (Cote DIvoire)</option>');
	document.write('<option value="JM" ' + ((currentVal == "JM")?'selected="true"':'') + '> Jamaica</option>');
	document.write('<option value="JA" ' + ((currentVal == "JA")?'selected="true"':'') + '> Japan</option>');
	document.write('<option value="JO" ' + ((currentVal == "JO")?'selected="true"':'') + '> Jordan</option>');
	document.write('<option value="KZ" ' + ((currentVal == "KZ")?'selected="true"':'') + '> Kazakhstan</option>');
	document.write('<option value="KE" ' + ((currentVal == "KE")?'selected="true"':'') + '> Kenya</option>');
	document.write('<option value="KI" ' + ((currentVal == "KI")?'selected="true"':'') + '> Kiribati</option>');
	document.write('<option value="KW" ' + ((currentVal == "KW")?'selected="true"':'') + '> Kuwait</option>');	
	document.write('<option value="KG" ' + ((currentVal == "KG")?'selected="true"':'') + '> Kyrgyz Republic (Kyrgyzstan)</option>');
	document.write('<option value="LA" ' + ((currentVal == "LA")?'selected="true"':'') + '> Laos</option>');
	document.write('<option value="LV" ' + ((currentVal == "LV")?'selected="true"':'') + '> Latvia</option>');
	document.write('<option value="LB" ' + ((currentVal == "LB")?'selected="true"':'') + '> Lebanon</option>');
	document.write('<option value="LS" ' + ((currentVal == "LS")?'selected="true"':'') + '> Lesotho</option>');
	document.write('<option value="LR" ' + ((currentVal == "LR")?'selected="true"':'') + '> Liberia</option>');
	document.write('<option value="LY" ' + ((currentVal == "LY")?'selected="true"':'') + '> Libya</option>');	
	document.write('<option value="LI" ' + ((currentVal == "LI")?'selected="true"':'') + '> Liechtenstein</option>');
	document.write('<option value="LT" ' + ((currentVal == "LT")?'selected="true"':'') + '> Lithuania</option>');
	document.write('<option value="LU" ' + ((currentVal == "LU")?'selected="true"':'') + '> Luxembourg</option>');
	document.write('<option value="MG" ' + ((currentVal == "MG")?'selected="true"':'') + '> Madagascar</option>');
	document.write('<option value="MO" ' + ((currentVal == "MO")?'selected="true"':'') + '> Macau</option>');
	document.write('<option value="MK" ' + ((currentVal == "MK")?'selected="true"':'') + '> Macedonia</option>');
	document.write('<option value="MW" ' + ((currentVal == "MW")?'selected="true"':'') + '> Malawi</option>');
	document.write('<option value="MY" ' + ((currentVal == "MY")?'selected="true"':'') + '> Malaysia</option>');
	document.write('<option value="MV" ' + ((currentVal == "MV")?'selected="true"':'') + '> Maldives</option>');
	document.write('<option value="ML" ' + ((currentVal == "ML")?'selected="true"':'') + '> Mali</option>');	
	document.write('<option value="MT" ' + ((currentVal == "MT")?'selected="true"':'') + '> Malta</option>');
	document.write('<option value="MH" ' + ((currentVal == "MH")?'selected="true"':'') + '> Marshall Islands</option>');
	document.write('<option value="MQ" ' + ((currentVal == "MQ")?'selected="true"':'') + '> Martinique (French)</option>');
	document.write('<option value="MR" ' + ((currentVal == "MR")?'selected="true"':'') + '> Mauritania</option>');	
	document.write('<option value="MU" ' + ((currentVal == "MU")?'selected="true"':'') + '> Mauritius</option>');
	document.write('<option value="YT" ' + ((currentVal == "YT")?'selected="true"':'') + '> Mayotte</option>');		
	document.write('<option value="MX" ' + ((currentVal == "MX")?'selected="true"':'') + '> Mexico</option>');		
	document.write('<option value="FM" ' + ((currentVal == "FM")?'selected="true"':'') + '> Micronesia</option>');
	document.write('<option value="MD" ' + ((currentVal == "MD")?'selected="true"':'') + '> Moldavia</option>');
	document.write('<option value="MC" ' + ((currentVal == "MC")?'selected="true"':'') + '> Monaco</option>');
	document.write('<option value="MN" ' + ((currentVal == "MN")?'selected="true"':'') + '> Mongolia</option>');
	document.write('<option value="MS" ' + ((currentVal == "MS")?'selected="true"':'') + '> Montserrat</option>');
	document.write('<option value="MA" ' + ((currentVal == "MA")?'selected="true"':'') + '> Morocco</option>');
	document.write('<option value="MZ" ' + ((currentVal == "MZ")?'selected="true"':'') + '> Mozambique</option>');
	document.write('<option value="MM" ' + ((currentVal == "MM")?'selected="true"':'') + '> Myanmar</option>');
	document.write('<option value="NA" ' + ((currentVal == "NA")?'selected="true"':'') + '> Namibia</option>');
	document.write('<option value="NR" ' + ((currentVal == "NR")?'selected="true"':'') + '> Nauru</option>');
	document.write('<option value="NP" ' + ((currentVal == "NP")?'selected="true"':'') + '> Nepal</option>');
	document.write('<option value="NL" ' + ((currentVal == "NL")?'selected="true"':'') + '> Netherlands</option>');
	document.write('<option value="ANT" ' + ((currentVal == "ANT")?'selected="true"':'') + '> Netherlands Antilles</option>');
	document.write('<option value="NT" ' + ((currentVal == "NT")?'selected="true"':'') + '> Neutral Zone</option>');
	document.write('<option value="NC" ' + ((currentVal == "NC")?'selected="true"':'') + '> New Caledonia (French)</option>');	
	document.write('<option value="NZ" ' + ((currentVal == "NZ")?'selected="true"':'') + '> New Zealand</option>');
	document.write('<option value="NI" ' + ((currentVal == "NI")?'selected="true"':'') + '> Nicaragua</option>');		
	document.write('<option value="NE" ' + ((currentVal == "NE")?'selected="true"':'') + '> Niger</option>');
	document.write('<option value="NG" ' + ((currentVal == "NG")?'selected="true"':'') + '> Nigeria</option>');
	document.write('<option value="NU" ' + ((currentVal == "NU")?'selected="true"':'') + '> Niue</option>');	
	document.write('<option value="NF" ' + ((currentVal == "NF")?'selected="true"':'') + '> Norfolk Island</option>');
	document.write('<option value="KP" ' + ((currentVal == "KP")?'selected="true"':'') + '> North Korea</option>');
	document.write('<option value="MP" ' + ((currentVal == "MP")?'selected="true"':'') + '> Northern Mariana Islands</option>');
	document.write('<option value="NO" ' + ((currentVal == "NO")?'selected="true"':'') + '> Norway</option>');
	document.write('<option value="OM" ' + ((currentVal == "OM")?'selected="true"':'') + '> Oman</option>');
	document.write('<option value="PSE" ' + ((currentVal == "PSE")?'selected="true"':'') + '> Palestinian Territory, Occupie</option>');
	document.write('<option value="PK" ' + ((currentVal == "PK")?'selected="true"':'') + '> Pakistan</option>');
	document.write('<option value="PW" ' + ((currentVal == "PW")?'selected="true"':'') + '> Palau</option>');
	document.write('<option value="PA" ' + ((currentVal == "PA")?'selected="true"':'') + '> Panama</option>');
	document.write('<option value="PG" ' + ((currentVal == "PG")?'selected="true"':'') + '> Papua New Guinea</option>');
	document.write('<option value="PY" ' + ((currentVal == "PY")?'selected="true"':'') + '> Paraguay</option>');
	document.write('<option value="PE" ' + ((currentVal == "PE")?'selected="true"':'') + '> Peru</option>');	
	document.write('<option value="PH" ' + ((currentVal == "PH")?'selected="true"':'') + '> Philippines</option>');			
	document.write('<option value="PN" ' + ((currentVal == "PN")?'selected="true"':'') + '> Pitcairn Island</option>');	
	document.write('<option value="PL" ' + ((currentVal == "PL")?'selected="true"':'') + '> Poland</option>');
	document.write('<option value="PF" ' + ((currentVal == "PF")?'selected="true"':'') + '> Polynesia (French)</option>');
	document.write('<option value="PT" ' + ((currentVal == "PT")?'selected="true"':'') + '> Portugal</option>');	
	document.write('<option value="PR" ' + ((currentVal == "PR")?'selected="true"':'') + '> Puerto Rico</option>');
	document.write('<option value="QA" ' + ((currentVal == "QA")?'selected="true"':'') + '> Qatar</option>');
	document.write('<option value="RE" ' + ((currentVal == "RE")?'selected="true"':'') + '> Reunion (French)</option>');
	document.write('<option value="RO" ' + ((currentVal == "RO")?'selected="true"':'') + '> Romania</option>');
	document.write('<option value="RU" ' + ((currentVal == "RU")?'selected="true"':'') + '> Russian Federation</option>');
	document.write('<option value="RW" ' + ((currentVal == "RW")?'selected="true"':'') + '> Rwanda</option>');
	document.write('<option value="SH" ' + ((currentVal == "SH")?'selected="true"':'') + '> Saint Helena</option>');
	document.write('<option value="KN" ' + ((currentVal == "KN")?'selected="true"':'') + '> Saint Kitts & Nevis Anguilla</option>');
	document.write('<option value="LC" ' + ((currentVal == "LC")?'selected="true"':'') + '> Saint Lucia</option>');
	document.write('<option value="PM" ' + ((currentVal == "PM")?'selected="true"':'') + '> Saint Pierre and Miquelon</option>');
	document.write('<option value="ST" ' + ((currentVal == "ST")?'selected="true"':'') + '> Saint Tome (Sao Tome) and Principe</option>');
	document.write('<option value="VC" ' + ((currentVal == "VC")?'selected="true"':'') + '> Saint Vincent & Grenadines</option>');
	document.write('<option value="WS" ' + ((currentVal == "WS")?'selected="true"':'') + '> Samoa</option>');
	document.write('<option value="SM" ' + ((currentVal == "SM")?'selected="true"':'') + '> San Marino</option>');
	document.write('<option value="SA" ' + ((currentVal == "SA")?'selected="true"':'') + '> Saudi Arabia</option>');	
	document.write('<option value="SN" ' + ((currentVal == "SN")?'selected="true"':'') + '> Senegal</option>');	
	document.write('<option value="SC" ' + ((currentVal == "SC")?'selected="true"':'') + '> Seychelles</option>');
	document.write('<option value="GS" ' + ((currentVal == "GS")?'selected="true"':'') + '> S. Georgia & S. Sandwich Isls.</option>');
	document.write('<option value="SL" ' + ((currentVal == "SL")?'selected="true"':'') + '> Sierra Leone</option>');
	document.write('<option value="SG" ' + ((currentVal == "SG")?'selected="true"':'') + '> Singapore</option>');
	document.write('<option value="SI" ' + ((currentVal == "SI")?'selected="true"':'') + '> Slovenia</option>');
	document.write('<option value="SK" ' + ((currentVal == "SK")?'selected="true"':'') + '> Slovak Republic</option>');
	document.write('<option value="SB" ' + ((currentVal == "SB")?'selected="true"':'') + '> Solomon Islands</option>');
	document.write('<option value="SO" ' + ((currentVal == "SO")?'selected="true"':'') + '> Somalia</option>');
	document.write('<option value="ZA" ' + ((currentVal == "ZA")?'selected="true"':'') + '> South Africa</option>');
	document.write('<option value="KR" ' + ((currentVal == "KR")?'selected="true"':'') + '> South Korea</option>');	
	document.write('<option value="ES" ' + ((currentVal == "ES")?'selected="true"':'') + '> Spain</option>');
	document.write('<option value="LK" ' + ((currentVal == "LK")?'selected="true"':'') + '> Sri Lanka</option>');
	document.write('<option value="SD" ' + ((currentVal == "SD")?'selected="true"':'') + '> Sudan</option>');
	document.write('<option value="SR" ' + ((currentVal == "SR")?'selected="true"':'') + '> Suriname</option>');
	document.write('<option value="SJ" ' + ((currentVal == "SJ")?'selected="true"':'') + '> Svalbard and Jan Mayen Islands</option>');
	document.write('<option value="SZ" ' + ((currentVal == "SZ")?'selected="true"':'') + '> Swaziland</option>');	
	document.write('<option value="SE" ' + ((currentVal == "SE")?'selected="true"':'') + '> Sweden</option>');
	document.write('<option value="CH" ' + ((currentVal == "CH")?'selected="true"':'') + '> Switzerland</option>');
	document.write('<option value="SY" ' + ((currentVal == "SY")?'selected="true"':'') + '> Syria</option>');
	document.write('<option value="TJ" ' + ((currentVal == "TJ")?'selected="true"':'') + '> Tadjikistan</option>');
	document.write('<option value="TW" ' + ((currentVal == "TW")?'selected="true"':'') + '> Taiwan</option>');
	document.write('<option value="TZ" ' + ((currentVal == "TZ")?'selected="true"':'') + '> Tanzania</option>');
	document.write('<option value="TH" ' + ((currentVal == "TH")?'selected="true"':'') + '> Thailand</option>');
	document.write('<option value="TG" ' + ((currentVal == "TG")?'selected="true"':'') + '> Togo</option>');	
	document.write('<option value="TK" ' + ((currentVal == "TK")?'selected="true"':'') + '> Tokelau</option>');
	document.write('<option value="TO" ' + ((currentVal == "TO")?'selected="true"':'') + '> Tonga</option>');
	document.write('<option value="TT" ' + ((currentVal == "TT")?'selected="true"':'') + '> Trinidad and Tobago</option>');
	document.write('<option value="TN" ' + ((currentVal == "TN")?'selected="true"':'') + '> Tunisia</option>');
	document.write('<option value="TU" ' + ((currentVal == "TU")?'selected="true"':'') + '> Turkey</option>');
	document.write('<option value="TM" ' + ((currentVal == "TM")?'selected="true"':'') + '> Turkmenistan</option>');			
	document.write('<option value="TC" ' + ((currentVal == "TC")?'selected="true"':'') + '> Turks and Caicos Islands</option>');
	document.write('<option value="TV" ' + ((currentVal == "TV")?'selected="true"':'') + '> Tuvalu</option>');
	document.write('<option value="UG" ' + ((currentVal == "UG")?'selected="true"':'') + '> Uganda</option>');
	document.write('<option value="ARE" ' + ((currentVal == "ARE")?'selected="true"':'') + '> United Arab Emirates</option>');
	document.write('<option value="UK" ' + ((currentVal == "UK")?'selected="true"':'') + '> United Kingdom</option>');
	document.write('<option value="US" ' + ((currentVal == "US")?'selected="true"':'') + '> United States</option>');
	document.write('<option value="UA" ' + ((currentVal == "UA")?'selected="true"':'') + '> Ukraine</option>');
	document.write('<option value="UY" ' + ((currentVal == "UY")?'selected="true"':'') + '> Uruguay</option>');
	document.write('<option value="UM" ' + ((currentVal == "UM")?'selected="true"':'') + '> USA Minor Outlying Islands</option>');
	document.write('<option value="UZ" ' + ((currentVal == "UZ")?'selected="true"':'') + '> Uzbekistan</option>');
	document.write('<option value="VU" ' + ((currentVal == "VU")?'selected="true"':'') + '> Vanuatu</option>');
	document.write('<option value="VE" ' + ((currentVal == "VE")?'selected="true"':'') + '> Venezuela</option>');
	document.write('<option value="VN" ' + ((currentVal == "VN")?'selected="true"':'') + '> Vietnam</option>');
	document.write('<option value="VG" ' + ((currentVal == "VG")?'selected="true"':'') + '> Virgin Islands (British)</option>');
	document.write('<option value="VI" ' + ((currentVal == "VI")?'selected="true"':'') + '> Virgin Islands (USA)</option>');
	document.write('<option value="WF" ' + ((currentVal == "WF")?'selected="true"':'') + '> Wallis and Futuna Islands</option>');
	document.write('<option value="EH" ' + ((currentVal == "EH")?'selected="true"':'') + '> Western Sahara</option>');
	document.write('<option value="YE" ' + ((currentVal == "YE")?'selected="true"':'') + '> Yemen</option>');
	document.write('<option value="YU" ' + ((currentVal == "YU")?'selected="true"':'') + '> Yugoslavia</option>');
	document.write('<option value="ZM" ' + ((currentVal == "ZM")?'selected="true"':'') + '> Zambia</option>');
	document.write('<option value="ZR" ' + ((currentVal == "ZR")?'selected="true"':'') + '> Zaire</option>');
	document.write('<option value="ZW" ' + ((currentVal == "ZW")?'selected="true"':'') + '> Zimbabwe</option>');
	document.write('</select>');
}

function gettyWriteStatesSelect(fieldName, currentVal) {	
	document.write('<select name="'+fieldName+'" id="'+fieldName+'" size="1" style="width:150px;">');
	document.write('<option value="">Select Below');
	document.write('<option value="AL" ' + ((currentVal == "AL")?'selected="true"':'') + '> AL </option>');
	document.write('<option value="AK" ' + ((currentVal == "AK")?'selected="true"':'') + '> AK </option>');
	document.write('<option value="AS" ' + ((currentVal == "AS")?'selected="true"':'') + '> AS </option>');
	document.write('<option value="AZ" ' + ((currentVal == "AZ")?'selected="true"':'') + '> AZ </option>');
	document.write('<option value="AR" ' + ((currentVal == "AR")?'selected="true"':'') + '> AR </option>');
	document.write('<option value="CA" ' + ((currentVal == "CA")?'selected="true"':'') + '> CA </option>');
	document.write('<option value="CO" ' + ((currentVal == "CO")?'selected="true"':'') + '> CO </option>');
	document.write('<option value="CT" ' + ((currentVal == "CT")?'selected="true"':'') + '> CT </option>');
	document.write('<option value="DE" ' + ((currentVal == "DE")?'selected="true"':'') + '> DE </option>');
	document.write('<option value="DC" ' + ((currentVal == "DC")?'selected="true"':'') + '> DC </option>');
	document.write('<option value="FM" ' + ((currentVal == "FM")?'selected="true"':'') + '> FM </option>');
	document.write('<option value="FL" ' + ((currentVal == "FL")?'selected="true"':'') + '> FL </option>');
	document.write('<option value="GA" ' + ((currentVal == "GA")?'selected="true"':'') + '> GA </option>');
	document.write('<option value="GU" ' + ((currentVal == "GU")?'selected="true"':'') + '> GU </option>');
	document.write('<option value="HI" ' + ((currentVal == "HI")?'selected="true"':'') + '> HI </option>');
	document.write('<option value="ID" ' + ((currentVal == "ID")?'selected="true"':'') + '> ID </option>');
	document.write('<option value="IL" ' + ((currentVal == "IL")?'selected="true"':'') + '> IL </option>');
	document.write('<option value="IN" ' + ((currentVal == "IN")?'selected="true"':'') + '> IN </option>');
	document.write('<option value="IA" ' + ((currentVal == "IA")?'selected="true"':'') + '> IA </option>');
	document.write('<option value="KS" ' + ((currentVal == "KS")?'selected="true"':'') + '> KS </option>');
	document.write('<option value="KY" ' + ((currentVal == "KY")?'selected="true"':'') + '> KY </option>');
	document.write('<option value="LA" ' + ((currentVal == "LA")?'selected="true"':'') + '> LA </option>');
	document.write('<option value="ME" ' + ((currentVal == "ME")?'selected="true"':'') + '> ME </option>');
	document.write('<option value="MH" ' + ((currentVal == "MH")?'selected="true"':'') + '> MH </option>');
	document.write('<option value="MD" ' + ((currentVal == "MD")?'selected="true"':'') + '> MD </option>');
	document.write('<option value="MA" ' + ((currentVal == "MA")?'selected="true"':'') + '> MA </option>');
	document.write('<option value="MI" ' + ((currentVal == "MI")?'selected="true"':'') + '> MI </option>');
	document.write('<option value="MN" ' + ((currentVal == "MN")?'selected="true"':'') + '> MN </option>');
	document.write('<option value="MS" ' + ((currentVal == "MS")?'selected="true"':'') + '> MS </option>');
	document.write('<option value="MO" ' + ((currentVal == "MO")?'selected="true"':'') + '> MO </option>');
	document.write('<option value="MT" ' + ((currentVal == "MT")?'selected="true"':'') + '> MT </option>');
	document.write('<option value="NE" ' + ((currentVal == "NE")?'selected="true"':'') + '> NE </option>');
	document.write('<option value="NV" ' + ((currentVal == "NV")?'selected="true"':'') + '> NV </option>');
	document.write('<option value="NH" ' + ((currentVal == "NH")?'selected="true"':'') + '> NH </option>');
	document.write('<option value="NJ" ' + ((currentVal == "NJ")?'selected="true"':'') + '> NJ </option>');
	document.write('<option value="NM" ' + ((currentVal == "NM")?'selected="true"':'') + '> NM </option>');
	document.write('<option value="NY" ' + ((currentVal == "NY")?'selected="true"':'') + '> NY </option>');
	document.write('<option value="NC" ' + ((currentVal == "NC")?'selected="true"':'') + '> NC </option>');
	document.write('<option value="ND" ' + ((currentVal == "ND")?'selected="true"':'') + '> ND </option>');
	document.write('<option value="MP" ' + ((currentVal == "MP")?'selected="true"':'') + '> MP </option>');
	document.write('<option value="OH" ' + ((currentVal == "OH")?'selected="true"':'') + '> OH </option>');
	document.write('<option value="OK" ' + ((currentVal == "OK")?'selected="true"':'') + '> OK </option>');
	document.write('<option value="OR" ' + ((currentVal == "OR")?'selected="true"':'') + '> OR </option>');
	document.write('<option value="PW" ' + ((currentVal == "PW")?'selected="true"':'') + '> PW </option>');
	document.write('<option value="PA" ' + ((currentVal == "PA")?'selected="true"':'') + '> PA </option>');
	document.write('<option value="PR" ' + ((currentVal == "PR")?'selected="true"':'') + '> PR </option>');
	document.write('<option value="RI" ' + ((currentVal == "RI")?'selected="true"':'') + '> RI </option>');
	document.write('<option value="SC" ' + ((currentVal == "SC")?'selected="true"':'') + '> SC </option>');
	document.write('<option value="SD" ' + ((currentVal == "SD")?'selected="true"':'') + '> SD </option>');
	document.write('<option value="TN" ' + ((currentVal == "TN")?'selected="true"':'') + '> TN </option>');
	document.write('<option value="TX" ' + ((currentVal == "TX")?'selected="true"':'') + '> TX </option>');
	document.write('<option value="UT" ' + ((currentVal == "UT")?'selected="true"':'') + '> UT </option>');
	document.write('<option value="VT" ' + ((currentVal == "VT")?'selected="true"':'') + '> VT </option>');
	document.write('<option value="VI" ' + ((currentVal == "VI")?'selected="true"':'') + '> VI </option>');
	document.write('<option value="VA" ' + ((currentVal == "VA")?'selected="true"':'') + '> VA </option>');
	document.write('<option value="WA" ' + ((currentVal == "WA")?'selected="true"':'') + '> WA </option>');
	document.write('<option value="WV" ' + ((currentVal == "WV")?'selected="true"':'') + '> WV </option>');
	document.write('<option value="WI" ' + ((currentVal == "WI")?'selected="true"':'') + '> WI </option>');
	document.write('<option value="WY" ' + ((currentVal == "WY")?'selected="true"':'') + '> WY </option>');
	document.write('<option value="AE0" ' + ((currentVal == "AE0")?'selected="true"':'') + '>AE0 </option>');
	document.write('<option value="AA" ' + ((currentVal == "AA")?'selected="true"':'') + '> AA </option>');
	document.write('<option value="AE1" ' + ((currentVal == "AE1")?'selected="true"':'') + '>AE1 </option>');
	document.write('<option value="AE2" ' + ((currentVal == "AE2")?'selected="true"':'') + '>AE2 </option>');
	document.write('<option value="AE3" ' + ((currentVal == "AE3")?'selected="true"':'') + '>AE3 </option>');
	document.write('<option value="AP" ' + ((currentVal == "AP")?'selected="true"':'') + '> AP </option>');
	document.write('<option value="NB" ' + ((currentVal == "NB")?'selected="true"':'') + '> NB </option>');
	document.write('<option value="NF" ' + ((currentVal == "NF")?'selected="true"':'') + '> NF </option>');
	document.write('<option value="NT" ' + ((currentVal == "NT")?'selected="true"':'') + '> NT </option>');
	document.write('<option value="NS" ' + ((currentVal == "NS")?'selected="true"':'') + '> NS </option>');
	document.write('<option value="NU" ' + ((currentVal == "NU")?'selected="true"':'') + '> NU </option>');
	document.write('<option value="ON" ' + ((currentVal == "ON")?'selected="true"':'') + '> ON </option>');
	document.write('<option value="PE" ' + ((currentVal == "PE")?'selected="true"':'') + '> PE </option>');
	document.write('<option value="QC" ' + ((currentVal == "QC")?'selected="true"':'') + '> QC </option>');
	document.write('<option value="SK" ' + ((currentVal == "SK")?'selected="true"':'') + '> SK </option>');
	document.write('<option value="YT" ' + ((currentVal == "YT")?'selected="true"':'') + '> YT </option>');
	document.write('<option value="AE" ' + ((currentVal == "AE")?'selected="true"':'') + '> AE </option>');
	document.write('<option value="BC" ' + ((currentVal == "BC")?'selected="true"':'') + '> BC </option>');
	document.write('</select>');
}
