function localauthority (name, flas) {
	this.name = name
	this.flas = flas
}

localauths = new Array(356)
localauths[0] = new localauthority("Adur", "E3831")
localauths[1] = new localauthority("Allerdale", "E0931")
localauths[2] = new localauthority("Amber Valley", "E1031")
localauths[3] = new localauthority("Arun", "E3832")
localauths[4] = new localauthority("Ashfield", "E3031")
localauths[5] = new localauthority("Ashford", "E2231")
localauths[6] = new localauthority("Aylesbury Vale", "E0431")
localauths[7] = new localauthority("Babergh", "E3531")
localauths[8] = new localauthority("Barking & Dagenham", "E5030")
localauths[9] = new localauthority("Barnet", "E5031")
localauths[10] = new localauthority("Barnsley", "E4401")
localauths[11] = new localauthority("Barrow-in-Furness", "E0932")
localauths[12] = new localauthority("Basildon", "E1531")
localauths[13] = new localauthority("Basingstoke & Deane", "E1731")
localauths[14] = new localauthority("Bassetlaw", "E3032")
localauths[15] = new localauthority("Bath & North East Somerset", "E0101")
localauths[16] = new localauthority("Bedford", "E0202")
localauths[17] = new localauthority("Bexley", "E5032")
localauths[18] = new localauthority("Birmingham", "E4601")
localauths[19] = new localauthority("Blaby", "E2431")
localauths[20] = new localauthority("Blackburn with Darwen", "E2301")
localauths[21] = new localauthority("Blackpool", "E2302")
localauths[22] = new localauthority("Bolsover", "E1032")
localauths[23] = new localauthority("Bolton", "E4201")
localauths[24] = new localauthority("Boston", "E2531")
localauths[25] = new localauthority("Bournemouth", "E1202")
localauths[26] = new localauthority("Bracknell Forest", "E0301")
localauths[27] = new localauthority("Bradford", "E4701")
localauths[28] = new localauthority("Braintree", "E1532")
localauths[29] = new localauthority("Breckland", "E2631")
localauths[30] = new localauthority("Brent", "E5033")
localauths[31] = new localauthority("Brentwood", "E1533")
localauths[32] = new localauthority("Brighton & Hove", "E1401")
localauths[33] = new localauthority("Bristol", "E0102")
localauths[34] = new localauthority("Broadland", "E2632")
localauths[35] = new localauthority("Bromley", "E5034")
localauths[36] = new localauthority("Bromsgrove", "E1831")
localauths[37] = new localauthority("Broxbourne", "E1931")
localauths[38] = new localauthority("Broxtowe", "E3033")
localauths[39] = new localauthority("Buckinghamshire", "E0421")
localauths[40] = new localauthority("Burnley", "E2333")
localauths[41] = new localauthority("Bury", "E4202")
localauths[42] = new localauthority("Calderdale", "E4702")
localauths[43] = new localauthority("Cambridge", "E0531")
localauths[44] = new localauthority("Cambridgeshire", "E0521")
localauths[45] = new localauthority("Camden", "E5011")
localauths[46] = new localauthority("Cannock Chase", "E3431")
localauths[47] = new localauthority("Canterbury", "E2232")
localauths[48] = new localauthority("Carlisle", "E0933")
localauths[49] = new localauthority("Castle Point", "E1534")
localauths[50] = new localauthority("Central Bedfordshire", "E0203")
localauths[51] = new localauthority("Charnwood", "E2432")
localauths[52] = new localauthority("Chelmsford", "E1535")
localauths[53] = new localauthority("Cheltenham", "E1631")
localauths[54] = new localauthority("Cherwell", "E3131")
localauths[55] = new localauthority("Cheshire East", "E0603")
localauths[56] = new localauthority("Cheshire West and Chester", "E0604")
localauths[57] = new localauthority("Chesterfield", "E1033")
localauths[58] = new localauthority("Chichester", "E3833")
localauths[59] = new localauthority("Chiltern", "E0432")
localauths[60] = new localauthority("Chorley", "E2334")
localauths[61] = new localauthority("Christchurch", "E1232")
localauths[62] = new localauthority("Colchester", "E1536")
localauths[63] = new localauthority("Copeland", "E0934")
localauths[64] = new localauthority("Corby", "E2831")
localauths[65] = new localauthority("Cornwall", "E0801")
localauths[66] = new localauthority("Corporation of London", "E5010")
localauths[67] = new localauthority("Cotswold", "E1632")
localauths[68] = new localauthority("Coventry", "E4602")
localauths[69] = new localauthority("Craven", "E2731")
localauths[70] = new localauthority("Crawley", "E3834")
localauths[71] = new localauthority("Croydon", "E5035")
localauths[72] = new localauthority("Cumbria", "E0920")
localauths[73] = new localauthority("Dacorum", "E1932")
localauths[74] = new localauthority("Darlington", "E1301")
localauths[75] = new localauthority("Dartford", "E2233")
localauths[76] = new localauthority("Daventry", "E2832")
localauths[77] = new localauthority("Derby", "E1001")
localauths[78] = new localauthority("Derbyshire", "E1021")
localauths[79] = new localauthority("Derbyshire Dales", "E1035")
localauths[80] = new localauthority("Devon", "E1121")
localauths[81] = new localauthority("Doncaster", "E4402")
localauths[82] = new localauthority("Dorset", "E1221")
localauths[83] = new localauthority("Dover", "E2234")
localauths[84] = new localauthority("Dudley", "E4603")
localauths[85] = new localauthority("Durham", "E1302")
localauths[86] = new localauthority("Ealing", "E5036")
localauths[87] = new localauthority("East Cambridgeshire", "E0532")
localauths[88] = new localauthority("East Devon", "E1131")
localauths[89] = new localauthority("East Dorset", "E1233")
localauths[90] = new localauthority("East Hampshire", "E1732")
localauths[91] = new localauthority("East Hertfordshire", "E1933")
localauths[92] = new localauthority("East Lindsey", "E2532")
localauths[93] = new localauthority("East Northamptonshire", "E2833")
localauths[94] = new localauthority("East Riding of Yorkshire", "E2001")
localauths[95] = new localauthority("East Staffordshire", "E3432")
localauths[96] = new localauthority("East Sussex", "E1421")
localauths[97] = new localauthority("Eastbourne", "E1432")
localauths[98] = new localauthority("Eastleigh", "E1733")
localauths[99] = new localauthority("Eden", "E0935")
localauths[100] = new localauthority("Elmbridge", "E3631")
localauths[101] = new localauthority("Enfield", "E5037")
localauths[102] = new localauthority("Epping Forest", "E1537")
localauths[103] = new localauthority("Epsom & Ewell", "E3632")
localauths[104] = new localauthority("Erewash", "E1036")
localauths[105] = new localauthority("Essex", "E1521")
localauths[106] = new localauthority("Exeter", "E1132")
localauths[107] = new localauthority("Fareham", "E1734")
localauths[108] = new localauthority("Fenland", "E0533")
localauths[109] = new localauthority("Forest Heath", "E3532")
localauths[110] = new localauthority("Forest of Dean", "E1633")
localauths[111] = new localauthority("Fylde", "E2335")
localauths[112] = new localauthority("Gateshead", "E4501")
localauths[113] = new localauthority("Gedling", "E3034")
localauths[114] = new localauthority("Gloucester", "E1634")
localauths[115] = new localauthority("Gloucestershire", "E1620")
localauths[116] = new localauthority("Gosport", "E1735")
localauths[117] = new localauthority("Gravesham", "E2236")
localauths[118] = new localauthority("Great Yarmouth", "E2633")
localauths[119] = new localauthority("Greenwich", "E5012")
localauths[120] = new localauthority("Guildford", "E3633")
localauths[121] = new localauthority("Hackney", "E5013")
localauths[122] = new localauthority("Halton", "E0601")
localauths[123] = new localauthority("Hambleton", "E2732")
localauths[124] = new localauthority("Hammersmith & Fulham", "E5014")
localauths[125] = new localauthority("Hampshire", "E1721")
localauths[126] = new localauthority("Harborough", "E2433")
localauths[127] = new localauthority("Haringey", "E5038")
localauths[128] = new localauthority("Harlow", "E1538")
localauths[129] = new localauthority("Harrogate", "E2753")
localauths[130] = new localauthority("Harrow", "E5039")
localauths[131] = new localauthority("Hart", "E1736")
localauths[132] = new localauthority("Hartlepool", "E0701")
localauths[133] = new localauthority("Hastings", "E1433")
localauths[134] = new localauthority("Havant", "E1737")
localauths[135] = new localauthority("Havering", "E5040")
localauths[136] = new localauthority("Herefordshire", "E1801")
localauths[137] = new localauthority("Hertfordshire", "E1920")
localauths[138] = new localauthority("Hertsmere", "E1934")
localauths[139] = new localauthority("High Peak", "E1037")
localauths[140] = new localauthority("Hillingdon", "E5041")
localauths[141] = new localauthority("Hinckley & Bosworth", "E2434")
localauths[142] = new localauthority("Horsham", "E3835")
localauths[143] = new localauthority("Hounslow", "E5042")
localauths[144] = new localauthority("Huntingdonshire", "E0551")
localauths[145] = new localauthority("Hyndburn", "E2336")
localauths[146] = new localauthority("Ipswich", "E3533")
localauths[147] = new localauthority("Isle of Wight", "E2101")
localauths[148] = new localauthority("Isles of Scilly", "E4001")
localauths[149] = new localauthority("Islington", "E5015")
localauths[150] = new localauthority("Kennet", "E3931")
localauths[151] = new localauthority("Kensington & Chelsea", "E5016")
localauths[152] = new localauthority("Kent", "E2221")
localauths[153] = new localauthority("Kettering", "E2834")
localauths[154] = new localauthority("Kings Lynn & West Norfolk", "E2634")
localauths[155] = new localauthority("Kingston-upon-Hull", "E2002")
localauths[156] = new localauthority("Kingston-upon-Thames", "E5043")
localauths[157] = new localauthority("Kirklees", "E4703")
localauths[158] = new localauthority("Knowsley", "E4301")
localauths[159] = new localauthority("Lambeth", "E5017")
localauths[160] = new localauthority("Lancashire", "E2321")
localauths[161] = new localauthority("Lancaster", "E2337")
localauths[162] = new localauthority("Leeds", "E4704")
localauths[163] = new localauthority("Leicester", "E2401")
localauths[164] = new localauthority("Leicestershire", "E2421")
localauths[165] = new localauthority("Lewes", "E1435")
localauths[166] = new localauthority("Lewisham", "E5018")
localauths[167] = new localauthority("Lichfield", "E3433")
localauths[168] = new localauthority("Lincoln", "E2533")
localauths[169] = new localauthority("Lincolnshire", "E2520")
localauths[170] = new localauthority("Liverpool", "E4302")
localauths[171] = new localauthority("Luton", "E0201")
localauths[172] = new localauthority("Maidstone", "E2237")
localauths[173] = new localauthority("Maldon", "E1539")
localauths[174] = new localauthority("Malvern Hills", "E1851")
localauths[175] = new localauthority("Manchester", "E4203")
localauths[176] = new localauthority("Mansfield", "E3035")
localauths[177] = new localauthority("Medway", "E2201")
localauths[178] = new localauthority("Melton", "E2436")
localauths[179] = new localauthority("Mendip", "E3331")
localauths[180] = new localauthority("Merton", "E5044")
localauths[181] = new localauthority("Mid Devon", "E1133")
localauths[182] = new localauthority("Mid Suffolk", "E3534")
localauths[183] = new localauthority("Mid Sussex", "E3836")
localauths[184] = new localauthority("Middlesbrough", "E0702")
localauths[185] = new localauthority("Milton Keynes", "E0401")
localauths[186] = new localauthority("Mole Valley", "E3634")
localauths[187] = new localauthority("New Forest", "E1738")
localauths[188] = new localauthority("Newark & Sherwood", "E3036")
localauths[189] = new localauthority("Newcastle upon Tyne", "E4502")
localauths[190] = new localauthority("Newcastle-under-Lyme", "E3434")
localauths[191] = new localauthority("Newham", "E5045")
localauths[192] = new localauthority("Norfolk", "E2620")
localauths[193] = new localauthority("North Devon", "E1134")
localauths[194] = new localauthority("North Dorset", "E1234")
localauths[195] = new localauthority("North East Derbyshire", "E1038")
localauths[196] = new localauthority("North East Lincolnshire", "E2003")
localauths[197] = new localauthority("North Hertfordshire", "E1935")
localauths[198] = new localauthority("North Kesteven", "E2534")
localauths[199] = new localauthority("North Lincolnshire", "E2004")
localauths[200] = new localauthority("North Norfolk", "E2635")
localauths[201] = new localauthority("North Somerset", "E0104")
localauths[202] = new localauthority("North Tyneside", "E4503")
localauths[203] = new localauthority("North Warwickshire", "E3731")
localauths[204] = new localauthority("North West Leicestershire", "E2437")
localauths[205] = new localauthority("North Yorkshire", "E2721")
localauths[206] = new localauthority("Northampton", "E2835")
localauths[207] = new localauthority("Northamptonshire", "E2820")
localauths[208] = new localauthority("Northumberland", "E2901")
localauths[209] = new localauthority("Norwich", "E2636")
localauths[210] = new localauthority("Nottingham", "E3001")
localauths[211] = new localauthority("Nottinghamshire", "E3021")
localauths[212] = new localauthority("Nuneaton & Bedworth", "E3732")
localauths[213] = new localauthority("Oadby & Wigston", "E2438")
localauths[214] = new localauthority("Oldham", "E4204")
localauths[215] = new localauthority("Oxford", "E3132")
localauths[216] = new localauthority("Oxfordshire", "E3120")
localauths[217] = new localauthority("Pendle", "E2338")
localauths[218] = new localauthority("Peterborough", "E0501")
localauths[219] = new localauthority("Plymouth", "E1101")
localauths[220] = new localauthority("Poole", "E1201")
localauths[221] = new localauthority("Portsmouth", "E1701")
localauths[222] = new localauthority("Preston", "E2339")
localauths[223] = new localauthority("Purbeck", "E1236")
localauths[224] = new localauthority("Reading", "E0303")
localauths[225] = new localauthority("Redbridge", "E5046")
localauths[226] = new localauthority("Redcar & Cleveland", "E0703")
localauths[227] = new localauthority("Redditch", "E1835")
localauths[228] = new localauthority("Reigate & Banstead", "E3635")
localauths[229] = new localauthority("Ribble Valley", "E2340")
localauths[230] = new localauthority("Richmondshire", "E2734")
localauths[231] = new localauthority("Richmond-upon-Thames", "E5047")
localauths[232] = new localauthority("Rochdale", "E4205")
localauths[233] = new localauthority("Rochford", "E1540")
localauths[234] = new localauthority("Rossendale", "E2341")
localauths[235] = new localauthority("Rother", "E1436")
localauths[236] = new localauthority("Rotherham", "E4403")
localauths[237] = new localauthority("Rugby", "E3733")
localauths[238] = new localauthority("Runnymede", "E3636")
localauths[239] = new localauthority("Rushcliffe", "E3038")
localauths[240] = new localauthority("Rushmoor", "E1740")
localauths[241] = new localauthority("Rutland", "E2402")
localauths[242] = new localauthority("Ryedale", "E2755")
localauths[243] = new localauthority("Salford", "E4206")
localauths[244] = new localauthority("Sandwell", "E4604")
localauths[245] = new localauthority("Scarborough", "E2736")
localauths[246] = new localauthority("Sedgemoor", "E3332")
localauths[247] = new localauthority("Sefton", "E4304")
localauths[248] = new localauthority("Selby", "E2757")
localauths[249] = new localauthority("Sevenoaks", "E2239")
localauths[250] = new localauthority("Sheffield", "E4404")
localauths[251] = new localauthority("Shepway", "E2240")
localauths[252] = new localauthority("Shrewsbury & Atcham", "E3234")
localauths[253] = new localauthority("Shropshire", "E3202")
localauths[254] = new localauthority("Slough", "E0304")
localauths[255] = new localauthority("Solihull", "E4605")
localauths[256] = new localauthority("Somerset", "E3320")
localauths[257] = new localauthority("South Bucks", "E0434")
localauths[258] = new localauthority("South Cambridgeshire", "E0536")
localauths[259] = new localauthority("South Derbyshire", "E1039")
localauths[260] = new localauthority("South Gloucestershire", "E0103")
localauths[261] = new localauthority("South Hams", "E1136")
localauths[262] = new localauthority("South Holland", "E2535")
localauths[263] = new localauthority("South Kesteven", "E2536")
localauths[264] = new localauthority("South Lakeland", "E0936")
localauths[265] = new localauthority("South Norfolk", "E2637")
localauths[266] = new localauthority("South Northamptonshire", "E2836")
localauths[267] = new localauthority("South Oxfordshire", "E3133")
localauths[268] = new localauthority("South Ribble", "E2342")
localauths[269] = new localauthority("South Shropshire", "E3235")
localauths[270] = new localauthority("South Somerset", "E3334")
localauths[271] = new localauthority("South Staffordshire", "E3435")
localauths[272] = new localauthority("South Tyneside", "E4504")
localauths[273] = new localauthority("Southampton", "E1702")
localauths[274] = new localauthority("Southend-on-Sea", "E1501")
localauths[275] = new localauthority("Southwark", "E5019")
localauths[276] = new localauthority("Spelthorne", "E3637")
localauths[277] = new localauthority("St Albans", "E1936")
localauths[278] = new localauthority("St Edmundsbury", "E3535")
localauths[279] = new localauthority("St Helens", "E4303")
localauths[280] = new localauthority("Stafford", "E3436")
localauths[281] = new localauthority("Staffordshire", "E3421")
localauths[282] = new localauthority("Staffs Moorlands", "E3437")
localauths[283] = new localauthority("Stevenage", "E1937")
localauths[284] = new localauthority("Stockport", "E4207")
localauths[285] = new localauthority("Stockton-on-Tees", "E0704")
localauths[286] = new localauthority("Stoke-on-Trent", "E3401")
localauths[287] = new localauthority("Stratford-on-Avon", "E3734")
localauths[288] = new localauthority("Stroud", "E1635")
localauths[289] = new localauthority("Suffolk", "E3520")
localauths[290] = new localauthority("Suffolk Coastal", "E3536")
localauths[291] = new localauthority("Sunderland", "E4505")
localauths[292] = new localauthority("Surrey", "E3620")
localauths[293] = new localauthority("Surrey Heath", "E3638")
localauths[294] = new localauthority("Sutton", "E5048")
localauths[295] = new localauthority("Swale", "E2241")
localauths[296] = new localauthority("Swindon", "E3901")
localauths[297] = new localauthority("Tameside", "E4208")
localauths[298] = new localauthority("Tamworth", "E3439")
localauths[299] = new localauthority("Tandridge", "E3639")
localauths[300] = new localauthority("Taunton Deane", "E3333")
localauths[301] = new localauthority("Teignbridge", "E1137")
localauths[302] = new localauthority("Telford & Wrekin", "E3201")
localauths[303] = new localauthority("Tendring", "E1542")
localauths[304] = new localauthority("Test Valley", "E1742")
localauths[305] = new localauthority("Tewkesbury", "E1636")
localauths[306] = new localauthority("Thanet", "E2242")
localauths[307] = new localauthority("Three Rivers", "E1938")
localauths[308] = new localauthority("Thurrock", "E1502")
localauths[309] = new localauthority("Tonbridge & Malling", "E2243")
localauths[310] = new localauthority("Torbay", "E1102")
localauths[311] = new localauthority("Torridge", "E1139")
localauths[312] = new localauthority("Tower Hamlets", "E5020")
localauths[313] = new localauthority("Trafford", "E4209")
localauths[314] = new localauthority("Tunbridge Wells", "E2244")
localauths[315] = new localauthority("Uttlesford", "E1544")
localauths[316] = new localauthority("Vale of White Horse", "E3134")
localauths[317] = new localauthority("Wakefield", "E4705")
localauths[318] = new localauthority("Walsall", "E4606")
localauths[319] = new localauthority("Waltham Forest", "E5049")
localauths[320] = new localauthority("Wandsworth", "E5021")
localauths[321] = new localauthority("Warrington", "E0602")
localauths[322] = new localauthority("Warwick", "E3735")
localauths[323] = new localauthority("Warwickshire", "E3720")
localauths[324] = new localauthority("Watford", "E1939")
localauths[325] = new localauthority("Waveney", "E3537")
localauths[326] = new localauthority("Waverley", "E3640")
localauths[327] = new localauthority("Wealden", "E1437")
localauths[328] = new localauthority("Wellingborough", "E2837")
localauths[329] = new localauthority("Welwyn Hatfield", "E1940")
localauths[330] = new localauthority("West Berkshire", "E0302")
localauths[331] = new localauthority("West Devon", "E1140")
localauths[332] = new localauthority("West Dorset", "E1237")
localauths[333] = new localauthority("West Lancashire", "E2343")
localauths[334] = new localauthority("West Lindsey", "E2537")
localauths[335] = new localauthority("West Oxfordshire", "E3135")
localauths[336] = new localauthority("West Somerset", "E3335")
localauths[337] = new localauthority("West Sussex", "E3820")
localauths[338] = new localauthority("Westminster", "E5022")
localauths[339] = new localauthority("Weymouth & Portland", "E1238")
localauths[340] = new localauthority("Wigan", "E4210")
localauths[341] = new localauthority("Wiltshire", "E3921")
localauths[342] = new localauthority("Winchester", "E1743")
localauths[343] = new localauthority("Windsor & Maidenhead", "E0305")
localauths[344] = new localauthority("Wirral", "E4305")
localauths[345] = new localauthority("Woking", "E3641")
localauths[346] = new localauthority("Wokingham", "E0306")
localauths[347] = new localauthority("Wolverhampton", "E4607")
localauths[348] = new localauthority("Worcester", "E1837")
localauths[349] = new localauthority("Worcestershire", "E1821")
localauths[350] = new localauthority("Worthing", "E3837")
localauths[351] = new localauthority("Wychavon", "E1838")
localauths[352] = new localauthority("Wycombe", "E0435")
localauths[353] = new localauthority("Wyre", "E2344")
localauths[354] = new localauthority("Wyre Forest", "E1839")
localauths[355] = new localauthority("York", "E2701")




