var ALArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Birmingham')",
"('Huntsville/Decata')",
"('Mobile')",
"('Montgomery')");
var AKArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Anchorage')",
"('Fairbanks')",
"('Juneau')",
"('Ketchikan')",
"('Skagway')",
"('Valdez')");
var AZArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Chandler')",
"('Flagstaff')",
"('Gilbert')",
"('Glendale')",
"('Grand Canyon')",
"('Lake Havasu')",
"('Mesa')",
"('Phoenix')",
"('Prescott')",
"('Scottsdale')",
"('Sedona')",
"('Sun City')",
"('Tempe')",
"('Tucson')",
"('Yuma')");
var ARArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Fayetteville')",
"('Hot Springs')",
"('Little Rock')");
var CAArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Anaheim')",
"('Bakersfield')",
"('Beverly Hills')",
"('Burbank')",
"('Carlsbad')",
"('Concord')",
"('Fresno')",
"('Glendale')",
"('Hollywood')",
"('Huntington Beach')",
"('Irvine')",
"('La Jolla')",
"('Long Beach')",
"('Los Angeles')",
"('Monterey')",
"('Mountain View')",
"('Napa Valley')",
"('Newport Beach')",
"('Oakland')",
"('Oceanside')",
"('Ontario')",
"('Orange County')",
"('Palm Springs')",
"('Palo Alto')",
"('Pasadena')",
"('Riverside')",
"('Sacramento')",
"('San Bernadino')",
"('San Diego')",
"('San Francisco')",
"('San Jose')",
"('Santa Barbara')",
"('Santa Clara')",
"('Santa Monica')",
"('Santa Rosa')");
var COArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Aspen')",
"('Boulder')",
"('Colorado Springs')",
"('Denver')",
"('Durango')",
"('Lakewood')",
"('Telluride')",
"('Vail')");
var CTArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Bridgeport')",
"('Hartford')",
"('New Haven')",
"('Stamford')");
var DCArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Northern Virginia')",
"('Washington, DC')");
var DEArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('')");
var FLArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Cape Kennedy')",
"('Clearwater')",
"('Daytona Beach')",
"('Fort Lauderdale')",
"('Fort Myers')",
"('Jacksonville')",
"('Key West')",
"('Miami')",
"('Naples')",
"('Orlando')",
"('Panama City')",
"('Pensacola')",
"('Saint Augustine')",
"('Sarasota')",
"('St Petersburgh')",
"('Tallahassee')",
"('Tampa')",
"('West Palm Beach')");
var GAArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Athens')",
"('Atlanta')",
"('Augusta')",
"('Savannah')");
var HIArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Hawaii')",
"('Honolulu')",
"('Kauai')",
"('Maui')");
var IDArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Boise')",
"('Idaho Falls')",
"('Twin Falls')");
var ILArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Aurora')",
"('Bloomington')",
"('Chicago')",
"('Galesburg')",
"('Peoria')",
"('Pontiac')",
"('Rockford')",
"('Springfield')");
var INArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Fort Wayne')",
"('Indianapolis')",
"('South Bend')");
var IAArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Cedar Rapids')",
"('Davenport')",
"('Des Moines')",
"('Sioux City')",
"('Waterloo')");
var KSArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Hutchinson')",
"('Kansas City')",
"('Topeka')",
"('Wichita')");
var KYArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Bowling Green')",
"('Frankfort')",
"('Lexington')",
"('Louisville')");
var LAArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Alexandria')",
"('Baton Rouge')",
"('Lafayette')",
"('Lake Charles')",
"('New Orleans')",
"('Shreveport')");
var MEArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Augusta')",
"('Bangor')",
"('Portland')");
var MDArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Baltimore')",
"('Rockville')");
var MAArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Bedford')",
"('Boston')",
"('Cape Cod')",
"('Marthas Vineyard')",
"('Northampton')",
"('Springfield')",
"('Worcester')");
var MIArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Ann Arbor')",
"('Battle Creek')",
"('Dearborn')",
"('Detroit')",
"('Grand Rapids')",
"('Kalamazoo')",
"('Lansing')");
var MNArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Duluth')",
"('Minneapolis')",
"('St. Cloud')",
"('St. Paul')");
var MSArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Biloxi')",
"('Hattiesburg')",
"('Jackson')");
var MOArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Columbia')",
"('Kansas City')",
"('Springfield')",
"('St. Louis')");
var MTArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Butte')",
"('Billings')",
"('Great Falls')");
var NEArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Lincoln')",
"('North Platte')",
"('Omaha')");
var NVArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Carson City')",
"('Lake Tahoe')",
"('Las Vegas')",
"('Reno')");
var NHArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Concord')",
"('Manchester')");
var NJArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Atlantic City')",
"('Jersey City')",
"('Newark')",
"('North Jersey')",
"('Princeton')");
var NMArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Albuquerque')",
"('Las Cruces')",
"('Roswell')",
"('Santa Fe')");
var NYArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Albany')",
"('Bronx')",
"('Brooklyn')",
"('Buffalo')",
"('Long Island')",
"('New York City')",
"('Niagra Falls')",
"('Rochester')",
"('Syracuse')",
"('White Plains')");
var NCArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Charlotte')",
"('Greensboro')",
"('Pinehurst')",
"('Raleigh-Durham')",
"('Willmington')",
"('Winston Salem')");
var NDArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Bismarck')",
"('Fargo')");
var OHArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Akron')",
"('Canton')",
"('Cincinnati')",
"('Cleveland')",
"('Columbus')",
"('Dayton')",
"('Springfield')",
"('Toledo')",
"('Youngstown')");
var OKArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Muskogee')",
"('Oklahoma City')",
"('Tulsa')");
var ORArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Bend')",
"('Eugene')",
"('Medford')",
"('Portland')",
"('Salem')");
var PAArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Erie')",
"('Harrisburg')",
"('King of Prussia')",
"('Lancaster')",
"('Philadelphia')",
"('Pittsburgh')");
var RIArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Newport')",
"('Providence')");
var SCArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Charleston')",
"('Columbia')",
"('Greenville')",
"('Hilton Head Island')",
"('Myrtle Beach')");
var SDArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Aberdeen')",
"('Rapid City')",
"('Sioux Falls')");
var TNArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Chattanooga')",
"('Knoxville')",
"('Memphis')",
"('Nashville')");
var TXArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Amarillo')",
"('Arlington')",
"('Austin')",
"('Corpus Cristi')",
"('Dallas')",
"('El Paso')",
"('Fort Worth')",
"('Galveston')",
"('Houston')",
"('Irving')",
"('Lubbock')",
"('Plano')",
"('San Antonio')",
"('South Padre Island')",
"('Waco')");
var UTArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Ogden')",
"('Provo')",
"('Salt Lake City')");
var VTArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Burlington')",
"('Montpelier')");
var VAArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Alexandria')",
"('Charlottesville')",
"('Newport News')",
"('Norfolk')",
"('Richmond')",
"('Roanoke')",
"('Virginia Beach')",
"('Williamsburg')");
var WAArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Bellevue')",
"('Ballingham')",
"('Olympia')",
"('Seattle')",
"('Spokane')",
"('Tacoma')");
var WIArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Green Bay')",
"('Madison')",
"('Milwaukee')",
"('Oshkosh')");
var WVArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Charleston')",
"('Huntington')");
var WYArray =  new Array("('** Select city **','',true,true)",
"('----------')",
"('Casper')",
"('Cheyenne')",
"('Jackson Hole')");



