function dalnice2(dalnice) { select=document.getElementById('najezd'); while(select.length>1) select.remove(1); select=document.getElementById('sjezd'); while(select.length>1) select.remove(1); if (dalnice=="a1") { select=document.getElementById('najezd'); var option=document.createElement("OPTION"); option.text="Zagreb (Lučko)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} option.selected=true; var option=document.createElement("OPTION"); option.text="Zdenčina"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Jestrebarsko"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Karlovac"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Novigrad"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Bosiljevo"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ogulin"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Brinje"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Žuta Lokva"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Otočac"; option.value="10"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Perušić"; option.value="11"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Gospić"; option.value="12"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Gornja Ploča"; option.value="13"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Sveti Rok"; option.value="14"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Maslenica"; option.value="15"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Posedarje"; option.value="16"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zadar - zachód"; option.value="17"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zadar - wschód"; option.value="18"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Benkovac"; option.value="19"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Pirovac"; option.value="20"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Skradin"; option.value="21"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Šibenik"; option.value="22"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vrpolje"; option.value="23"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Prgomet"; option.value="24"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vučevica"; option.value="25"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Dugopolje (Split)"; option.value="26"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Bisko"; option.value="27"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Blato na Cetini"; option.value="28"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Šestanovac"; option.value="29"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zagvozd"; option.value="30"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ravča"; option.value="31"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vrgorac"; option.value="32"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Karamatići"; option.value="33"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Čarapine"; option.value="34"; try{ select.add(option,null); }catch(e){ select.add(option);} select=document.getElementById('sjezd'); var option=document.createElement("OPTION"); option.text="Zagreb (Lučko)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zdenčina"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Jestrebarsko"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Karlovac"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Novigrad"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Bosiljevo"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ogulin"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Brinje"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Žuta Lokva"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Otočac"; option.value="10"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Perušić"; option.value="11"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Gospić"; option.value="12"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Gornja Ploča"; option.value="13"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Sveti Rok"; option.value="14"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Maslenica"; option.value="15"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Posedarje"; option.value="16"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zadar - zachód"; option.value="17"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zadar - wschód"; option.value="18"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Benkovac"; option.value="19"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Pirovac"; option.value="20"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Skradin"; option.value="21"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Šibenik"; option.value="22"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vrpolje"; option.value="23"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Prgomet"; option.value="24"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vučevica"; option.value="25"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Dugopolje (Split)"; option.value="26"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Bisko"; option.value="27"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Blato na Cetini"; option.value="28"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Šestanovac"; option.value="29"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zagvozd"; option.value="30"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ravča"; option.value="31"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vrgorac"; option.value="32"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Karamatići"; option.value="33"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Čarapine"; option.value="34"; try{ select.add(option,null); }catch(e){ select.add(option);} document.getElementById('sjezd').selected=true; } else if (dalnice=="a2") { select=document.getElementById('najezd'); var option=document.createElement("OPTION"); option.text="Zaprešić (Zagreb)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} option.selected=true; var option=document.createElement("OPTION"); option.text="Mokrice"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Začretje"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Krapina"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Đurmanec"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Trakošćan (Macelj)"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} select=document.getElementById('sjezd'); var option=document.createElement("OPTION"); option.text="Zaprešić (Zagreb)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Mokrice"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Začretje"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Krapina"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Đurmanec"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Trakošćan (Macelj)"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} document.getElementById('sjezd').selected=true; } else if (dalnice=="a3") { select=document.getElementById('najezd'); var option=document.createElement("OPTION"); option.text="Bobovica (Bregana)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} option.selected=true; var option=document.createElement("OPTION"); option.text="Zagreb (Jankomir)"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zagreb (Ivanja Reka)"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ivanić Grad"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Križ"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Popovača"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Kutina"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Novska"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Okučani"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Nova Gradiška"; option.value="10"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Lužani"; option.value="11"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Slavonski Brod zachód"; option.value="12"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Slavonski Brod wschód"; option.value="13"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Đakovo"; option.value="14"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Čepin"; option.value="15"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Osijek"; option.value="16"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Velika Kopanica"; option.value="17"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Babina Greda"; option.value="18"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Županja"; option.value="19"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Spačva"; option.value="20"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Lipovac"; option.value="21"; try{ select.add(option,null); }catch(e){ select.add(option);} select=document.getElementById('sjezd'); var option=document.createElement("OPTION"); option.text="Bobovica (Bregana)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zagreb (Jankomir)"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zagreb (Ivanja Reka)"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ivanić Grad"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Križ"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Popovača"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Kutina"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Novska"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Okučani"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Nova Gradiška"; option.value="10"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Lužani"; option.value="11"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Slavonski Brod zachód"; option.value="12"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Slavonski Brod wschód"; option.value="13"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Đakovo"; option.value="14"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Čepin"; option.value="15"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Osijek"; option.value="16"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Velika Kopanica"; option.value="17"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Babina Greda"; option.value="18"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Županja"; option.value="19"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Spačva"; option.value="20"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Lipovac"; option.value="21"; try{ select.add(option,null); }catch(e){ select.add(option);} document.getElementById('sjezd').selected=true; } else if (dalnice=="a4") { select=document.getElementById('najezd'); var option=document.createElement("OPTION"); option.text="Sveta Helena (Zagreb)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} option.selected=true; var option=document.createElement("OPTION"); option.text="Komin"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Breznički Hum"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Novi Marof"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Varaždinske Toplice"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Varaždin"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ludbreg"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Čakovec"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Goričan"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} select=document.getElementById('sjezd'); var option=document.createElement("OPTION"); option.text="Sveta Helena (Zagreb)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Komin"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Breznički Hum"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Novi Marof"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Varaždinske Toplice"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Varaždin"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ludbreg"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Čakovec"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Goričan"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} document.getElementById('sjezd').selected=true; } else if (dalnice=="a6") { select=document.getElementById('najezd'); var option=document.createElement("OPTION"); option.text="Zagreb (Lučko)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} option.selected=true; var option=document.createElement("OPTION"); option.text="Zdenčina"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Jestrebarsko"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Karlovac"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Novigrad"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Bosiljevo"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vrbovsko"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ravna gora"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Delnice"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vrata"; option.value="10"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Oštrovica"; option.value="11"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Rijeka"; option.value="12"; try{ select.add(option,null); }catch(e){ select.add(option);} select=document.getElementById('sjezd'); var option=document.createElement("OPTION"); option.text="Zagreb (Lučko)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Zdenčina"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Jestrebarsko"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Karlovac"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Novigrad"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Bosiljevo"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vrbovsko"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ravna gora"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Delnice"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vrata"; option.value="10"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Oštrovica"; option.value="11"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Rijeka"; option.value="12"; try{ select.add(option,null); }catch(e){ select.add(option);} document.getElementById('sjezd').selected=true; } else if (dalnice=="a7") { select=document.getElementById('najezd'); var option=document.createElement("OPTION"); option.text="A7 Rupa - Rijeka"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} option.selected=true; select=document.getElementById('sjezd'); var option=document.createElement("OPTION"); option.text="A7 Rupa - Rijeka"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} document.getElementById('sjezd').selected=true; } else if (dalnice=="a9") { select=document.getElementById('najezd'); var option=document.createElement("OPTION"); option.text="Umag"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} option.selected=true; var option=document.createElement("OPTION"); option.text="Buje"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Nova Vas"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Višnjan"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Baderna"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Medaki"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Kanfanar"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vodnjan - północ"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vodnjan - południe"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Pula"; option.value="10"; try{ select.add(option,null); }catch(e){ select.add(option);} select=document.getElementById('sjezd'); var option=document.createElement("OPTION"); option.text="Umag"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Buje"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Nova Vas"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Višnjan"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Baderna"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Medaki"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Kanfanar"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vodnjan - północ"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vodnjan - południe"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Pula"; option.value="10"; try{ select.add(option,null); }catch(e){ select.add(option);} document.getElementById('sjezd').selected=true; } else if (dalnice=="krk") { select=document.getElementById('najezd'); var option=document.createElement("OPTION"); option.text="Most na wyspę Krk"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} option.selected=true; select=document.getElementById('sjezd'); var option=document.createElement("OPTION"); option.text="Most na wyspę Krk"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} document.getElementById('sjezd').selected=true; } else if (dalnice=="ucka") { select=document.getElementById('najezd'); var option=document.createElement("OPTION"); option.text="Tunel Učka - Opatija (wschód)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} option.selected=true; var option=document.createElement("OPTION"); option.text="Tunel Učka - Vranja (zachód)"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Lupoglav"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Cerovlje"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ivoli"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Rogovići"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Žminj"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Kanfanar"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vodnjan - północ"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vodnjan - południe"; option.value="10"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Pula"; option.value="11"; try{ select.add(option,null); }catch(e){ select.add(option);} select=document.getElementById('sjezd'); var option=document.createElement("OPTION"); option.text="Tunel Učka - Opatija (wschód)"; option.value="1"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Tunel Učka - Vranja (zachód)"; option.value="2"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Lupoglav"; option.value="3"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Cerovlje"; option.value="4"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Ivoli"; option.value="5"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Rogovići"; option.value="6"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Žminj"; option.value="7"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Kanfanar"; option.value="8"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vodnjan - północ"; option.value="9"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Vodnjan - południe"; option.value="10"; try{ select.add(option,null); }catch(e){ select.add(option);} var option=document.createElement("OPTION"); option.text="Pula"; option.value="11"; try{ select.add(option,null); }catch(e){ select.add(option);} document.getElementById('sjezd').selected=true; } } var text='
'+ '
'+ ''+ '
'+ ''+ '
'+ '
'+ '
'+ ''+ '
'+ ''+ '
'+ '
' + '
'+ ''+ '
'+ ''+ '
'+ '
' + '
'+ ''+ '
'+ ''+ '
'+ '
' + '
'+ ''+ '
'+ ''+ '
'+ '
' + '
'; document.write(text); $("#submit").click(function(event) { e = document.getElementById("najezd"); if(e.value==0){ event.preventDefault(); alert("Wybierz wjazd"); } } ); function setNajezd(){ var e = document.getElementById("najezd"); e.value = e.selectedIndex; } function setTarif(){ var e = document.getElementById("tarif"); e.value = e.selectedIndex; } dalnice2("a1");