<!--
// Script f14 - Populate Select Lists (04-June-2006)

// Initialise any number of Select Boxes to populate another Select List
// A single onchange event can populate multiple Select Lists.
// Each option of an initialised Select Box can populate
// any Select Box with options that can populate any Select Box
// with options that can ............

// ***** Application Notes

// ***** The HTML Code
//
// Each select list must be nested within the same form element
// The form and each select must be assigned a assigned a NAME
// and each select must include an onchange event onchange='f14FillSel(this);"
// Example:
// <form name="Form1" >
// <select id="Select1" size=1 class="TxtArea" style="width:140px;" onchange="f14FillSel(this);" >
// " >Empty</option>
// </select>
//
// <select id="Select2" size=1 class="TxtArea"  style="width:140px;" onchange="javascript:f14FillSel(this);" >
// " >Empty</option>
// </select>
// </form" >
//


// ***** Defining the Select List Options
//
// Each set of select options are defined in a dimensioned array
// Each first level field of the array contains an array specifying the options
// The second level has three fields
// field 0 = The option text                                                 (string)
// field 1 = The option value                                                (string)
// field 3 = an array defining the select lists to change
//            even fields = The id of the target select box                  (string)
//            odd fields  = The array to be used for the target select box   (the array variable name as a string)
//
// if a field is not required use ''
// Refer to the customising variables for an example.


// ***** Initialising the Script
//
// The First Select Box must be initialised by a <BODY> or window onload event
// e.g. <body onload="f14FirstSel('*ID1*','*Array*');">
// where:
// *ID1* = the id name of the first select box (string)
// *Array* = the array defining the options for the select box to be populated  ( the array variable name as a string)



// **** General
//
// All variable, function etc. names are prefixed with 'f14' to minimise conflicts with other JavaScripts
// These character are easily changed to characters of choice using global find and replace.
//
// The Functional Code(less than 1K) is best as an External JavaScript
//
// Tested with IE6 and Mozilla FireFox.
//


// ***** Customising Variables

// Each set of select options are defined in a dimensioned array
// Each first level field of the array contains an array specifying the options
// The second level has three fields
// field 0 = The option text                                                 (string)
// field 1 = The option value                                                (string)
// field 2 = an array defining the select lists to change
//            even fields = The id of the target select box                  (string)
//            odd fields  = The array to be used for the target select box   (the array variable name as a string)
//
// if a field is not required use ''

// **** Array Examples
/*
var Ary1A=new Array();
Ary1A[0]=['Select 1A',''];
Ary1A[1]=['Populate Select 2A','1231',['Select2','Ary2A','Select3','Ary3A']];
Ary1A[2]=['Populate Select 2B','1232',['Select2','Ary2B']];

var Ary1B=new Array();
Ary1B[0]=['Select 1B',''];
Ary1B[1]=['Populate Select 2B','1233',['Select2','Ary2B']];
Ary1B[2]=['Populate Select 3B','1234',['Select3','Ary3B']];
Ary1B[3]=['No Change','123',['','']];

var Ary2A=new Array();
Ary2A[0]=['Select 2A',''];
Ary2A[1]=['Populate Select 3A','1235',['Select3','Ary3A']];
Ary2A[2]=['Populate Select 3B','URL|http://www.vicsjavascripts.org.uk/',['Select3','Ary3B']];

var Ary2B=new Array();
Ary2B[0]=['Select 2B',''];
Ary2B[1]=['No Change','1236'];
Ary2B[2]=['Populate Select 1A','1237',['Select1','Ary1A']];
Ary2B[3]=['Populate Select 3A','URL|http://www.vicsjavascripts.org.uk/',['Select3','Ary3A']];

var Ary3A=new Array();
Ary3A[0]=['Select 3A',''];
Ary3A[1]=['Populate Select 1A','URL|http://www.vicsjavascripts.org.uk/',['Select1','Ary1A']];
Ary3A[2]=['Populate Select 3B','URL|http://www.vicsjavascripts.org.uk/',['Select3','Ary3B']];

var Ary3B=new Array();
Ary3B[0]=['Select 3B',''];
Ary3B[1]=['Populate Select 2A','URL|http://www.vicsjavascripts.org.uk/',['Select2','Ary2A']];
Ary3B[2]=['No Change','123',['','']];
Ary3B[3]=['Populate Select 2B','URL|http://www.vicsjavascripts.org.uk/',['Select2','Ary2B']];
*/