function populateCountry(inForm,selected) {
var selectedArray = eval(selected + "Array");
while (selectedArray.length < inForm.requiredcity.options.length) {
inForm.requiredcity.options[(inForm.requiredcity.options.length - 1)] = null;
}
for (var i=0; i < selectedArray.length; i++) {
eval("inForm.requiredcity.options[i]=" + "new Option" + selectedArray[i]);
}
if (inForm.requiredstate.options[0].value == '') {
inForm.requiredstate.options[0]= null;
if ( navigator.appName == 'Netscape') {
if (parseInt(navigator.appVersion) < 4) {
window.history.go(0);
}
else {
if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
window.history.go(0);
            }
         }
      }
   }
}
function populateUSstate(inForm,selected) {
var stateArray =  new Array("('Select State','',true,true)",
"('Alabama')",
"('Alaska')",
"('Arizona')",
"('Arkansas')",
"('California')",
"('Colorado')",
"('Connecticut')",
"('Delaware')",
"('Columbia')",
"('Florida')",
"('Georgia')",
"('Hawaii')",
"('Idaho')",
"('Illinois')",
"('Indiana')",
"('Iowa')",
"('Kansas')",
"('Kentucky')",
"('Louisiana')",
"('Maine')",
"('Maryland')",
"('Massachusetts')",
"('Michigan')",
"('Minnesota')",
"('Mississippi')",
"('Missouri')",
"('Montana')",
"('Nebraska')",
"('Nevada')",
"('New Hampshire')",
"('New Jersey')",
"('New Mexico')",
"('New York')",
"('North Carolina')",
"('North Dakota')",
"('Ohio')",
"('Oklahoma')",
"('Oregon')",
"('Pennsylvania')",
"('Rhode Island')",
"('South Carolina')",
"('South Dakota')",
"('Tennessee')",
"('Texas')",
"('Utah')",
"('Vermont')",
"('Virginia')",
"('Washington')",
"('West Virginia')",
"('Wisconsin')",
"('Wyoming')");
if (selected == 'USA') {
for (var i=0; i < stateArray.length; i++) {
eval("inForm.requiredcity.options[i]=" + "new Option" + stateArray[i]);
}
if ( navigator.appName == 'Netscape') {
if (parseInt(navigator.appVersion) < 4) {
window.history.go(0)
}
else {
if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
window.history.go(0)
         }
      }
   }
}
else {
}
if (selected == 'Other') {
newCountry = "";
while (newCountry == ""){
newCountry=prompt ("Please enter the name of your country.", "");
}
if (newCountry != null) {
inForm.requiredcity.options[(inForm.requiredcity.options.length-1)]=new Option(newCountry,newCountry,true,true);
inForm.requiredcity.options[inForm.requiredcity.options.length]=new Option('Other, not listed','Other');
   }
}
if(inForm.requiredcity.options[0].text == 'Select country') {
inForm.requiredcity.options[0]= null;
   }
}