function setcomparatorgroup(nnform1) {
//alert(nnform1.localauthority.value);
	if (nnform1.localauthority.value == "IL") {
		setflascode(nnform1)
		//alert(nnform1.localauthority.value);
		nnform1.right_select.options.length = 1	
		//alert(nnform1.localauthority.value)
		nnform1.right_select.options[0].value = "'IL'"
		nnform1.right_select.options[0].text = "Inner London Boroughs"
		nnform1.left_select.options.length = 5
		nnform1.left_select.options[0].value = "'OL'"
		nnform1.left_select.options[0].text = "Outer London Boroughs"
		nnform1.left_select.options[1].value = "'MD'"
		nnform1.left_select.options[1].text = "Metropolitan Districts"
		nnform1.left_select.options[2].value = "'EC'"
		nnform1.left_select.options[2].text = "County Councils"
		nnform1.left_select.options[3].value = "'EU'"
		nnform1.left_select.options[3].text = "Unitary Authorities: England"
		nnform1.left_select.options[4].value = "'NM'"
		nnform1.left_select.options[4].text = "Non-Metropolitan Districts"
	} else if (nnform1.localauthority.value == "OL") {
		setflascode(nnform1)
		nnform1.right_select.options.length = 1	
		nnform1.right_select.options[0].value = "'OL'"
		nnform1.right_select.options[0].text = "Outer London Boroughs"
		nnform1.left_select.options.length = 5
		nnform1.left_select.options[0].value = "'IL'"
		nnform1.left_select.options[0].text = "Inner London Boroughs"
		nnform1.left_select.options[1].value = "'MD'"
		nnform1.left_select.options[1].text = "Metropolitan Districts"
		nnform1.left_select.options[2].value = "'EC'"
		nnform1.left_select.options[2].text = "County Councils"
		nnform1.left_select.options[3].value = "'EU'"
		nnform1.left_select.options[3].text = "Unitary Authorities: England"
		nnform1.left_select.options[4].value = "'NM'"
		nnform1.left_select.options[4].text = "Non-Metropolitan Districts"
	} else if (nnform1.localauthority.value == "MD") {
		setflascode(nnform1)
		nnform1.right_select.options.length = 1	
		nnform1.right_select.options[0].value = "'MD'"
		nnform1.right_select.options[0].text = "Metropolitan Districts"
		nnform1.left_select.options.length = 5
		nnform1.left_select.options[0].value = "'IL'"
		nnform1.left_select.options[0].text = "Inner London Boroughs"
		nnform1.left_select.options[1].value = "'OL'"
		nnform1.left_select.options[1].text = "Outer London Boroughs"
		nnform1.left_select.options[2].value = "'EC'"
		nnform1.left_select.options[2].text = "County Councils"
		nnform1.left_select.options[3].value = "'EU'"
		nnform1.left_select.options[3].text = "Unitary Authorities: England"
		nnform1.left_select.options[4].value = "'NM'"
		nnform1.left_select.options[4].text = "Non-Metropolitan Districts"
	} else if (nnform1.localauthority.value == "EC") {
		setflascode(nnform1)
		nnform1.right_select.options.length = 1	
		nnform1.right_select.options[0].value = "'EC'"
		nnform1.right_select.options[0].text = "County Councils"
		nnform1.left_select.options.length = 5
		nnform1.left_select.options[0].value = "'IL'"
		nnform1.left_select.options[0].text = "Inner London Boroughs"
		nnform1.left_select.options[1].value = "'OL'"
		nnform1.left_select.options[1].text = "Outer London Boroughs"
		nnform1.left_select.options[2].value = "'MD'"
		nnform1.left_select.options[2].text = "Metropolitan Districts"
		nnform1.left_select.options[3].value = "'EU'"
		nnform1.left_select.options[3].text = "Unitary Authorities: England"
		nnform1.left_select.options[4].value = "'NM'"
		nnform1.left_select.options[4].text = "Non-Metropolitan Districts"
	} else if (nnform1.localauthority.value == "EU") {
		setflascode(nnform1)
		nnform1.right_select.options.length = 1	
		nnform1.right_select.options[0].value = "'EU'"
		nnform1.right_select.options[0].text = "Unitary Authorities: England"
		nnform1.left_select.options.length = 5
		nnform1.left_select.options[0].value = "'IL'"
		nnform1.left_select.options[0].text = "Inner London Boroughs"
		nnform1.left_select.options[1].value = "'OL'"
		nnform1.left_select.options[1].text = "Outer London Boroughs"
		nnform1.left_select.options[2].value = "'MD'"
		nnform1.left_select.options[2].text = "Metropolitan Districts"
		nnform1.left_select.options[3].value = "'EC'"
		nnform1.left_select.options[3].text = "County Councils"
		nnform1.left_select.options[4].value = "'NM'"
		nnform1.left_select.options[4].text = "Non-Metropolitan Districts"
	} else if (nnform1.localauthority.value == "NM") {
		setflascode(nnform1)
		nnform1.right_select.options.length = 1	
		nnform1.right_select.options[0].value = "'NM'"
		nnform1.right_select.options[0].text = "Non-Metropolitan Districts"
		nnform1.left_select.options.length = 5
		nnform1.left_select.options[0].value = "'IL'"
		nnform1.left_select.options[0].text = "Inner London Boroughs"
		nnform1.left_select.options[1].value = "'OL'"
		nnform1.left_select.options[1].text = "Outer London Boroughs"
		nnform1.left_select.options[2].value = "'MD'"
		nnform1.left_select.options[2].text = "Metropolitan Districts"
		nnform1.left_select.options[3].value = "'EC'"
		nnform1.left_select.options[3].text = "County Councils"
		nnform1.left_select.options[4].value = "'EU'"
		nnform1.left_select.options[4].text = "Unitary Authorities: England"
		//nnform1.left_select.options[5].value = "'SU'"
		//nnform1.left_select.options[5].text = "Unitary Authorities: Scotland"
	} else {
		setflascode(nnform1)
		nnform1.left_select.options.length = 6
		nnform1.left_select.options[0].value = "'IL'"
		nnform1.left_select.options[0].text = "Inner London Boroughs"
		nnform1.left_select.options[1].value = "'OL'"
		nnform1.left_select.options[1].text = "Outer London Boroughs"
		nnform1.left_select.options[2].value = "'MD'"
		nnform1.left_select.options[2].text = "Metropolitan Districts"
		nnform1.left_select.options[3].value = "'EC'"
		nnform1.left_select.options[3].text = "County Councils"
		nnform1.left_select.options[4].value = "'EU'"
		nnform1.left_select.options[4].text = "Unitary Authorities: England"
		nnform1.left_select.options[5].value = "'NM'"
		nnform1.left_select.options[5].text = "Non-Metropolitan Districts"
	}
}