var CountriesArray = new Array();
	CountriesArray[0] = ['(choose one)','0',['state','emptyArray']];
	CountriesArray[1] = ['United States','US',['state','UsStatesArray']];
	CountriesArray[2] = ['Afghanistan','AF'];
	CountriesArray[3] = ['Albania','AL'];
	CountriesArray[4] = ['Algeria','DZ'];
	CountriesArray[5] = ['American Samoa','AS'];
	CountriesArray[6] = ['Andorra','AD'];
	CountriesArray[7] = ['Angola','AO'];
	CountriesArray[8] = ['Anguilla','AI'];
	CountriesArray[9] = ['Antarctica','AQ'];
	CountriesArray[10] = ['Antigua and Barbuda','AG'];
	CountriesArray[11] = ['Argentina','AR'];
	CountriesArray[12] = ['Armenia','AM'];
	CountriesArray[13] = ['Aruba','AW'];
	
	CountriesArray[14] = ['Australia','AU',['state','AUArray']];

	CountriesArray[15] = ['Austria','AT'];
	CountriesArray[16] = ['Azerbaijan','AZ'];
	CountriesArray[17] = ['Bahamas','BS'];
	CountriesArray[18] = ['Bahrain','BH'];
	CountriesArray[19] = ['Bangladesh','BD'];
	
	CountriesArray[20] = ['Barbados','BB'];
	CountriesArray[21] = ['Belarus','BY'];
	CountriesArray[22] = ['Belgium','BE'];
	CountriesArray[23] = ['Belize','BZ'];
	CountriesArray[24] = ['Benin','BJ'];
	CountriesArray[25] = ['Bermuda','BM'];
	CountriesArray[26] = ['Bhutan','BT'];
	CountriesArray[27] = ['Bolivia','BO'];
	CountriesArray[28] = ['Bosnia and Herzegovina','BA'];
	CountriesArray[29] = ['Botswana','BW'];
	
	CountriesArray[30] = ['Bouvet Island','BV'];
	CountriesArray[31] = ['Brazil','BR'];
	CountriesArray[32] = ['British Indian Ocean Territory','IO'];
	CountriesArray[33] = ['Brunei Darussalam','BN'];
	CountriesArray[34] = ['Bulgaria','BG'];
	CountriesArray[35] = ['Burkina Faso','BF'];
	CountriesArray[36] = ['Burundi','BI'];
	CountriesArray[37] = ['Cambodia','KH'];
	CountriesArray[38] = ['Cameroon','CM'];
	
	CountriesArray[39] = ['Canada','CA',['state','CanadaArray']];
	
	CountriesArray[40] = ['Cape Verde','CV'];
	CountriesArray[41] = ['Cayman Islands','KY'];
	CountriesArray[42] = ['Central African Republic','CF'];
	CountriesArray[43] = ['Chad','TD'];
	CountriesArray[44] = ['Chile','CL'];
	CountriesArray[45] = ['China','CN'];
	CountriesArray[46] = ['Christmas Island','CX'];
	CountriesArray[47] = ['Cocos (Keeling) Islands','CC'];
	CountriesArray[48] = ['Colombia','CO'];
	CountriesArray[49] = ['Comoros','KM'];
	
	CountriesArray[50] = ['Congo, Democratic Peoples Republic','CD'];
	CountriesArray[51] = ['Congo, Republic of','CG'];
	CountriesArray[52] = ['Cook Islands','CK'];
	CountriesArray[53] = ['Costa Rica','CR'];
	CountriesArray[54] = ['Cote d\'Ivoire','CI'];
	CountriesArray[55] = ['Croatia/Hrvatska','HR'];
	CountriesArray[56] = ['Cuba','CU'];
	CountriesArray[57] = ['Cyprus','CY'];
	CountriesArray[58] = ['Czech Republic','CZ'];
	CountriesArray[59] = ['Denmark','DK'];
	
	CountriesArray[60] = ['Djibouti','DJ'];
	CountriesArray[61] = ['Dominica','DM'];
	CountriesArray[62] = ['Dominican Republic','DO'];
	CountriesArray[63] = ['East Timor','TP'];
	CountriesArray[64] = ['Ecuador','EC'];
	CountriesArray[65] = ['Egypt','EG'];
	CountriesArray[66] = ['El Salvador','SV'];
	CountriesArray[67] = ['Equatorial Guinea','GQ'];
	CountriesArray[68] = ['Eritrea','ER'];
	CountriesArray[69] = ['Estonia','EE'];
	
	CountriesArray[70] = ['Ethiopia','ET'];
	CountriesArray[71] = ['Falkland Islands (Malvina)','FK'];
	CountriesArray[72] = ['Faroe Islands','FO'];
	CountriesArray[73] = ['Fiji','FJ'];
	CountriesArray[74] = ['Finland','FI'];
	CountriesArray[75] = ['France','FR'];
	CountriesArray[76] = ['French Guiana','GF'];
	CountriesArray[77] = ['French Polynesia','PF'];
	CountriesArray[78] = ['French Southern Territories','TF'];
	CountriesArray[79] = ['Gabon','GA'];
	
	CountriesArray[80] = ['Gambia','GM'];
	CountriesArray[81] = ['Georgia','GE'];
	CountriesArray[82] = ['Germany','DE'];
	CountriesArray[83] = ['Ghana','GH'];
	CountriesArray[84] = ['Gibraltar','GI'];
	CountriesArray[85] = ['Greece','GR'];
	CountriesArray[86] = ['Greenland','GL'];
	CountriesArray[87] = ['Grenada','GD'];
	CountriesArray[88] = ['Guadeloupe','GP'];
	CountriesArray[89] = ['Guam','GU'];
	
	CountriesArray[90] = ['Guatemala','GT'];
	CountriesArray[91] = ['Guinea','GN'];
	CountriesArray[92] = ['Guinea-Bissau','GW'];
	CountriesArray[93] = ['Guyana','GY'];
	CountriesArray[94] = ['Haiti','HT'];
	CountriesArray[95] = ['Heard Island','HM'];
	CountriesArray[96] = ['Holy See (City Vatican State)','VA'];
	CountriesArray[97] = ['Honduras','HN'];
	CountriesArray[98] = ['Hong Kong','HK'];
	CountriesArray[99] = ['Hungary','HU'];
	
	CountriesArray[100] = ['Iceland','IS'];
	CountriesArray[101] = ['India','IN'];
	CountriesArray[102] = ['Indonesia','ID'];
	CountriesArray[103] = ['Iran (Islamic Republic of)','IR'];
	CountriesArray[104] = ['Iraq','IQ'];
	CountriesArray[105] = ['Ireland','IE'];
	CountriesArray[106] = ['Israel','IL'];
	CountriesArray[107] = ['Italy','IT'];
	CountriesArray[108] = ['Jamaica','JM'];
	CountriesArray[109] = ['Japan','JP'];
	
	CountriesArray[110] = ['Jordan','JO'];
	CountriesArray[111] = ['Kazakhstan','KZ'];
	CountriesArray[112] = ['Kenya','KE'];
	CountriesArray[113] = ['Kiribati','KI'];
	CountriesArray[114] = ['Korea, Democratic Peoples Republic','KP'];
	CountriesArray[115] = ['Korea, Republic of','KR'];
	CountriesArray[116] = ['Kuwait','KW'];
	CountriesArray[117] = ['Kyrgyzstan','KG'];
	CountriesArray[118] = ['Lao Peoples Democratic Republic','LA'];
	CountriesArray[119] = ['Latvia','LV'];
	
	CountriesArray[120] = ['Lebanon','LB'];
	CountriesArray[121] = ['Lesotho','LS'];
	CountriesArray[122] = ['xx','xx'];
	CountriesArray[123] = ['Liberia','LR'];
	CountriesArray[124] = ['Libyan Arab Jamahiriya','LY'];
	CountriesArray[125] = ['Liechtenstein','LI'];
	CountriesArray[126] = ['Lithuania','LT'];
	CountriesArray[127] = ['Luxembourg','LU'];
	CountriesArray[128] = ['Macau','MO'];
	CountriesArray[129] = ['Macedonia','MK'];
	
	CountriesArray[130] = ['Madagascar','MG'];
	CountriesArray[131] = ['Malawi','MW'];
	CountriesArray[132] = ['Malaysia','MY'];
	CountriesArray[133] = ['Maldives','MV'];
	CountriesArray[134] = ['Mali','ML'];
	CountriesArray[135] = ['Malta','MT'];
	CountriesArray[136] = ['Marshall Islands','MH'];
	CountriesArray[137] = ['Martinique','MQ'];
	CountriesArray[138] = ['Mauritania','MR'];
	CountriesArray[139] = ['Mauritius','MU'];
	
	CountriesArray[140] = ['Mayotte','YT'];
	CountriesArray[141] = ['Mexico','MX'];
	CountriesArray[142] = ['Micronesia, Federal State of','FM'];
	CountriesArray[143] = ['Moldova, Republic of','MD'];
	CountriesArray[144] = ['Monaco','MC'];
	CountriesArray[145] = ['Mongolia','MN'];
	CountriesArray[146] = ['Montserrat','MS'];
	CountriesArray[147] = ['Morocco','MA'];
	CountriesArray[148] = ['Mozambique','MZ'];
	CountriesArray[149] = ['Myanmar','MM'];
	
	CountriesArray[150] = ['Namibia','NA'];
	CountriesArray[151] = ['Nauru','NR'];
	CountriesArray[152] = ['Nepal','NP'];
	CountriesArray[153] = ['Netherlands','NL'];
	CountriesArray[154] = ['Netherlands Antilles','AN'];
	CountriesArray[155] = ['New Caledonia','NC'];
	CountriesArray[156] = ['New Zealand','NZ'];
	CountriesArray[157] = ['Nicaragua','NI'];
	CountriesArray[158] = ['Niger','NE'];
	CountriesArray[159] = ['Nigeria','NG'];
	
	CountriesArray[160] = ['Niue','NU'];
	CountriesArray[161] = ['Norfolk Island','NF'];
	CountriesArray[162] = ['Northern Mariana Islands','MP'];
	CountriesArray[163] = ['Norway','NO'];
	CountriesArray[164] = ['Oman','OM'];
	CountriesArray[165] = ['Pakistan','PK'];
	CountriesArray[166] = ['Palau','PW'];
	CountriesArray[167] = ['Panama','PA'];
	CountriesArray[168] = ['Papua New Guinea','PG'];
	CountriesArray[169] = ['Paraguay','PY'];
	
	CountriesArray[170] = ['Peru','PE'];
	CountriesArray[171] = ['Philippines','PH'];
	CountriesArray[172] = ['Pitcairn Island','PN'];
	CountriesArray[173] = ['Poland','PL'];
	CountriesArray[174] = ['Portugal','PT'];
	CountriesArray[175] = ['Puerto Rico','PR'];
	CountriesArray[176] = ['Qatar','QA'];
	CountriesArray[177] = ['Reunion Island','RE'];
	CountriesArray[178] = ['Romania','RO'];
	CountriesArray[179] = ['Russian Federation','RU'];
	
	CountriesArray[180] = ['Rwanda','RW'];
	CountriesArray[181] = ['Saint Kitts and Nevis','KN'];
	CountriesArray[182] = ['Saint Lucia','LC'];
	CountriesArray[183] = ['Saint Vincent and the Grenadines','VC'];
	CountriesArray[184] = ['Samoa','WS'];
	CountriesArray[185] = ['San Marino','SM'];
	CountriesArray[186] = ['Sao Tome and Principe','ST'];
	CountriesArray[187] = ['Saudi Arabia','SA'];
	CountriesArray[188] = ['Senegal','SN'];
	CountriesArray[189] = ['Seychelles','SC'];
	
	CountriesArray[190] = ['Sierra Leone','SL'];
	CountriesArray[191] = ['Singapore','SG'];
	CountriesArray[192] = ['Slovak Republic','SK'];
	CountriesArray[193] = ['Slovenia','SI'];
	CountriesArray[194] = ['Solomon Islands','SB'];
	CountriesArray[195] = ['Somalia','SO'];
	CountriesArray[196] = ['South Africa','ZA'];
	CountriesArray[197] = ['South Georgia','GS'];
	CountriesArray[198] = ['Spain','ES'];
	CountriesArray[199] = ['Sri Lanka','LK'];
	
	CountriesArray[200] = ['St. Helena','SH'];
	CountriesArray[201] = ['St. Pierre and Miquelon','PM'];
	CountriesArray[202] = ['Sudan','SD'];
	CountriesArray[203] = ['Suriname','SR'];
	CountriesArray[204] = ['Svalbard and Jan Mayen Islands','SJ'];
	CountriesArray[205] = ['Swaziland','SZ'];
	CountriesArray[206] = ['Sweden','SE'];
	CountriesArray[207] = ['Switzerland','CH'];
	CountriesArray[208] = ['Syrian Arab Republic','SV'];
	CountriesArray[209] = ['Taiwan','TW'];
	
	CountriesArray[210] = ['Tajikistan','TJ'];
	CountriesArray[211] = ['Tanzania','TZ'];
	CountriesArray[212] = ['Thailand','TH'];
	CountriesArray[213] = ['Togo','TG'];
	CountriesArray[214] = ['Tokelau','TK'];
	CountriesArray[215] = ['Tonga','TO'];
	CountriesArray[216] = ['Trinidad and Tobago','TT'];
	CountriesArray[217] = ['Tunisia','TN'];
	CountriesArray[218] = ['Turkey','TR'];
	CountriesArray[219] = ['Turkmenistan','TM'];
	
	CountriesArray[220] = ['Turks and Ciacos Islands','TC'];
	CountriesArray[221] = ['Tuvalu','TV'];
	CountriesArray[222] = ['US Minor Outlying Islands','UM'];
	CountriesArray[223] = ['Uganda','UG'];
	CountriesArray[224] = ['Ukraine','UA'];
	CountriesArray[225] = ['United Arab Emirates','AE'];
	CountriesArray[226] = ['United Kingdom (GB)','GB',['state','UKArray']];
	CountriesArray[227] = ['Uruguay','UV'];
	CountriesArray[228] = ['Uzbekistan','UZ'];
	CountriesArray[229] = ['Vanuatu','VU'];
	
	CountriesArray[230] = ['Venezuela','VE'];
	CountriesArray[231] = ['Vietnam','VN'];
	CountriesArray[232] = ['Virgin Islands (British)','VG'];
	CountriesArray[233] = ['Virgin Islands (USA)','VI'];
	CountriesArray[234] = ['Wallis and Futuna Islands','WF'];
	CountriesArray[235] = ['Western Sahara','WH'];
	CountriesArray[236] = ['Western Samoa','WS'];
	CountriesArray[237] = ['Yemen','YE'];
	CountriesArray[238] = ['Yugoslavia','YU'];
	CountriesArray[239] = ['Zambia','ZM'];
	
