
function SearchfillCategory(){ 
 // this function is used to fill the category list on load
SearchaddOption(document.drop_list.Category, "län", "län", "");
SearchaddOption(document.drop_list.Category, "Blekinge", "Blekinge", "");
SearchaddOption(document.drop_list.Category, "Dalarna", "Dalarna", "");
SearchaddOption(document.drop_list.Category, "Gotland", "Gotland", "");
SearchaddOption(document.drop_list.Category, "Gävleborg", "Gävleborg", "");
SearchaddOption(document.drop_list.Category, "Halland", "Halland", "");
SearchaddOption(document.drop_list.Category, "Jämtland", "Jämtland", "");
SearchaddOption(document.drop_list.Category, "Jönköping", "Jönköping", "");
SearchaddOption(document.drop_list.Category, "Kalmar", "Kalmar", "");
SearchaddOption(document.drop_list.Category, "Kronoberg", "Kronoberg", "");
SearchaddOption(document.drop_list.Category, "Norrbotten", "Norrbotten", "");
SearchaddOption(document.drop_list.Category, "Skåne", "Skåne", "");
SearchaddOption(document.drop_list.Category, "Stockholm", "Stockholm", "");
SearchaddOption(document.drop_list.Category, "Södermanland", "Södermanland", "");
SearchaddOption(document.drop_list.Category, "Uppsala", "Uppsala", "");
SearchaddOption(document.drop_list.Category, "Värmland", "Värmland", "");
SearchaddOption(document.drop_list.Category, "Västerbotten", "Västerbotten", "");
SearchaddOption(document.drop_list.Category, "Västernorrland", "Västernorrland", "");
SearchaddOption(document.drop_list.Category, "Västmanland", "Västmanland", "");
SearchaddOption(document.drop_list.Category, "Västra Götaland", "Västra Götaland", "");
SearchaddOption(document.drop_list.Category, "Örebro", "Örebro", "");
SearchaddOption(document.drop_list.Category, "Östergötland", "Östergötland", "");

}






