var noCounty = new Array("Ikke tilgjengelig:0"," :1","Informasjon:1","ikke:1","tilgjengelig.:1"," :1"," :1");var land1 = new Array("Velg:0","Akershus:2","Aust-Agder:9","Buskerud:6","Finnmark:20","Hedmark:4","Hordaland:12","Møre og Romsdal:15","Nordland:18","Nord-Trøndelag:17","Oppland:5","Oslo:3","Rogaland:11","Sogn og Fjordane:14","Sør-Trøndelag:16","Telemark:8","Troms:19","Vest-Agder:10","Østfold:1","Vestfold:7"); var land1001 = new Array("Velg:0","Alberta:5000","British Columbia:5001","Manitoba:5002","New Brunswick:5003","Nova Scotia:5004","Newfoundland:5005","Ontario:5006","Prince Edward Is.:5007","Quebec:5008","Saskatchewan:5009","Northwest Terr.:5010","Nunavut:5011","Yukon:5012"); var land1005 = new Array("Velg:0","Antrim:5013","Armagh:5014","Carlow:5015","Cavan:5016","Clare:5017","Cork:5018","Donegal:5019","Down:5020","Dublin:5021","Fermanagh:5022","Galway:5023","Kerry:5024","Kildare:5025","Kilkenny:5026","Laois:5027","Leitrim:5028","Limerick:5029","Londonderry:5030","Longford:5031","Louth:5032","Mayo:5033","Meath:5034","Monaghan:5035","Offaly:5036","Roscommon:5037","Sligo:5038","Tipperary:5039","Tyrone:5040","Waterford:5041","Westmeath:5042","Wexford:5043","Wicklow:5044"); var land1006 = new Array("Velg:0"); var land1010 = new Array("Velg:0","Aberdeenshire:5045","Angus:5046","Argyll:5047","Ayrshire:5048","Banffshire:5049","Berwickshire:5050","Bute:5051","Caithness:5052","Clackmannanshire:5053","Dumfriesshire:5054","Dunbartonshire:5055","East Lothian:5056","Fife:5057","Inverness-shire:5058","Kincardineshire:5059","Kinross-shire:5060","Kirkcudbrightshire:5061","Lanarkshire:5062","Midlothian:5063","Moray:5064","Nairnshire:5065","Orkney:5066","Peeblesshire:5067","Perthshire:5068","Renfrewshire:5069","Ross & Cromarty:5070","Roxburghshire:5071","Selkirkshire:5072","Shetland:5073","Stirlingshire:5074","Sutherland:5075","West Lothian:5076","Wigtownshire:5077"); var land1015 = new Array("Velg:0","Anglesey:5078","Breconshire:5079","Caernarvonshire:5080","Cardiganshire:5081","Carmarthenshire:5082","Denbighshire:5083","Flintshire:5084","Glamorgan:5085","Merionethshire:5086","Monmouthshire:5087","Montgomeryshire:5088","Pembrokeshire:5089","Radnorshire:5090"); var land1020 = new Array("Velg:0","Bedfordshire:5091","Berkshire:5092","Buckinghamshire:5093","Cambridgeshire:5094","Cheshire:5095","Cornwall:5096","Cumberland:5097","Derbyshire:5098","Devon:5099","Dorset:5100","Durham:5101","Essex:5102","Gloucestershire:5103","Hampshire:5104","Herefordshire:5105","Hertfordshire:5106","Huntingdonshire:5107","Kent:5108","Lancashire:5109","Leicestershire:5110","Lincolnshire:5111","London:5112","Middlesex:5113","Norfolk:5114","Northamptonshire:5115","Northumberland:5116","Nottinghamshire:5117","Oxfordshire:5118","Rutland:5119","Shropshire:5120","Somerset:5121","Staffordshire:5122","Suffolk:5123","Surrey:5124","Sussex:5125","Warwickshire:5126","Westmorland:5127","Wiltshire:5128","Worcestershire:5129","Yorkshire:5130","Yorkshire-E Riding:5131","Yorkshire-N Riding:5132","Yorkshire-W Riding:5133"); var land1025 = new Array("Velg:0","Alabama:5134","Alaska:5135","Arizona:5136","Arkansas:5137","California:5138","Colorado:5139","Connecticut:5140","Delaware:5141","Florida:5142","Georgia:5143","Hawaii:5144","Idaho:5145","Illinois:5146","Indiana:5147","Iowa:5148","Kansas:5149","Kentucky:5150","Louisiana:5151","Maine:5152","Maryland:5153","Massachusetts:5154","Michigan:5155","Minnesota:5156","Mississippi:5157","Missouri:5158","Montana:5159","Nebraska:5160","Nevada:5161","New Hampshire:5162","New Jersey:5163","New Mexico:5164","New York:5165","North Carolina:5166","North Dakota:5167","Ohio:5168","Oklahoma:5169","Oregon:5170","Pennsylvania:5171","Rhode Island:5172","South Carolina:5173","South Dakota:5174","Tennessee:5175","Texas:5176","Utah:5177","Vermont:5178","Virginia:5179","Washington:5180","Washington, D.C.:5181","West Virginia:5182","Wisconsin:5183","Wyoming:5184"); var land1200 = new Array("Velg:0"); var land1205 = new Array("Velg:0","Södermanland:104","Östergötland:105","Jönkoping:106","Kronoberg (Småland):107","Kalmar:108","Gotland:109","Blekinge:110","Skåne (Kristianstad):111","Skåne (Malmöhus):112","Halland:113","Västra Götaland (Göteborg/Bohuslän):114","Västra Götaland (Älvsborg):115","Västra Götaland (Skaraborg):116","Värmland:117","Örebro:118","Västmanland:119","Kopparberg (Dalarna):120","Gävleborg:121","Västernorrland:122","Jämtland:123","Västerbotten:124","Norrbotten:125"); var land1206 = new Array("Velg:0","Bornholms Amt:130","Frederiksborg Amt:131","Fyns Amt:132","Københavns Amt:133","Nordjyllands Amt:134","Ribe Amt:135","Ringkjøbing Amt:136","Roskilde Amt:137","Storstrøms Amt:138","Sønderjyllands Amt:139","Vejle Amt:140","Vestsjællands Amt:141","Viborg Amt:142","Århus Amt:143"); var land1207 = new Array("Velg:0"); var land1208 = new Array("Velg:0"); var land1210 = new Array("Velg:0"); var land1211 = new Array("Velg:0"); var land1212 = new Array("Velg:0"); var land1213 = new Array("Velg:0"); var land1214 = new Array("Velg:0"); var land1230 = new Array("Velg:0"); var land1240 = new Array("Velg:0"); var land1300 = new Array("Velg:0"); var land1400 = new Array("Velg:0"); var land1450 = new Array("Velg:0"); var fylke16 = new Array("Velg:0","Agdenes:1622","Bjugn:1627","Frøya:1620","Hemne:1612","Hitra:1617","HoltÃ¥len:1644","Klæbu:1662","Malvik:1663","Meldal:1636","Melhus:1653","Midtre Gauldal:1648","Oppdal:1634","Orkdal:1638","Osen:1633","Rennebu:1635","Rissa:1624","Roan:1632","Røros:1640","Selbu:1664","Skaun:1657","Snillfjord:1613","Trondheim:1601","Tydal:1665","Ørland:1621","Ã…fjord:1630"); var fylke18 = new Array("Velg:0","Alstahaug:1820","Andøy:1871","Ballangen:1854","Beiarn:1839","Bindal:1811","Bodø:1804","Brønnøy:1813","Bø:1867","Dønna:1827","Evenes:1853","Fauske:1841","Flakstad:1859","GildeskÃ¥l:1838","Grane:1825","Hadsel:1866","Hamarøy:1849","Hattfjelldal:1826","Hemnes:1832","Herøy:1818","Leirfjord:1822","Lurøy:1834","Lødingen:1851","Meløy:1837","Moskenes:1874","Narvik:1805","Nesna:1828","Rana:1833","Rødøy:1836","Røst:1856","Saltdal:1840","Skjerstad:1842","Sortland:1870","Steigen:1848","Sømna:1812","Sørfold:1845","Tjeldsund:1852","Træna:1835","Tysfjord:1850","Vefsn:1824","Vega:1815","VestvÃ¥gøy:1860","Vevelstad:1816","Værøy:1857","VÃ¥gan:1865","Øksnes:1868"); var fylke20 = new Array("Velg:0","Alta:2012","BerlevÃ¥g:2024","BÃ¥tsfjord:2028","Deanu gielda/Tana:2025","Gamvik:2023","Guovdageainnu suohkan/Kautokeino:2011","Hammerfest:2004","Hasvik:2015","Kárásjoga gielda/Karasjok:2021","Kvalsund:2017","Lebesby:2022","Loppa:2014","MÃ¥søy:2018","Nesseby /Unjargga gielda:2027","Nordkapp:2019","Porsanger:2020","Sør-Varanger:2030","Vadsø:2003","Vardø:2002"); var fylke4 = new Array("Velg:0","Alvdal:438","Eidskog:420","Elverum:427","Engerdal:434","Folldal:439","Grue:423","Hamar:403","Kongsvinger:402","Løten:415","Nord-Odal:418","Os:441","Rendalen:432","Ringsaker:412","Stange:417","Stor-Elvdal:430","Sør-Odal:419","Tolga:436","Trysil:428","Tynset:437","VÃ¥ler:426","Ã…mot:429","Ã…snes:425"); var fylke7 = new Array("Velg:0","Andebu:719","Horten:701","Hof:714","Holmestrand:702","Lardal:728","Larvik:709","Nøtterøy:722","Ramnes:718","Sande:713","Sandefjord:706","Stokke:720","Svelvik:711","Tjøme:723","Tønsberg:704","Re:716"); var fylke1 = new Array("Velg:0","Aremark:118","Askim:124","Eidsberg:125","Fredrikstad:106","Halden:101","Hobøl:138","Hvaler:111","Marker:119","Moss:104","Rakkestad:128","Rygge:136","Rømskog:121","RÃ¥de:135","Sarpsborg:105","Skiptvet:127","Spydeberg:123","Trøgstad:122","VÃ¥ler:137"); var fylke9 = new Array("Velg:0","Arendal:906","Birkenes:928","Bygland:938","Bykle:941","Evje og Hornnes:937","Froland:919","Gjerstad:911","Grimstad:904","Iveland:935","Lillesand:926","Risør:901","Tvedestrand:914","Valle:940","VegÃ¥rshei:912","Ã…mli:929"); var fylke2 = new Array("Velg:0","Asker:220","Aurskog-Høland:221","Bærum:219","Eidsvoll:237","Enebakk:229","Fet:227","Frogn:215","Gjerdrum:234","Hurdal:239","Lørenskog:230","Nannestad:238","Nes:236","Nesodden:216","Nittedal:233","OppegÃ¥rd:217","Rælingen:228","Skedsmo:231","Ski:213","Sørum:226","Ullensaker:235","Vestby:211","Ã…s:214"); var fylke14 = new Array("Velg:0","Askvoll:1428","Aurland:1421","Balestrand:1418","Bremanger:1438","Eid:1443","Fjaler:1429","Flora:1401","Førde:1432","Gaular:1430","Gloppen:1445","Gulen:1411","Hornindal:1444","Hyllestad:1413","Høyanger:1416","Jølster:1431","Leikanger:1419","Luster:1426","Lærdal:1422","Naustdal:1433","Selje:1441","Sogndal:1420","Solund:1412","Stryn:1449","Vik:1417","VÃ¥gsøy:1439","Ã…rdal:1424"); var fylke12 = new Array("Velg:0","Askøy:1247","Austevoll:1244","Austrheim:1264","Bergen:1201","Bømlo:1219","Eidfjord:1232","Etne:1211","Fedje:1265","Fitjar:1222","Fjell:1246","Fusa:1241","Granvin herad:1234","Jondal:1227","Kvam herad:1238","Kvinnherad:1224","LindÃ¥s:1263","Masfjorden:1266","Meland:1256","Modalen:1252","Odda:1228","Os:1243","Osterøy:1253","Radøy:1260","Samnanger:1242","Stord:1221","Sund:1245","Sveio:1216","Tysnes:1223","Ullensvang herad:1231","Ulvik herad:1233","Vaksdal:1251","Voss:1235","Ølen:1214","Øygarden:1259"); var fylke10 = new Array("Velg:0","Audnedal:1027","Farsund:1003","Flekkefjord:1004","Hægebostad:1034","Kristiansand:1001","Kvinesdal:1037","Lindesnes:1029","Lyngdal:1032","Mandal:1002","Marnardal:1021","Sirdal:1046","Songdalen:1017","Søgne:1018","Vennesla:1014","Ã…seral:1026"); var fylke15 = new Array("Velg:0","Aukra:1547","Aure:1569","Averøy:1554","Eide:1551","Frei:1556","Fræna:1548","Giske:1532","Gjemnes:1557","Halsa:1571","Haram:1534","Hareid:1517","Herøy:1515","Kristiansund:1503","Midsund:1545","Molde:1502","Nesset:1543","Norddal:1524","Rauma:1539","Rindal:1567","Sande:1514","Sandøy:1546","Skodje:1529","Smøla:1573","Stordal:1526","Stranda:1525","Sula:1531","Sunndal:1563","Surnadal:1566","Sykkylven:1528","Tingvoll:1560","Tustna:1572","Ulstein:1516","Vanylven:1511","Vestnes:1535","Volda:1519","Ørskog:1527","Ørsta:1520","Ã…lesund:1504","Sunnylven:1523"); var fylke19 = new Array("Velg:0","Balsfjord:1933","Bardu:1922","Berg:1929","Bjarkøy:1915","Dyrøy:1926","Gáivuona suhokan/KÃ¥fjord:1940","Gratangen:1919","Harstad:1901","Ibestad:1917","Karlsøy:1936","Kvæfjord:1911","Kvænangen:1943","Lavangen:1920","Lenvik:1931","Lyngen:1938","MÃ¥lselv:1924","Nordreisa:1942","Salangen:1923","Skjervøy:1941","SkÃ¥nland:1913","Storfjord:1939","Sørreisa:1925","Torsken:1928","Tranøy:1927","Tromsø:1902"); var fylke8 = new Array("Velg:0","Bamble:814","Bø:821","Drangedal:817","Fyresdal:831","Hjartdal:827","Kragerø:815","Kviteseid:829","Nissedal:830","Nome:819","Notodden:807","Porsgrunn:805","Sauherad:822","Seljord:828","Siljan:811","Skien:806","Tinn:826","Tokke:833","Vinje:834"); var fylke11 = new Array("Velg:0","Bjerkreim:1114","Bokn:1145","Eigersund:1101","Finnøy:1141","Forsand:1129","Gjesdal:1122","Haugesund:1106","Hjelmeland:1133","HÃ¥:1119","Karmøy:1149","Klepp:1120","Kvitsøy:1144","Lund:1112","Randaberg:1127","Rennesøy:1142","Sandnes:1102","Sauda:1135","Sokndal:1111","Sola:1124","Stavanger:1103","Strand:1130","Suldal:1134","Time:1121","Tysvær:1146","Utsira:1151","Vindafjord:1154"); var fylke5 = new Array("Velg:0","Dovre:511","Etnedal:541","Gausdal:522","Gjøvik:502","Gran:534","Jevnaker:532","Lesja:512","Lillehammer:501","Lom:514","Lunner:533","Nord-Aurdal:542","Nord-Fron:516","Nordre Land:538","Ringebu:520","Sel:517","SkjÃ¥k:513","Søndre Land:536","Sør-Aurdal:540","Sør-Fron:519","Vang:545","Vestre Slidre:543","Vestre Toten:529","VÃ¥gÃ¥:515","Østre Toten:528","Øyer:521","Øystre Slidre:544"); var fylke6 = new Array("Velg:0","Drammen:602","Flesberg:631","FlÃ¥:615","Gol:617","Hemsedal:618","Hol:620","Hole:612","Hurum:628","Kongsberg:604","Krødsherad:622","Lier:626","Modum:623","Nedre Eiker:625","Nes:616","Nore og Uvdal:633","Ringerike:605","Rollag:632","Røyken:627","Sigdal:621","Øvre Eiker:624","Ã…l:619"); var fylke17 = new Array("Velg:0","Flatanger:1749","Fosnes:1748","Frosta:1717","Grong:1742","Høylandet:1743","Inderøy:1729","Leka:1755","Leksvik:1718","Levanger:1719","Lierne:1738","MerÃ¥ker:1711","Mosvik:1723","Namdalseid:1725","Namsos:1703","Namsskogan:1740","Nærøy:1751","Overhalla:1744","Røyrvik:1739","SnÃ¥sa:1736","Steinkjer:1702","Stjørdal:1714","Verdal:1721","Verran:1724","Vikna:1750"); var fylke3 = new Array("Velg:0","Oslo:301"); //Show the field title function showCounty(showWhich,hide1,hide2,hide3) { if (document.getElementById) { document.getElementById(hide1).style.display = "none"; document.getElementById(hide2).style.display = "none"; document.getElementById(hide3).style.display = "none"; document.getElementById(showWhich).style.display = "block"; } } function loadMenu(whichCountry) { if (whichCountry == "1,Norge") {whichCountry = land1; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1300,Australia") {whichCountry = land1300; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1001,Canada") {whichCountry = land1001; showCounty("p_layer","f_layer","s_layer","spc_layer");} else if (whichCountry == "1206,Danmark") {whichCountry = land1206; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1020,England") {whichCountry = land1020; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1207,Finland") {whichCountry = land1207; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1214,Frankrike") {whichCountry = land1214; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1208,Færøyene") {whichCountry = land1208; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1400,Gran Canaria") {whichCountry = land1400; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1005,Irland") {whichCountry = land1005; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1240,Litauen") {whichCountry = land1240; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1213,Nederland") {whichCountry = land1213; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1006,Rep of Ireland") {whichCountry = land1006; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1010,Skotland") {whichCountry = land1010; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1212,Spania") {whichCountry = land1212; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1211,Sveits") {whichCountry = land1211; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1205,Sverige") {whichCountry = land1205; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1450,Sør Korea") {whichCountry = land1450; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1230,Thailand") {whichCountry = land1230; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1210,Tyskland") {whichCountry = land1210; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1025,USA") {whichCountry = land1025; showCounty("s_layer","f_layer","p_layer","spc_layer");} else if (whichCountry == "1015,Wales") {whichCountry = land1015; showCounty("f_layer","p_layer","s_layer","spc_layer");} else if (whichCountry == "1200,Østerrike") {whichCountry = land1200; showCounty("f_layer","p_layer","s_layer","spc_layer");} else {whichCountry = noCounty; showCounty("spc_layer","f_layer","p_layer","s_layer");} //Now load the array items into the drop down if (whichCountry.length<2) { whichCountry = noCounty; } for (loadLoop = 0; loadLoop < whichCountry.length; loadLoop ++) { document.searchbox.fylke_bo.options[loadLoop] = new Option(whichCountry[loadLoop].split(":")[0], (whichCountry[loadLoop].split(":")[1] + "," + whichCountry[loadLoop].split(":")[0])); } //Set the length of the drop down to the length of the array and select the default item document.searchbox.fylke_bo.options.length = whichCountry.length; document.searchbox.fylke_bo.options[0].selected = true; loadMenu1(noCounty); } function loadMenu1(whichFylke) { if (whichFylke == "2,Akershus") {whichFylke = fylke2;} else if (whichFylke == "9,Aust-Agder") {whichFylke = fylke9;} else if (whichFylke == "6,Buskerud") {whichFylke = fylke6;} else if (whichFylke == "20,Finnmark") {whichFylke = fylke20;} else if (whichFylke == "4,Hedmark") {whichFylke = fylke4;} else if (whichFylke == "12,Hordaland") {whichFylke = fylke12;} else if (whichFylke == "15,Møre og Romsdal") {whichFylke = fylke15;} else if (whichFylke == "18,Nordland") {whichFylke = fylke18;} else if (whichFylke == "17,Nord-Trøndelag") {whichFylke = fylke17;} else if (whichFylke == "5,Oppland") {whichFylke = fylke5;} else if (whichFylke == "3,Oslo") {whichFylke = fylke3;} else if (whichFylke == "11,Rogaland") {whichFylke = fylke11;} else if (whichFylke == "14,Sogn og Fjordane") {whichFylke = fylke14;} else if (whichFylke == "16,Sør-Trøndelag") {whichFylke = fylke16;} else if (whichFylke == "8,Telemark") {whichFylke = fylke8;} else if (whichFylke == "19,Troms") {whichFylke = fylke19;} else if (whichFylke == "10,Vest-Agder") {whichFylke = fylke10;} else if (whichFylke == "1,Østfold") {whichFylke = fylke1;} else if (whichFylke == "5000,Alberta") {whichFylke = fylke5000;} else if (whichFylke == "5001,British Columbia") {whichFylke = fylke5001;} else if (whichFylke == "5002,Manitoba") {whichFylke = fylke5002;} else if (whichFylke == "5003,New Brunswick") {whichFylke = fylke5003;} else if (whichFylke == "5004,Nova Scotia") {whichFylke = fylke5004;} else if (whichFylke == "5005,Newfoundland") {whichFylke = fylke5005;} else if (whichFylke == "5006,Ontario") {whichFylke = fylke5006;} else if (whichFylke == "5007,Prince Edward Is.") {whichFylke = fylke5007;} else if (whichFylke == "5008,Quebec") {whichFylke = fylke5008;} else if (whichFylke == "5009,Saskatchewan") {whichFylke = fylke5009;} else if (whichFylke == "5010,Northwest Terr.") {whichFylke = fylke5010;} else if (whichFylke == "5011,Nunavut") {whichFylke = fylke5011;} else if (whichFylke == "5012,Yukon") {whichFylke = fylke5012;} else if (whichFylke == "5013,Antrim") {whichFylke = fylke5013;} else if (whichFylke == "5014,Armagh") {whichFylke = fylke5014;} else if (whichFylke == "5015,Carlow") {whichFylke = fylke5015;} else if (whichFylke == "5016,Cavan") {whichFylke = fylke5016;} else if (whichFylke == "5017,Clare") {whichFylke = fylke5017;} else if (whichFylke == "5018,Cork") {whichFylke = fylke5018;} else if (whichFylke == "5019,Donegal") {whichFylke = fylke5019;} else if (whichFylke == "5020,Down") {whichFylke = fylke5020;} else if (whichFylke == "5021,Dublin") {whichFylke = fylke5021;} else if (whichFylke == "5022,Fermanagh") {whichFylke = fylke5022;} else if (whichFylke == "5023,Galway") {whichFylke = fylke5023;} else if (whichFylke == "5024,Kerry") {whichFylke = fylke5024;} else if (whichFylke == "5025,Kildare") {whichFylke = fylke5025;} else if (whichFylke == "5026,Kilkenny") {whichFylke = fylke5026;} else if (whichFylke == "5027,Laois") {whichFylke = fylke5027;} else if (whichFylke == "5028,Leitrim") {whichFylke = fylke5028;} else if (whichFylke == "5029,Limerick") {whichFylke = fylke5029;} else if (whichFylke == "5030,Londonderry") {whichFylke = fylke5030;} else if (whichFylke == "5031,Longford") {whichFylke = fylke5031;} else if (whichFylke == "5032,Louth") {whichFylke = fylke5032;} else if (whichFylke == "5033,Mayo") {whichFylke = fylke5033;} else if (whichFylke == "5034,Meath") {whichFylke = fylke5034;} else if (whichFylke == "5035,Monaghan") {whichFylke = fylke5035;} else if (whichFylke == "5036,Offaly") {whichFylke = fylke5036;} else if (whichFylke == "5037,Roscommon") {whichFylke = fylke5037;} else if (whichFylke == "5038,Sligo") {whichFylke = fylke5038;} else if (whichFylke == "5039,Tipperary") {whichFylke = fylke5039;} else if (whichFylke == "5040,Tyrone") {whichFylke = fylke5040;} else if (whichFylke == "5041,Waterford") {whichFylke = fylke5041;} else if (whichFylke == "5042,Westmeath") {whichFylke = fylke5042;} else if (whichFylke == "5043,Wexford") {whichFylke = fylke5043;} else if (whichFylke == "5044,Wicklow") {whichFylke = fylke5044;} else if (whichFylke == "5045,Aberdeenshire") {whichFylke = fylke5045;} else if (whichFylke == "5046,Angus") {whichFylke = fylke5046;} else if (whichFylke == "5047,Argyll") {whichFylke = fylke5047;} else if (whichFylke == "5048,Ayrshire") {whichFylke = fylke5048;} else if (whichFylke == "5049,Banffshire") {whichFylke = fylke5049;} else if (whichFylke == "5050,Berwickshire") {whichFylke = fylke5050;} else if (whichFylke == "5051,Bute") {whichFylke = fylke5051;} else if (whichFylke == "5052,Caithness") {whichFylke = fylke5052;} else if (whichFylke == "5053,Clackmannanshire") {whichFylke = fylke5053;} else if (whichFylke == "5054,Dumfriesshire") {whichFylke = fylke5054;} else if (whichFylke == "5055,Dunbartonshire") {whichFylke = fylke5055;} else if (whichFylke == "5056,East Lothian") {whichFylke = fylke5056;} else if (whichFylke == "5057,Fife") {whichFylke = fylke5057;} else if (whichFylke == "5058,Inverness-shire") {whichFylke = fylke5058;} else if (whichFylke == "5059,Kincardineshire") {whichFylke = fylke5059;} else if (whichFylke == "5060,Kinross-shire") {whichFylke = fylke5060;} else if (whichFylke == "5061,Kirkcudbrightshire") {whichFylke = fylke5061;} else if (whichFylke == "5062,Lanarkshire") {whichFylke = fylke5062;} else if (whichFylke == "5063,Midlothian") {whichFylke = fylke5063;} else if (whichFylke == "5064,Moray") {whichFylke = fylke5064;} else if (whichFylke == "5065,Nairnshire") {whichFylke = fylke5065;} else if (whichFylke == "5066,Orkney") {whichFylke = fylke5066;} else if (whichFylke == "5067,Peeblesshire") {whichFylke = fylke5067;} else if (whichFylke == "5068,Perthshire") {whichFylke = fylke5068;} else if (whichFylke == "5069,Renfrewshire") {whichFylke = fylke5069;} else if (whichFylke == "5070,Ross & Cromarty") {whichFylke = fylke5070;} else if (whichFylke == "5071,Roxburghshire") {whichFylke = fylke5071;} else if (whichFylke == "5072,Selkirkshire") {whichFylke = fylke5072;} else if (whichFylke == "5073,Shetland") {whichFylke = fylke5073;} else if (whichFylke == "5074,Stirlingshire") {whichFylke = fylke5074;} else if (whichFylke == "5075,Sutherland") {whichFylke = fylke5075;} else if (whichFylke == "5076,West Lothian") {whichFylke = fylke5076;} else if (whichFylke == "5077,Wigtownshire") {whichFylke = fylke5077;} else if (whichFylke == "5078,Anglesey") {whichFylke = fylke5078;} else if (whichFylke == "5079,Breconshire") {whichFylke = fylke5079;} else if (whichFylke == "5080,Caernarvonshire") {whichFylke = fylke5080;} else if (whichFylke == "5081,Cardiganshire") {whichFylke = fylke5081;} else if (whichFylke == "5082,Carmarthenshire") {whichFylke = fylke5082;} else if (whichFylke == "5083,Denbighshire") {whichFylke = fylke5083;} else if (whichFylke == "5084,Flintshire") {whichFylke = fylke5084;} else if (whichFylke == "5085,Glamorgan") {whichFylke = fylke5085;} else if (whichFylke == "5086,Merionethshire") {whichFylke = fylke5086;} else if (whichFylke == "5087,Monmouthshire") {whichFylke = fylke5087;} else if (whichFylke == "5088,Montgomeryshire") {whichFylke = fylke5088;} else if (whichFylke == "5089,Pembrokeshire") {whichFylke = fylke5089;} else if (whichFylke == "5090,Radnorshire") {whichFylke = fylke5090;} else if (whichFylke == "5091,Bedfordshire") {whichFylke = fylke5091;} else if (whichFylke == "5092,Berkshire") {whichFylke = fylke5092;} else if (whichFylke == "5093,Buckinghamshire") {whichFylke = fylke5093;} else if (whichFylke == "5094,Cambridgeshire") {whichFylke = fylke5094;} else if (whichFylke == "5095,Cheshire") {whichFylke = fylke5095;} else if (whichFylke == "5096,Cornwall") {whichFylke = fylke5096;} else if (whichFylke == "5097,Cumberland") {whichFylke = fylke5097;} else if (whichFylke == "5098,Derbyshire") {whichFylke = fylke5098;} else if (whichFylke == "5099,Devon") {whichFylke = fylke5099;} else if (whichFylke == "5100,Dorset") {whichFylke = fylke5100;} else if (whichFylke == "5101,Durham") {whichFylke = fylke5101;} else if (whichFylke == "5102,Essex") {whichFylke = fylke5102;} else if (whichFylke == "5103,Gloucestershire") {whichFylke = fylke5103;} else if (whichFylke == "5104,Hampshire") {whichFylke = fylke5104;} else if (whichFylke == "5105,Herefordshire") {whichFylke = fylke5105;} else if (whichFylke == "5106,Hertfordshire") {whichFylke = fylke5106;} else if (whichFylke == "5107,Huntingdonshire") {whichFylke = fylke5107;} else if (whichFylke == "5108,Kent") {whichFylke = fylke5108;} else if (whichFylke == "5109,Lancashire") {whichFylke = fylke5109;} else if (whichFylke == "5110,Leicestershire") {whichFylke = fylke5110;} else if (whichFylke == "5111,Lincolnshire") {whichFylke = fylke5111;} else if (whichFylke == "5112,London") {whichFylke = fylke5112;} else if (whichFylke == "5113,Middlesex") {whichFylke = fylke5113;} else if (whichFylke == "5114,Norfolk") {whichFylke = fylke5114;} else if (whichFylke == "5115,Northamptonshire") {whichFylke = fylke5115;} else if (whichFylke == "5116,Northumberland") {whichFylke = fylke5116;} else if (whichFylke == "5117,Nottinghamshire") {whichFylke = fylke5117;} else if (whichFylke == "5118,Oxfordshire") {whichFylke = fylke5118;} else if (whichFylke == "5119,Rutland") {whichFylke = fylke5119;} else if (whichFylke == "5120,Shropshire") {whichFylke = fylke5120;} else if (whichFylke == "5121,Somerset") {whichFylke = fylke5121;} else if (whichFylke == "5122,Staffordshire") {whichFylke = fylke5122;} else if (whichFylke == "5123,Suffolk") {whichFylke = fylke5123;} else if (whichFylke == "5124,Surrey") {whichFylke = fylke5124;} else if (whichFylke == "5125,Sussex") {whichFylke = fylke5125;} else if (whichFylke == "5126,Warwickshire") {whichFylke = fylke5126;} else if (whichFylke == "5127,Westmorland") {whichFylke = fylke5127;} else if (whichFylke == "5128,Wiltshire") {whichFylke = fylke5128;} else if (whichFylke == "5129,Worcestershire") {whichFylke = fylke5129;} else if (whichFylke == "5130,Yorkshire") {whichFylke = fylke5130;} else if (whichFylke == "5131,Yorkshire-E Riding") {whichFylke = fylke5131;} else if (whichFylke == "5132,Yorkshire-N Riding") {whichFylke = fylke5132;} else if (whichFylke == "5133,Yorkshire-W Riding") {whichFylke = fylke5133;} else if (whichFylke == "5134,Alabama") {whichFylke = fylke5134;} else if (whichFylke == "5135,Alaska") {whichFylke = fylke5135;} else if (whichFylke == "5136,Arizona") {whichFylke = fylke5136;} else if (whichFylke == "5137,Arkansas") {whichFylke = fylke5137;} else if (whichFylke == "5138,California") {whichFylke = fylke5138;} else if (whichFylke == "5139,Colorado") {whichFylke = fylke5139;} else if (whichFylke == "5140,Connecticut") {whichFylke = fylke5140;} else if (whichFylke == "5141,Delaware") {whichFylke = fylke5141;} else if (whichFylke == "5142,Florida") {whichFylke = fylke5142;} else if (whichFylke == "5143,Georgia") {whichFylke = fylke5143;} else if (whichFylke == "5144,Hawaii") {whichFylke = fylke5144;} else if (whichFylke == "5145,Idaho") {whichFylke = fylke5145;} else if (whichFylke == "5146,Illinois") {whichFylke = fylke5146;} else if (whichFylke == "5147,Indiana") {whichFylke = fylke5147;} else if (whichFylke == "5148,Iowa") {whichFylke = fylke5148;} else if (whichFylke == "5149,Kansas") {whichFylke = fylke5149;} else if (whichFylke == "5150,Kentucky") {whichFylke = fylke5150;} else if (whichFylke == "5151,Louisiana") {whichFylke = fylke5151;} else if (whichFylke == "5152,Maine") {whichFylke = fylke5152;} else if (whichFylke == "5153,Maryland") {whichFylke = fylke5153;} else if (whichFylke == "5154,Massachusetts") {whichFylke = fylke5154;} else if (whichFylke == "5155,Michigan") {whichFylke = fylke5155;} else if (whichFylke == "5156,Minnesota") {whichFylke = fylke5156;} else if (whichFylke == "5157,Mississippi") {whichFylke = fylke5157;} else if (whichFylke == "5158,Missouri") {whichFylke = fylke5158;} else if (whichFylke == "5159,Montana") {whichFylke = fylke5159;} else if (whichFylke == "5160,Nebraska") {whichFylke = fylke5160;} else if (whichFylke == "5161,Nevada") {whichFylke = fylke5161;} else if (whichFylke == "5162,New Hampshire") {whichFylke = fylke5162;} else if (whichFylke == "5163,New Jersey") {whichFylke = fylke5163;} else if (whichFylke == "5164,New Mexico") {whichFylke = fylke5164;} else if (whichFylke == "5165,New York") {whichFylke = fylke5165;} else if (whichFylke == "5166,North Carolina") {whichFylke = fylke5166;} else if (whichFylke == "5167,North Dakota") {whichFylke = fylke5167;} else if (whichFylke == "5168,Ohio") {whichFylke = fylke5168;} else if (whichFylke == "5169,Oklahoma") {whichFylke = fylke5169;} else if (whichFylke == "5170,Oregon") {whichFylke = fylke5170;} else if (whichFylke == "5171,Pennsylvania") {whichFylke = fylke5171;} else if (whichFylke == "5172,Rhode Island") {whichFylke = fylke5172;} else if (whichFylke == "5173,South Carolina") {whichFylke = fylke5173;} else if (whichFylke == "5174,South Dakota") {whichFylke = fylke5174;} else if (whichFylke == "5175,Tennessee") {whichFylke = fylke5175;} else if (whichFylke == "5176,Texas") {whichFylke = fylke5176;} else if (whichFylke == "5177,Utah") {whichFylke = fylke5177;} else if (whichFylke == "5178,Vermont") {whichFylke = fylke5178;} else if (whichFylke == "5179,Virginia") {whichFylke = fylke5179;} else if (whichFylke == "5180,Washington") {whichFylke = fylke5180;} else if (whichFylke == "5181,Washington, D.C.") {whichFylke = fylke5181;} else if (whichFylke == "5182,West Virginia") {whichFylke = fylke5182;} else if (whichFylke == "5183,Wisconsin") {whichFylke = fylke5183;} else if (whichFylke == "5184,Wyoming") {whichFylke = fylke5184;} else if (whichFylke == "7,Vestfold") {whichFylke = fylke7;} else if (whichFylke == "104,Södermanland") {whichFylke = fylke104;} else if (whichFylke == "105,Östergötland") {whichFylke = fylke105;} else if (whichFylke == "106,Jönkoping") {whichFylke = fylke106;} else if (whichFylke == "107,Kronoberg (Småland)") {whichFylke = fylke107;} else if (whichFylke == "108,Kalmar") {whichFylke = fylke108;} else if (whichFylke == "109,Gotland") {whichFylke = fylke109;} else if (whichFylke == "110,Blekinge") {whichFylke = fylke110;} else if (whichFylke == "111,Skåne (Kristianstad)") {whichFylke = fylke111;} else if (whichFylke == "112,Skåne (Malmöhus)") {whichFylke = fylke112;} else if (whichFylke == "113,Halland") {whichFylke = fylke113;} else if (whichFylke == "114,Västra Götaland (Göteborg/Bohuslän)") {whichFylke = fylke114;} else if (whichFylke == "115,Västra Götaland (Älvsborg)") {whichFylke = fylke115;} else if (whichFylke == "116,Västra Götaland (Skaraborg)") {whichFylke = fylke116;} else if (whichFylke == "117,Värmland") {whichFylke = fylke117;} else if (whichFylke == "118,Örebro") {whichFylke = fylke118;} else if (whichFylke == "119,Västmanland") {whichFylke = fylke119;} else if (whichFylke == "120,Kopparberg (Dalarna)") {whichFylke = fylke120;} else if (whichFylke == "121,Gävleborg") {whichFylke = fylke121;} else if (whichFylke == "122,Västernorrland") {whichFylke = fylke122;} else if (whichFylke == "123,Jämtland") {whichFylke = fylke123;} else if (whichFylke == "124,Västerbotten") {whichFylke = fylke124;} else if (whichFylke == "125,Norrbotten") {whichFylke = fylke125;} else if (whichFylke == "130,Bornholms Amt") {whichFylke = fylke130;} else if (whichFylke == "131,Frederiksborg Amt") {whichFylke = fylke131;} else if (whichFylke == "132,Fyns Amt") {whichFylke = fylke132;} else if (whichFylke == "133,Københavns Amt") {whichFylke = fylke133;} else if (whichFylke == "134,Nordjyllands Amt") {whichFylke = fylke134;} else if (whichFylke == "135,Ribe Amt") {whichFylke = fylke135;} else if (whichFylke == "136,Ringkjøbing Amt") {whichFylke = fylke136;} else if (whichFylke == "137,Roskilde Amt") {whichFylke = fylke137;} else if (whichFylke == "138,Storstrøms Amt") {whichFylke = fylke138;} else if (whichFylke == "139,Sønderjyllands Amt") {whichFylke = fylke139;} else if (whichFylke == "140,Vejle Amt") {whichFylke = fylke140;} else if (whichFylke == "141,Vestsjællands Amt") {whichFylke = fylke141;} else if (whichFylke == "142,Viborg Amt") {whichFylke = fylke142;} else if (whichFylke == "143,Århus Amt") {whichFylke = fylke143;} else {whichFylke = noCounty; } //Now load the array items into the drop down for (loadLoop = 0; loadLoop < whichFylke.length; loadLoop ++) { document.searchbox.kommune_bo.options[loadLoop] = new Option(whichFylke[loadLoop].split(":")[0], (whichFylke[loadLoop].split(":")[1] + "," + whichFylke[loadLoop].split(":")[0])); } //Set the length of the drop down to the length of the array and select the default item document.searchbox.kommune_bo.options.length = whichFylke.length; document.searchbox.kommune_bo.options[0].selected = true; }