/*CountriesArray.splice(122, 1);*/
	
	
var UKArray = new Array();
	UKArray[0] = ['(choose one)','0'];
	UKArray[1] = ['Aberdeenshire','Aberdeenshire'];
	UKArray[2] = ['Angus','Angus'];
	UKArray[3] = ['Argyll','Argyll'];
	UKArray[4] = ['Avon','Avon'];
	UKArray[5] = ['Ayrshire','Ayrshire'];
	UKArray[6] = ['Banffshire','Banffshire'];
	UKArray[7] = ['Bedfordshire','Beds.'];
	UKArray[8] = ['Berkshire','Berks.'];
	UKArray[9] = ['Berwickshire','Berwickshire'];
	
	UKArray[10] = ['Buckinghamshire','Bucks.'];
	UKArray[11] = ['Caithness','Caithness'];
	UKArray[12] = ['Cambridgeshire','Cambs.'];
	UKArray[13] = ['Channel Islands','Channel Islands'];
	UKArray[14] = ['Cheshire','Ches.'];
	UKArray[15] = ['Clackmannanshire','Clackmannanshire'];
	UKArray[16] = ['Cleveland','Cleveland'];
	UKArray[17] = ['Clwyd','Clwyd'];
	UKArray[18] = ['Cornwall','Cornwall'];
	UKArray[19] = ['County Antrim','Co Antrim'];
	
	UKArray[20] = ['County Armagh','Co Armagh'];
	UKArray[21] = ['County Down','Co Down'];
	UKArray[22] = ['County Fermanagh','Co Fermanagh'];
	UKArray[23] = ['County Londonderry','Co Londonderry'];
	UKArray[24] = ['County Tyrone','Co Tyrone'];
	UKArray[25] = ['Cumberland','Cumb.'];
	UKArray[26] = ['Cumbria','Cumbria'];
	UKArray[27] = ['Derbyshire','Derbys.'];
	UKArray[28] = ['Devon','Devon'];
	UKArray[29] = ['Dorset','Dorset'];
	
	UKArray[30] = ['Dumfriesshire','Dumfriesshire'];
	UKArray[31] = ['Dunbartonshire','Dunbartonshire'];
	UKArray[32] = ['Durham','Durham'];
	UKArray[33] = ['Dyfed','Dyfed'];
	UKArray[34] = ['East Lothian','E Lothian'];
	UKArray[35] = ['East Sussex','E Sussex'];
	UKArray[36] = ['Essex','Essex'];
	UKArray[37] = ['Fife','Fife'];
	UKArray[38] = ['Gloucstershire','Glouces.'];
	UKArray[39] = ['Greater London','London'];
	
	UKArray[40] = ['Gwent','Gwent'];
	UKArray[41] = ['Gwynedd','Gwynedd'];
	UKArray[42] = ['Hantshire','Hamps.'];
	UKArray[43] = ['Herefordshire','Hereford'];
	UKArray[44] = ['Hertsfordshire','Herts.'];
	UKArray[45] = ['Hunts.','Huntingdonshire'];
	UKArray[46] = ['Inverness-shire','Inverness-shire'];
	UKArray[47] = ['Ireland','Ireland'];
	UKArray[48] = ['Isle of Arran','Isle of Arran'];
	UKArray[49] = ['Isle of Barra','Isle of Barra'];
	
	UKArray[50] = ['Isle of Benbecula','Isle of Benbecula'];
	UKArray[51] = ['Isle of Bute','Isle of Bute'];
	UKArray[52] = ['Isle of Canna','Isle of Canna'];
	UKArray[53] = ['Isle of Coll','Isle of Coll'];
	UKArray[54] = ['Isle of Colonsay','Isle of Colonsay'];
	UKArray[55] = ['Isle of Cumbrae','Isle of Cumbrae'];
	UKArray[56] = ['Isle of Eigg','Isle of Eigg'];
	UKArray[57] = ['Isle of Gigha','Isle of Gigha'];
	UKArray[58] = ['Isle of Harris','Isle of Harris'];
	UKArray[59] = ['Isle of Iona','Isle of Iona'];
	
	UKArray[60] = ['Isle of Islay','Isle of Islay'];
	UKArray[61] = ['Isle of Jura','Isle of Jura'];
	UKArray[62] = ['Isle of Lewis','Isle of Lewis'];
	UKArray[63] = ['Isle of Mull','Isle of Mull'];
	UKArray[64] = ['Isle of North Uist','Isle of North Uist'];
	UKArray[65] = ['Isle of Rum','Isle of Rum'];
	UKArray[66] = ['Isle of Scalpay','Isle of Scalpay'];
	UKArray[67] = ['Isle of Skye','Isle of Skye'];
	UKArray[68] = ['Isle of South Uist','Isle of South Uist'];
	UKArray[69] = ['Isle of Tiree','Isle of Tiree'];
	
	UKArray[70] = ['Isle of Wight','Isle of Wight'];
	UKArray[71] = ['Kent','Kent'];
	UKArray[72] = ['Kincardineshire','Kincardineshire'];
	UKArray[73] = ['Kinross-shire','Kinross-shire'];
	UKArray[74] = ['Kirkcudbrightshire','Kirkcudbrightshire'];
	UKArray[75] = ['Lanarkshire','Lanarkshire'];
	UKArray[76] = ['Lancsashire','Lancs.'];
	UKArray[77] = ['Leicstershire','Leices.'];
	UKArray[78] = ['Lincsolnshire','Lincs.'];
	UKArray[79] = ['London','London'];
	
	UKArray[80] = ['Merseyside','Merseyside'];
	UKArray[81] = ['Mid Glamorgan','M Glam'];
	UKArray[82] = ['Mid Lothian','Mid Lothian'];
	UKArray[83] = ['Middxlesex','Middx.'];
	UKArray[84] = ['Morayshire','Morayshire'];
	UKArray[85] = ['Nairnshire','Nairnshire'];
	UKArray[86] = ['Norfolk','Norfolk'];
	UKArray[87] = ['North Humberside','N Humberside'];
	UKArray[88] = ['North Yorkshire','N Yorkshire'];
	UKArray[89] = ['Northamptonshire','Northants.'];
	
	UKArray[90] = ['Northumberland','Northumberland'];
	UKArray[91] = ['Nottinghamshire','Notts.'];
	UKArray[92] = ['Oxfordshire','Oxon.'];
	UKArray[93] = ['Peeblesshire','Peeblesshire'];
	UKArray[94] = ['Perthshire','Perthshire'];
	UKArray[95] = ['Powys','Powys'];
	UKArray[96] = ['Renfrewshire','Renfrewshire'];
	UKArray[97] = ['Ross-shire','Ross-shire'];
	UKArray[98] = ['Roxburghshire','Roxburghshire'];
	UKArray[99] = ['Rutland','Rutland'];
	
	UKArray[100] = ['Selkirkshire','Selkirkshire'];
	UKArray[101] = ['Shropshire','Shrops'];
	UKArray[102] = ['Somerset','Somt.'];
	UKArray[103] = ['South Glamorgan','S Glam'];
	UKArray[104] = ['South Humberside','S Humberside'];
	UKArray[105] = ['South Yorkshire','S Yorkshire'];
	UKArray[106] = ['Staffordshire','Staffs.'];
	UKArray[107] = ['Stirlingshire','Stirlingshire'];
	UKArray[108] = ['Suffolk','Suffolk'];
	UKArray[109] = ['Surrey','Surrey'];
	
	UKArray[110] = ['Sutherland','Sutherland'];
	UKArray[111] = ['Tyne & Wear','Tyne and Wear'];
	UKArray[112] = ['Wales','Wales'];
	UKArray[113] = ['Warwickshire','Warks'];
	UKArray[114] = ['West Glam','W Glamorgan'];
	UKArray[115] = ['West Lothian','W Lothian'];
	UKArray[116] = ['West Midlands','W Midlands'];
	UKArray[117] = ['West Sussex','W Sussex'];
	UKArray[118] = ['West Yorkshire','W Yorkshire'];
	UKArray[119] = ['Wigtownshire','Wigtownshire'];
	
	UKArray[120] = ['Wiltshire','Wilts'];
	UKArray[121] = ['Worcestershire','Worcs'];

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


