var country_states = new Array ("38","121","Alberta","38","122","British","38","123","Manitoba","38","124","New Brunswick","38","125","Newfoundland","38","126","Northwest Territories / Nunavut","38","127","Nova Scotia","38","128","Ontario","38","129","Prince Edward Island","38","130","Quebec","38","131","Saskatchewan","38","132","Yukon","237","3997","Barking and Dagenham","237","3998","Barnet","237","3999","Barnsley","237","4000","Bath and North East Somerset","237","4001","Bedfordshire","237","4002","Bexley","237","4003","Birmingham","237","4004","Blackburn with Darwen","237","4005","Blackpool","237","4006","Bolton","237","4007","Bournemouth","237","4008","Bracknell Forest","237","4009","Bradford","237","4010","Brent","237","4011","Brighton and Hove","237","4012","Bromley","237","4013","Buckinghamshire","237","4014","Bury","237","4015","Calderdale","237","4016","Cambridgeshire","237","4017","Camden","237","4018","Cheshire","237","4019","City of Bristol","237","4020","City of Kingston upon Hull","237","4021","City of London","237","4022","Cornwall","237","4023","Coventry","237","4024","Croydon","237","4025","Cumbria","237","4026","Darlington","237","4027","Derby","237","4028","Derbyshire","237","4029","Devon","237","4030","Doncaster","237","4031","Dorset","237","4032","Dudley","237","4033","Durham","237","4034","Ealing","237","4035","East Riding of Yorkshire","237","4036","East Sussex","237","4037","Enfield","237","4038","Essex","237","4039","Gateshead","237","4040","Gloucestershire","237","4041","Greenwich","237","4042","Hackney","237","4043","Halton","237","4044","Hammersmith and Fulham","237","4045","Hampshire","237","4046","Haringey","237","4047","Harrow","237","4048","Hartlepool","237","4049","Havering","237","4050","Herefordshire","237","4051","Hertfordshire","237","4052","Hillingdon","237","4053","Hounslow","237","4054","Isle of Wight","237","4055","Islington","237","4056","Kensington and Chelsea","237","4057","Kent","237","4058","Kingston upon Thames","237","4059","Kirklees","237","4060","Knowsley","237","4061","Lambeth","237","4062","Lancashire","237","4063","Leeds","237","4064","Leicester","237","4065","Leicestershire","237","4066","Lewisham","237","4067","Lincolnshire","237","4068","Liverpool","237","4069","Luton","237","4070","Manchester","237","4071","Medway","237","4072","Merton","237","4073","Middlesbrough","237","4074","Milton Keynes","237","4075","Newcastle upon Tyne","237","4076","Newham","237","4077","Norfolk","237","4078","North East Lincolnshire","237","4079","North Lincolnshire","237","4080","North Somerset","237","4081","North Tyneside","237","4082","North Yorkshire","237","4083","Northamptonshire","237","4084","Northumberland","237","4085","Nottingham","237","4086","Nottinghamshire","237","4087","Oldham","237","4088","Oxfordshire","237","4089","Peterborough","237","4090","Plymouth","237","4091","Poole","237","4092","Portsmouth","237","4093","Reading","237","4094","Redbridge","237","4095","Redcar and Cleveland","237","4096","Richmond upon Thames","237","4097","Rochdale","237","4098","Rotherham","237","4099","Rutland","237","4100","Salford","237","4101","Sandwell","237","4102","Sefton","237","4103","Sheffield","237","4104","Shropshire","237","4105","Slough","237","4106","Solihull","237","4107","Somerset","237","4108","South Gloucestershire","237","4109","South Tyneside","237","4110","Southampton","237","4111","Southend-on-Sea","237","4112","Southwark","237","4113","St. Helens","237","4114","Staffordshire","237","4115","Stockport","237","4116","Stockton-on-Tees","237","4117","Stoke-on-Trent","237","4118","Suffolk","237","4119","Sunderland","237","4120","Surrey","237","4121","Sutton","237","4122","Swindon","237","4123","Tameside","237","4124","Telford and Wrekin","237","4125","Thurrock","237","4126","Torbay","237","4127","Tower Hamlets","237","4128","Trafford","237","4129","Wakefield","237","4130","Walsall","237","4131","Waltham Forest","237","4132","Wandsworth","237","4133","Warrington","237","4134","Warwickshire","237","4135","West Berkshire","237","4136","West Sussex","237","4137","Westminster","237","4138","Wigan","237","4139","Wiltshire","237","4140","Windsor and Maidenhead","237","4141","Wirral","237","4142","Wokingham","237","4143","Wolverhampton","237","4144","Worcestershire","237","4145","York","239","2","Alabama","239","3","Alaska","239","4","Arizona","239","5","Arkansas","239","6","California","239","7","Colorado","239","8","Connecticut","239","9","DC","239","10","Delaware","239","11","Florida","239","12","Georgia","239","13","Hawaii","239","14","Idaho","239","15","Illinois","239","16","Indiana","239","17","Iowa","239","18","Kansas","239","19","Kentucky","239","20","Louisiana","239","21","Maine","239","22","Maryland","239","23","Massachusettes","239","24","Michigan","239","25","Minnesota","239","26","Mississippi","239","27","Missouri","239","28","Montana","239","29","Nebraska","239","30","Nevada","239","31","New Hampshire","239","32","New Jersey","239","33","New Mexico","239","34","New York","239","35","North Carolina","239","36","North Dakota","239","37","Ohio","239","38","Oklahoma","239","39","Oregon","239","40","Pennsylvania","239","41","Rhode Island","239","42","South Carolina","239","43","South Dakota","239","44","Tennessee","239","45","Texas","239","46","Utah","239","47","Vermont","239","48","Virginia","239","49","Washington","239","50","West Virginia","239","51","Wisconsin","239","52","Wyoming","253","4392","Specify"); function onStateChange(country, model) { var countryCode = country.options[country.selectedIndex].value; var i, j; j = model.options.length = 0; model.options.selectedIndex = 0; for (i = 0; i < country_states.length / 3; i++) { if (country_states[i*3] == countryCode) { model.options.length = j+1; model.options[j].value = country_states[i*3+1]; model.options[j].text = country_states[i*3+2]; j += 1; } } return; }