function SearchSelectSubCat(){
// ON selection of category this function will work

SearchremoveAllOptions(document.drop_list.SubCat);
SearchaddOption(document.drop_list.SubCat, "", "kommun", "kommun");
SearchaddOption(document.drop_list.SubCat, "", "Vill ej uppge", "Vill en ange");

if(document.drop_list.Category.value == 'Blekinge'){
SearchaddOption(document.drop_list.SubCat,"Karlshamn", "Karlshamn");
SearchaddOption(document.drop_list.SubCat,"Karlskrona", "Karlskrona");
SearchaddOption(document.drop_list.SubCat,"Olofströms", "Olofströms");
SearchaddOption(document.drop_list.SubCat,"Ronneby", "Ronneby");
SearchaddOption(document.drop_list.SubCat,"Sölvesborg", "Sölvesborg");
}
if(document.drop_list.Category.value == 'Dalarna'){
SearchaddOption(document.drop_list.SubCat,"Avesta", "Avesta");
SearchaddOption(document.drop_list.SubCat,"Borlänge", "Borlänge");
SearchaddOption(document.drop_list.SubCat,"Falun", "Falun", "");
SearchaddOption(document.drop_list.SubCat,"Gagnef", "Gagnef");
SearchaddOption(document.drop_list.SubCat,"Hedemora", "Hedemora");
SearchaddOption(document.drop_list.SubCat,"Leksand", "Leksand", "");
SearchaddOption(document.drop_list.SubCat,"Ludvika", "Ludvika");
SearchaddOption(document.drop_list.SubCat,"Malung-sälen", "Malung-sälen");
SearchaddOption(document.drop_list.SubCat,"Mora", "Mora", "");
SearchaddOption(document.drop_list.SubCat,"Orsa", "Orsa");
SearchaddOption(document.drop_list.SubCat,"Rättvik", "Rättvik");
SearchaddOption(document.drop_list.SubCat,"Smedjebacken", "Smedjebacken", "");
SearchaddOption(document.drop_list.SubCat,"Säter", "Säter");
SearchaddOption(document.drop_list.SubCat,"Vansbro", "Vansbro");
SearchaddOption(document.drop_list.SubCat,"Älvdalen", "Älvdalen", "");
}

if(document.drop_list.Category.value == 'Gotland'){
SearchaddOption(document.drop_list.SubCat,"Gotland", "Gotland");
}

if(document.drop_list.Category.value == 'Gävleborg'){
SearchaddOption(document.drop_list.SubCat,"Bollnäs", "Bollnäs");
SearchaddOption(document.drop_list.SubCat,"Gävle", "Gävle");
SearchaddOption(document.drop_list.SubCat,"Hofors", "Hofors");
SearchaddOption(document.drop_list.SubCat,"Hudiksvall", "Hudiksvall");
SearchaddOption(document.drop_list.SubCat,"Ljusdal", "Ljusdal");
SearchaddOption(document.drop_list.SubCat,"Nordanstig", "Nordanstig");
SearchaddOption(document.drop_list.SubCat,"Ockelbo", "Ockelbo");
SearchaddOption(document.drop_list.SubCat,"Ovanåkers", "Ovanåkers");
SearchaddOption(document.drop_list.SubCat,"Sandviken", "Sandviken");
SearchaddOption(document.drop_list.SubCat,"Söderhamn", "Söderhamn");
}

if(document.drop_list.Category.value == 'Halland'){
SearchaddOption(document.drop_list.SubCat,"Falkenberg", "Falkenberg");
SearchaddOption(document.drop_list.SubCat,"Halmstad", "Halmstad");
SearchaddOption(document.drop_list.SubCat,"Hylte", "Hylte");
SearchaddOption(document.drop_list.SubCat,"Kungsbacka", "Kungsbacka");
SearchaddOption(document.drop_list.SubCat,"Laholm", "Laholm");
SearchaddOption(document.drop_list.SubCat,"Varberg", "Varberg");
}

if(document.drop_list.Category.value == 'Jämtland'){
SearchaddOption(document.drop_list.SubCat,"Berg", "Berg");
SearchaddOption(document.drop_list.SubCat,"Bräcke", "Bräcke");
SearchaddOption(document.drop_list.SubCat,"Härjedalen", "Härjedalen");
SearchaddOption(document.drop_list.SubCat,"Krokom", "Krokom");
SearchaddOption(document.drop_list.SubCat,"Ragunda", "Ragunda");
SearchaddOption(document.drop_list.SubCat,"Strömsund", "Strömsund");
SearchaddOption(document.drop_list.SubCat,"Åre", "Åre");
SearchaddOption(document.drop_list.SubCat,"Östersund", "Östersund");
}

if(document.drop_list.Category.value == 'Jönköping'){
SearchaddOption(document.drop_list.SubCat,"Aneby", "Aneby");
SearchaddOption(document.drop_list.SubCat,"Eksjö", "Eksjö");
SearchaddOption(document.drop_list.SubCat,"Gislaved", "Gislaved");
SearchaddOption(document.drop_list.SubCat,"Gnosjö", "Gnosjö");
SearchaddOption(document.drop_list.SubCat,"Habo", "Habo");
SearchaddOption(document.drop_list.SubCat,"Jönköping", "Jönköping");
SearchaddOption(document.drop_list.SubCat,"Mullsjö", "Mullsjö");
SearchaddOption(document.drop_list.SubCat,"Nässjö", "Nässjö");
SearchaddOption(document.drop_list.SubCat,"Sävsjö", "Sävsjö");
SearchaddOption(document.drop_list.SubCat,"Tranås", "Tranås");
SearchaddOption(document.drop_list.SubCat,"Vaggeryd", "Vaggeryd");
SearchaddOption(document.drop_list.SubCat,"Vetlanda", "Vetlanda");
SearchaddOption(document.drop_list.SubCat,"Värnamo", "Värnamo");
}

if(document.drop_list.Category.value == 'Kalmar'){
SearchaddOption(document.drop_list.SubCat,"Borgholm", "Borgholm");
SearchaddOption(document.drop_list.SubCat,"Emmaboda", "Emmaboda");
SearchaddOption(document.drop_list.SubCat,"Hultsfred", "Hultsfred");
SearchaddOption(document.drop_list.SubCat,"Högsby", "Högsby");
SearchaddOption(document.drop_list.SubCat,"Kalmar", "Kalmar");
SearchaddOption(document.drop_list.SubCat,"Mönsterås", "Mönsterås");
SearchaddOption(document.drop_list.SubCat,"Mörbylånga", "Mörbylånga");
SearchaddOption(document.drop_list.SubCat,"Nybro", "Nybro");
SearchaddOption(document.drop_list.SubCat,"Oskarshamn", "Oskarshamn");
SearchaddOption(document.drop_list.SubCat,"Torsås", "Torsås");
SearchaddOption(document.drop_list.SubCat,"Vimmerby", "Vimmerby");
SearchaddOption(document.drop_list.SubCat,"Västervik", "Västervik");

}

if(document.drop_list.Category.value == 'Kronoberg'){
SearchaddOption(document.drop_list.SubCat,"Alvesta", "Alvesta");
SearchaddOption(document.drop_list.SubCat,"Lessebo", "Lessebo");
SearchaddOption(document.drop_list.SubCat,"Ljungby", "Ljungby");
SearchaddOption(document.drop_list.SubCat,"Markaryd", "Markaryd");
SearchaddOption(document.drop_list.SubCat,"Tingsryd", "Tingsryd");
SearchaddOption(document.drop_list.SubCat,"Uppvidinge", "Uppvidinge");
SearchaddOption(document.drop_list.SubCat,"Växjö", "Växjö");
SearchaddOption(document.drop_list.SubCat,"Älmhult", "Älmhult");
}

if(document.drop_list.Category.value == 'Norrbotten'){
SearchaddOption(document.drop_list.SubCat,"Arjeplog", "Arjeplog");
SearchaddOption(document.drop_list.SubCat,"Arvidsjaur", "Arvidsjaur");
SearchaddOption(document.drop_list.SubCat,"Boden", "Boden");
SearchaddOption(document.drop_list.SubCat,"Gällivare", "Gällivare");
SearchaddOption(document.drop_list.SubCat,"Haparanda", "Haparanda");
SearchaddOption(document.drop_list.SubCat,"Jokkmokk", "Jokkmokk");
SearchaddOption(document.drop_list.SubCat,"Kalix", "Kalix");
SearchaddOption(document.drop_list.SubCat,"Kiruna", "Kiruna");
SearchaddOption(document.drop_list.SubCat,"Luleå", "Luleå");
SearchaddOption(document.drop_list.SubCat,"Pajala", "Pajala");
SearchaddOption(document.drop_list.SubCat,"Piteå", "Piteå");
SearchaddOption(document.drop_list.SubCat,"Älvsbyn", "Älvsbyn");
SearchaddOption(document.drop_list.SubCat,"Överkalix", "Överkalix");
SearchaddOption(document.drop_list.SubCat,"Övertårneå", "Övertårneå");
}

if(document.drop_list.Category.value == 'Skåne'){
SearchaddOption(document.drop_list.SubCat,"Bjuv", "Bjuv");
SearchaddOption(document.drop_list.SubCat,"Bormölla", "Bormölla");
SearchaddOption(document.drop_list.SubCat,"Burlöv", "Burlöv");
SearchaddOption(document.drop_list.SubCat,"Båstad", "Båstad");
SearchaddOption(document.drop_list.SubCat,"Eslöv", "Eslöv");
SearchaddOption(document.drop_list.SubCat,"Helsingborg", "Helsingborg");
SearchaddOption(document.drop_list.SubCat,"Hässleholm", "Hässleholm");
SearchaddOption(document.drop_list.SubCat,"Höganäs", "Höganäs");
SearchaddOption(document.drop_list.SubCat,"Hörby", "Hörby");
SearchaddOption(document.drop_list.SubCat,"Höörs", "Höörs");
SearchaddOption(document.drop_list.SubCat,"Klippan", "Klippan");
SearchaddOption(document.drop_list.SubCat,"Kristianstad", "Kristianstad");
SearchaddOption(document.drop_list.SubCat,"Kävlinge", "Kävlinge");
SearchaddOption(document.drop_list.SubCat,"Landskrona", "Landskrona");
SearchaddOption(document.drop_list.SubCat,"Lomma", "Lomma");
SearchaddOption(document.drop_list.SubCat,"Lund", "Lund");
SearchaddOption(document.drop_list.SubCat,"Malmö", "Malmö");
SearchaddOption(document.drop_list.SubCat,"Osby", "Osby");
SearchaddOption(document.drop_list.SubCat,"Perstorp", "Perstorp");
SearchaddOption(document.drop_list.SubCat,"Simrishamn", "Simrishamn");
SearchaddOption(document.drop_list.SubCat,"Sjöbo", "Sjöbo");
SearchaddOption(document.drop_list.SubCat,"Skurup", "Skurup");
SearchaddOption(document.drop_list.SubCat,"Staffanstorp", "Staffanstorp");
SearchaddOption(document.drop_list.SubCat,"Svalöv", "Svalöv");
SearchaddOption(document.drop_list.SubCat,"Svedala", "Svedala");
SearchaddOption(document.drop_list.SubCat,"Tomtelilla", "Tomtelilla");
SearchaddOption(document.drop_list.SubCat,"Trelleborg", "Trelleborg");
SearchaddOption(document.drop_list.SubCat,"Vellinge", "Vellinge");
SearchaddOption(document.drop_list.SubCat,"Ystad", "Ystad");
SearchaddOption(document.drop_list.SubCat,"Åstorp", "Åstorp");
SearchaddOption(document.drop_list.SubCat,"Ängelholm", "Ängelholm");
SearchaddOption(document.drop_list.SubCat,"Örkelljunga", "Örkelljunga");
SearchaddOption(document.drop_list.SubCat,"Östra Göinge", "Östra Göinge");
}

if(document.drop_list.Category.value == 'Stockholm'){
SearchaddOption(document.drop_list.SubCat,"Botkyrka", "Botkyrka");
SearchaddOption(document.drop_list.SubCat,"Danderyd", "Danderyd");
SearchaddOption(document.drop_list.SubCat,"Ekerö", "Ekerö");
SearchaddOption(document.drop_list.SubCat,"Haninge", "Haninge");
SearchaddOption(document.drop_list.SubCat,"Huddinge", "Huddinge");
SearchaddOption(document.drop_list.SubCat,"Järfälla", "Järfälla");
SearchaddOption(document.drop_list.SubCat,"Lidingö", "Lidingö");
SearchaddOption(document.drop_list.SubCat,"Nacka", "Nacka");
SearchaddOption(document.drop_list.SubCat,"Norrtälje", "Norrtälje");
SearchaddOption(document.drop_list.SubCat,"Nykvarn", "Nykvarn");
SearchaddOption(document.drop_list.SubCat,"Nynäshamn", "Nynäshamn");
SearchaddOption(document.drop_list.SubCat,"Salem", "Salem");
SearchaddOption(document.drop_list.SubCat,"Sigtuna", "Sigtuna");
SearchaddOption(document.drop_list.SubCat,"Sollentuna", "Sollentuna");
SearchaddOption(document.drop_list.SubCat,"Solna", "Solna");
SearchaddOption(document.drop_list.SubCat,"Stockholms stad", "Stockholms stad");
SearchaddOption(document.drop_list.SubCat,"Sundbyberg", "Sundbyberg");
SearchaddOption(document.drop_list.SubCat,"Södertälje", "Södertälje");
SearchaddOption(document.drop_list.SubCat,"Tyresö", "Tyresö");
SearchaddOption(document.drop_list.SubCat,"Täby", "Täby");
SearchaddOption(document.drop_list.SubCat,"Upplands Väsby", "Upplands Väsby");
SearchaddOption(document.drop_list.SubCat,"Upplands-Bro", "Upplands-Bro");
SearchaddOption(document.drop_list.SubCat,"Vallentuna", "Vallentuna");
SearchaddOption(document.drop_list.SubCat,"Vaxholm", "Vaxholm");
SearchaddOption(document.drop_list.SubCat,"Värmdö", "Värmdö");
SearchaddOption(document.drop_list.SubCat,"Österåker", "Österåker");
}

if(document.drop_list.Category.value == 'Södermanland'){
SearchaddOption(document.drop_list.SubCat,"Eskilstuna", "Eskilstuna");
SearchaddOption(document.drop_list.SubCat,"Flen", "Flen");
SearchaddOption(document.drop_list.SubCat,"Gnesta", "Gnesta");
SearchaddOption(document.drop_list.SubCat,"Katrineholm", "Katrineholm");
SearchaddOption(document.drop_list.SubCat,"Nyköping", "Nyköping");
SearchaddOption(document.drop_list.SubCat,"Oxelösund", "Oxelösund");
SearchaddOption(document.drop_list.SubCat,"Strängnäs", "Strängnäs");
SearchaddOption(document.drop_list.SubCat,"Trosa", "Trosa");
SearchaddOption(document.drop_list.SubCat,"Vingåker", "Vingåker");
}

if(document.drop_list.Category.value == 'Uppsala'){
SearchaddOption(document.drop_list.SubCat,"Enköping", "Enköping");
SearchaddOption(document.drop_list.SubCat,"Heby", "Heby");
SearchaddOption(document.drop_list.SubCat,"Håbo", "Håbo");
SearchaddOption(document.drop_list.SubCat,"Knivsta", "Knivsta");
SearchaddOption(document.drop_list.SubCat,"Tierp", "Tierp");
SearchaddOption(document.drop_list.SubCat,"Uppsala", "Uppsala");
SearchaddOption(document.drop_list.SubCat,"Älvkarleby", "Älvkarleby");
SearchaddOption(document.drop_list.SubCat,"Östhammar", "Östhammar");
}

if(document.drop_list.Category.value == 'Värmland'){
SearchaddOption(document.drop_list.SubCat,"Arvika", "Arvika");
SearchaddOption(document.drop_list.SubCat,"Eda", "Eda");
SearchaddOption(document.drop_list.SubCat,"Filipstad", "Filipstad");
SearchaddOption(document.drop_list.SubCat,"Forshaga", "Forshaga");
SearchaddOption(document.drop_list.SubCat,"Grums", "Grums");
SearchaddOption(document.drop_list.SubCat,"Hagfors", "Hagfors");
SearchaddOption(document.drop_list.SubCat,"Hammarö", "Hammarö");
SearchaddOption(document.drop_list.SubCat,"Karlstad", "Karlstad");
SearchaddOption(document.drop_list.SubCat,"Kil", "Kil");
SearchaddOption(document.drop_list.SubCat,"Kristinehamn", "Kristinehamn");
SearchaddOption(document.drop_list.SubCat,"Munkfors", "Munkfors");
SearchaddOption(document.drop_list.SubCat,"Storfors", "Storfors");
SearchaddOption(document.drop_list.SubCat,"Sunne", "Sunne");
SearchaddOption(document.drop_list.SubCat,"Säffle", "Säffle");
SearchaddOption(document.drop_list.SubCat,"Torsby", "Torsby");
SearchaddOption(document.drop_list.SubCat,"Årjäng", "Årjäng");
}

if(document.drop_list.Category.value == 'Västerbotten'){
SearchaddOption(document.drop_list.SubCat,"Bjurholm", "Bjurholm");
SearchaddOption(document.drop_list.SubCat,"Dorotea", "Dorotea");
SearchaddOption(document.drop_list.SubCat,"Lycksele", "Lycksele");
SearchaddOption(document.drop_list.SubCat,"Malå", "Malå");
SearchaddOption(document.drop_list.SubCat,"Nordmalings", "Nordmalings");
SearchaddOption(document.drop_list.SubCat,"Norsjö", "Norsjö");
SearchaddOption(document.drop_list.SubCat,"Robertsfors", "Robertsfors");
SearchaddOption(document.drop_list.SubCat,"Skellefteå", "Skellefteå");
SearchaddOption(document.drop_list.SubCat,"Sorsele", "Sorsele");
SearchaddOption(document.drop_list.SubCat,"Storuman", "Storuman");
SearchaddOption(document.drop_list.SubCat,"Umeå", "Umeå");
SearchaddOption(document.drop_list.SubCat,"Villhelmina", "Villhelmina");
SearchaddOption(document.drop_list.SubCat,"Vindeln", "Vindeln");
SearchaddOption(document.drop_list.SubCat,"Vännäs", "Vännäs");
SearchaddOption(document.drop_list.SubCat,"Åsele", "Åsele");
}

if(document.drop_list.Category.value == 'Västernorrland'){
SearchaddOption(document.drop_list.SubCat,"Härnösand", "Härnösand");
SearchaddOption(document.drop_list.SubCat,"Kramfors", "Kramfors");
SearchaddOption(document.drop_list.SubCat,"Sollefteå", "Sollefteå");
SearchaddOption(document.drop_list.SubCat,"Sundsvall", "Sundsvall");
SearchaddOption(document.drop_list.SubCat,"Timrå", "Timrå");
SearchaddOption(document.drop_list.SubCat,"Ånge", "Ånge")
SearchaddOption(document.drop_list.SubCat,"Örnsköldsvik", "Örnsköldsvik");
}

if(document.drop_list.Category.value == 'Västmanland'){
SearchaddOption(document.drop_list.SubCat,"Arboga", "Arboga");
SearchaddOption(document.drop_list.SubCat,"Fagersta", "Fagersta");
SearchaddOption(document.drop_list.SubCat,"Hallstahammar", "Hallstahammar");
SearchaddOption(document.drop_list.SubCat,"Kungsör", "Kungsör");
SearchaddOption(document.drop_list.SubCat,"Köping", "Köping");
SearchaddOption(document.drop_list.SubCat,"Norberg", "Norberg");
SearchaddOption(document.drop_list.SubCat,"Sala", "Sala");
SearchaddOption(document.drop_list.SubCat,"Skinnskatteberg", "Skinnskatteberg");
SearchaddOption(document.drop_list.SubCat,"Surahammar", "Surahammar");
SearchaddOption(document.drop_list.SubCat,"Västerås", "Västerås");
}

if(document.drop_list.Category.value == 'Västra Götaland'){
SearchaddOption(document.drop_list.SubCat,"Ale", "Ale");
SearchaddOption(document.drop_list.SubCat,"Alingsås", "Alingsås");
SearchaddOption(document.drop_list.SubCat,"Bengtfors", "Bengtfors");
SearchaddOption(document.drop_list.SubCat,"Bollebygd", "Bollebygd");
SearchaddOption(document.drop_list.SubCat,"Borås", "Borås");
SearchaddOption(document.drop_list.SubCat,"Dals-Eds", "Dals-Eds");
SearchaddOption(document.drop_list.SubCat,"Essunga", "Essunga");
SearchaddOption(document.drop_list.SubCat,"Falkköping", "Falkköping");
SearchaddOption(document.drop_list.SubCat,"Färgelanda", "Färgelanda");
SearchaddOption(document.drop_list.SubCat,"Grästorp", "Grästorp");
SearchaddOption(document.drop_list.SubCat,"Gullspång", "Gullspång");
SearchaddOption(document.drop_list.SubCat,"Göteborgs stad", "Göteborgs stad");
SearchaddOption(document.drop_list.SubCat,"Götene", "Götene");
SearchaddOption(document.drop_list.SubCat,"Herrljunga", "Herrljunga");
SearchaddOption(document.drop_list.SubCat,"Hjo", "Hjo");
SearchaddOption(document.drop_list.SubCat,"Härryda", "Härryda");
SearchaddOption(document.drop_list.SubCat,"Karlsborg", "Karlsborg");
SearchaddOption(document.drop_list.SubCat,"Kungälv", "Kungälv");
SearchaddOption(document.drop_list.SubCat,"Lerum", "Lerum");
SearchaddOption(document.drop_list.SubCat,"Lidköping", "Lidköping");
SearchaddOption(document.drop_list.SubCat,"Lilla Edet", "Lilla Edet");
SearchaddOption(document.drop_list.SubCat,"Lysekil", "Lysekil");
SearchaddOption(document.drop_list.SubCat,"Mariestad", "Mariestad");
SearchaddOption(document.drop_list.SubCat,"Marks", "Marks");
SearchaddOption(document.drop_list.SubCat,"Mellerud", "ellerud");
SearchaddOption(document.drop_list.SubCat,"Munkedal", "Munkedal");
SearchaddOption(document.drop_list.SubCat,"Mölndal", "Mölndal");
SearchaddOption(document.drop_list.SubCat,"Orust", "Orust");
SearchaddOption(document.drop_list.SubCat,"Partille", "Partille");
SearchaddOption(document.drop_list.SubCat,"Skara", "Skara");
SearchaddOption(document.drop_list.SubCat,"Skövde", "v");
SearchaddOption(document.drop_list.SubCat,"Sotenäs", "Sotenäs");
SearchaddOption(document.drop_list.SubCat,"Stenungsund", "Stenungsund");
SearchaddOption(document.drop_list.SubCat,"Strömstad", "Strömstad");
SearchaddOption(document.drop_list.SubCat,"Svenljunga", "Svenljunga");
SearchaddOption(document.drop_list.SubCat,"Tanum", "Tanum");
SearchaddOption(document.drop_list.SubCat,"Tibro", "Tibro");
SearchaddOption(document.drop_list.SubCat,"Tidaholm", "Tidaholm");
SearchaddOption(document.drop_list.SubCat,"Tjörn", "Tjörn");
SearchaddOption(document.drop_list.SubCat,"Tranemo", "Tranemo");
SearchaddOption(document.drop_list.SubCat,"Trollhättan", "Trollhättan");
SearchaddOption(document.drop_list.SubCat,"Töreboda", "Töreboda");
SearchaddOption(document.drop_list.SubCat,"Uddevalla", "Uddevalla");
SearchaddOption(document.drop_list.SubCat,"Ulricehamn", "Ulricehamn");
SearchaddOption(document.drop_list.SubCat,"Vara", "Vara");
SearchaddOption(document.drop_list.SubCat,"Vårgårda", "Vårgårda");
SearchaddOption(document.drop_list.SubCat,"Vänersborg", "Vänersborg");
SearchaddOption(document.drop_list.SubCat,"Åmål", "Åmål");
SearchaddOption(document.drop_list.SubCat,"Öckerö", "Öckerö");
}


if(document.drop_list.Category.value == 'Örebro'){
SearchaddOption(document.drop_list.SubCat,"Askersund", "Askersund");
SearchaddOption(document.drop_list.SubCat,"Degerfors", "Degerfors");
SearchaddOption(document.drop_list.SubCat,"Hallberg", "Hallberg");
SearchaddOption(document.drop_list.SubCat,"Hällefors", "Hällefors");
SearchaddOption(document.drop_list.SubCat,"Karlskoga", "Karlskoga");
SearchaddOption(document.drop_list.SubCat,"Kumla", "Kumla");
SearchaddOption(document.drop_list.SubCat,"Laxå", "Laxå");
SearchaddOption(document.drop_list.SubCat,"Lekeberg", "Lekeberg");
SearchaddOption(document.drop_list.SubCat,"Lindeberg", "Lindeberg");
SearchaddOption(document.drop_list.SubCat,"Ljusnarberg", "Ljusnarberg");
SearchaddOption(document.drop_list.SubCat,"Nora", "Nora");
SearchaddOption(document.drop_list.SubCat,"Örebro", "Örebro");
}


if(document.drop_list.Category.value == 'Östergötland'){
SearchaddOption(document.drop_list.SubCat,"Boxholm", "Boxholm");
SearchaddOption(document.drop_list.SubCat,"Finspång", "Finspång");
SearchaddOption(document.drop_list.SubCat,"Kinda", "Kinda");
SearchaddOption(document.drop_list.SubCat,"Linköping", "Linköping");
SearchaddOption(document.drop_list.SubCat,"Mjölby", "Mjölby");
SearchaddOption(document.drop_list.SubCat,"Motala", "Motala");
SearchaddOption(document.drop_list.SubCat,"Norrköping", "Norrköping");
SearchaddOption(document.drop_list.SubCat,"Söderköping", "Söderköping");
SearchaddOption(document.drop_list.SubCat,"Vadstena", "Vadstena");
SearchaddOption(document.drop_list.SubCat,"Valdemarsvik", "Valdemarsvik");
SearchaddOption(document.drop_list.SubCat,"Ydre", "Ydre");
SearchaddOption(document.drop_list.SubCat,"Åtvidaberg", "Åtvidaberg");
SearchaddOption(document.drop_list.SubCat,"Ödeshög", "Ödeshög");

}


}
////////////////// 

function SearchremoveAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}


function SearchaddOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}