var CanadaArray = new Array();
	CanadaArray[0] = ['(choose one)','0'];
	CanadaArray[1] = ['Alberta','AB'];
	CanadaArray[2] = ['British Columbia','BC'];
	CanadaArray[3] = ['Manitoba	','MB'];
	CanadaArray[4] = ['New Brunswick','NB'];	
	CanadaArray[5] = ['Newfoundland','NF'];
	CanadaArray[6] = ['Northwest Territories','NT'];
	CanadaArray[7] = ['Nova Scotia	','NS'];
	CanadaArray[8] = ['Ontario','ON'];
	CanadaArray[9] = ['Nunavut','NU'];
	CanadaArray[10] = ['Prince Edward Island','PE'];
	CanadaArray[11] = ['Quebec','QC'];
	CanadaArray[12] = ['Saskatchewan','SK'];
	CanadaArray[13] = ['Yukon','YT'];


var AUArray = new Array();
	AUArray[0] = ['(choose one)','0'];
	AUArray[1] = ['Australian Capital Territory','ACT'];
	AUArray[2] = ['New South Wales','NSW'];
	AUArray[3] = ['Northern Territory','NT'];
	AUArray[4] = ['Queensland','QLD'];	
	AUArray[5] = ['South Australia','SA'];
	AUArray[6] = ['Tasmania','TAS'];
	AUArray[7] = ['Victoria','VIC'];
	AUArray[8] = ['Western Australia','WA'];