//new function for selecting the comparators
function setcomparatorgroup(nnform1) {

	if (nnform1.localauthority.value == "IL") {
		setflascode(nnform1)
		nnform1.right_classes.options.length = 1	
		nnform1.right_classes.options[0].value = "'IL'"
		nnform1.right_classes.options[0].text = "Inner London Boroughs"
		nnform1.left_classes.options.length = 5
		nnform1.left_classes.options[0].value = "'OL'"
		nnform1.left_classes.options[0].text = "Outer London Boroughs"
		nnform1.left_classes.options[1].value = "'MD'"
		nnform1.left_classes.options[1].text = "Metropolitan Districts"
		nnform1.left_classes.options[2].value = "'EC'"
		nnform1.left_classes.options[2].text = "County Councils"
		nnform1.left_classes.options[3].value = "'EU'"
		nnform1.left_classes.options[3].text = "Unitary Authorities: England"
		nnform1.left_classes.options[4].value = "'NM'"
		nnform1.left_classes.options[4].text = "Non-Metropolitan Districts"
	} else if (nnform1.localauthority.value == "OL") {
		setflascode(nnform1)
		nnform1.right_classes.options.length = 1	
		nnform1.right_classes.options[0].value = "'OL'"
		nnform1.right_classes.options[0].text = "Outer London Boroughs"
		nnform1.left_classes.options.length = 5
		nnform1.left_classes.options[0].value = "'IL'"
		nnform1.left_classes.options[0].text = "Inner London Boroughs"
		nnform1.left_classes.options[1].value = "'MD'"
		nnform1.left_classes.options[1].text = "Metropolitan Districts"
		nnform1.left_classes.options[2].value = "'EC'"
		nnform1.left_classes.options[2].text = "County Councils"
		nnform1.left_classes.options[3].value = "'EU'"
		nnform1.left_classes.options[3].text = "Unitary Authorities: England"
		nnform1.left_classes.options[4].value = "'NM'"
		nnform1.left_classes.options[4].text = "Non-Metropolitan Districts"
	} else if (nnform1.localauthority.value == "MD") {
		setflascode(nnform1)
		nnform1.right_classes.options.length = 1	
		nnform1.right_classes.options[0].value = "'MD'"
		nnform1.right_classes.options[0].text = "Metropolitan Districts"
		nnform1.left_classes.options.length = 5
		nnform1.left_classes.options[0].value = "'IL'"
		nnform1.left_classes.options[0].text = "Inner London Boroughs"
		nnform1.left_classes.options[1].value = "'OL'"
		nnform1.left_classes.options[1].text = "Outer London Boroughs"
		nnform1.left_classes.options[2].value = "'EC'"
		nnform1.left_classes.options[2].text = "County Councils"
		nnform1.left_classes.options[3].value = "'EU'"
		nnform1.left_classes.options[3].text = "Unitary Authorities: England"
		nnform1.left_classes.options[4].value = "'NM'"
		nnform1.left_classes.options[4].text = "Non-Metropolitan Districts"
	} else if (nnform1.localauthority.value == "EC") {
		setflascode(nnform1)
		nnform1.right_classes.options.length = 1	
		nnform1.right_classes.options[0].value = "'EC'"
		nnform1.right_classes.options[0].text = "County Councils"
		nnform1.left_classes.options.length = 5
		nnform1.left_classes.options[0].value = "'IL'"
		nnform1.left_classes.options[0].text = "Inner London Boroughs"
		nnform1.left_classes.options[1].value = "'OL'"
		nnform1.left_classes.options[1].text = "Outer London Boroughs"
		nnform1.left_classes.options[2].value = "'MD'"
		nnform1.left_classes.options[2].text = "Metropolitan Districts"
		nnform1.left_classes.options[3].value = "'EU'"
		nnform1.left_classes.options[3].text = "Unitary Authorities: England"
		nnform1.left_classes.options[4].value = "'NM'"
		nnform1.left_classes.options[4].text = "Non-Metropolitan Districts"
	} else if (nnform1.localauthority.value == "EU") {
		setflascode(nnform1)
		nnform1.right_classes.options.length = 1	
		nnform1.right_classes.options[0].value = "'EU'"
		nnform1.right_classes.options[0].text = "Unitary Authorities: England"
		nnform1.left_classes.options.length = 5
		nnform1.left_classes.options[0].value = "'IL'"
		nnform1.left_classes.options[0].text = "Inner London Boroughs"
		nnform1.left_classes.options[1].value = "'OL'"
		nnform1.left_classes.options[1].text = "Outer London Boroughs"
		nnform1.left_classes.options[2].value = "'MD'"
		nnform1.left_classes.options[2].text = "Metropolitan Districts"
		nnform1.left_classes.options[3].value = "'EC'"
		nnform1.left_classes.options[3].text = "County Councils"
		nnform1.left_classes.options[4].value = "'NM'"
		nnform1.left_classes.options[4].text = "Non-Metropolitan Districts"
	} else if (nnform1.localauthority.value == "NM") {
		setflascode(nnform1)
		nnform1.right_classes.options.length = 1	
		nnform1.right_classes.options[0].value = "'NM'"
		nnform1.right_classes.options[0].text = "Non-Metropolitan Districts"
		nnform1.left_classes.options.length = 5
		nnform1.left_classes.options[0].value = "'IL'"
		nnform1.left_classes.options[0].text = "Inner London Boroughs"
		nnform1.left_classes.options[1].value = "'OL'"
		nnform1.left_classes.options[1].text = "Outer London Boroughs"
		nnform1.left_classes.options[2].value = "'MD'"
		nnform1.left_classes.options[2].text = "Metropolitan Districts"
		nnform1.left_classes.options[3].value = "'EC'"
		nnform1.left_classes.options[3].text = "County Councils"
		nnform1.left_classes.options[4].value = "'EU'"
		nnform1.left_classes.options[4].text = "Unitary Authorities: England"
		//nnform1.left_classes.options[5].value = "'SU'"
		//nnform1.left_classes.options[5].text = "Unitary Authorities: Scotland"
	} else {
		setflascode(nnform1)
		nnform1.left_classes.options.length = 6
		nnform1.left_classes.options[0].value = "'IL'"
		nnform1.left_classes.options[0].text = "Inner London Boroughs"
		nnform1.left_classes.options[1].value = "'OL'"
		nnform1.left_classes.options[1].text = "Outer London Boroughs"
		nnform1.left_classes.options[2].value = "'MD'"
		nnform1.left_classes.options[2].text = "Metropolitan Districts"
		nnform1.left_classes.options[3].value = "'EC'"
		nnform1.left_classes.options[3].text = "County Councils"
		nnform1.left_classes.options[4].value = "'EU'"
		nnform1.left_classes.options[4].text = "Unitary Authorities: England"
		nnform1.left_classes.options[5].value = "'NM'"
		nnform1.left_classes.options[5].text = "Non-Metropolitan Districts"
	}
}