var emptyArray = new Array();
	emptyArray[0] = ['(choose one)','0'];




function ClearStates(dropdown_id){
	//http://mysite.webroot.com/forms/NAODWRFY09
	var state_dropdown = document.getElementById(dropdown_id);
	var numberOfOptions = state_dropdown.options.length;
	
     for (var i=0; i<numberOfOptions; i++)
	 {
         state_dropdown.remove(0);
     }
	return;	
}


function f14FirstSel(f14frmn,f14seln,ary){		
 var f14sel=document[f14frmn][f14seln];
 var f14sary=window[ary];
 for (f141=0;f141<f14sary.length;f141++){
  f14sel.options[f141]=new Option(f14sary[f141][0],f14sary[f141][1],true,true);
  f14sel.options[f141].ary=f14sary[f141][2]
 }
 f14sel.selectedIndex=0;
}

function f14FillSel(obj){
  	
 ClearStates('state'); // clear out drop-down values to make sure nothing is appended	
 
 var f14ary=obj.options[obj.selectedIndex].ary
 if (!f14ary){ return; }
 
 for (var f140=0;f140<f14ary.length;f140+=2){
  var f14sel=obj.form[f14ary[f140]];
  var f14sary=window[f14ary[f140+1]];
  if (f14sary){
   for (f141=0;f141<f14sary.length;f141++){
    f14sel.options[f141]=new Option(f14sary[f141][0],f14sary[f141][1],true,true);
    f14sel.options[f141].ary=f14sary[f141][2]
   }
   f14sel.selectedIndex=0;
  }
 }
}

function f14Link(f14obj){
 if (f14obj.value.split('|')[0].toUpperCase()=='URL'){
  window.top.location=f14obj.value.split('|')[1];
 }
}