function Vycisti(ctrl,valu) { if (ctrl.value == valu) ctrl.value="" } function zmenselectkraj() { if (document.forms[3].zeme.value=="30") { document.forms[3].KRAJ.disabled=false;} else { document.forms[3].KRAJ.disabled=true; } } function zmenselectkraj2() { if (document.forms[1].STAT.value=="30") { document.forms[1].KRAJ.disabled=false;} else { document.forms[1].KRAJ.disabled=true; } } function launch(url) { window.open(url, 'list', 'height=600, width=700, toolbar=no, location=no, resizable=no, status=yes, menubar=no, scrollbars=yes') } function launchukazka(url) { window.open(url, 'show', 'height=500, width=650, toolbar=no, location=no, resizable=no, status=no, menubar=no, scrollbars=yes') } function launcher2(url) { window.open(url, 'info', 'height=300, width=400, toolbar=no, location=no, resizable=no, status=no, menubar=no, scrollbars=no') } function launcher3(url) { window.open(url+'&znacky='+formular.zeme.options[formular.zeme.selectedIndex].value, 'autors', 'height=400, width=400, toolbar=no, location=no, resizable=no, status=no, menubar=no, scrollbars=yes') } function launcher4(url) { window.open(url+'&znacky='+formular2.zeme.options[formular2.zeme.selectedIndex].value, 'autors', 'height=400, width=400, toolbar=no, location=no, resizable=no, status=no, menubar=no, scrollbars=yes') } function launcher3a(url,sirka,vyska) { window.open(url, 'detail'+vyska+'a'+sirka, 'height='+vyska+', width='+sirka+', toolbar=no, location=no, resizable=no, status=no, menubar=no, scrollbars=yes') } function launch2(url) { window.open(url, 'list2', 'height=575, width=830, toolbar=no, location=no, resizable=no, status=yes, menubar=no, scrollbars=yes') } function Test() { err=''; if (document.forms[0].souhlas.checked==false) {err+='Nezadán souhlas s obchodními podmínkami\n';}; if (document.forms[0].heslo.value.length==0) {err+='Nezadáno heslo\n';}; if (document.forms[0].DIC.value.length==0 && !document.forms[0].DIC1.checked) {err+='Nezadáno DIČ\n';}; if (document.forms[0].ICO.value.length==0 && !document.forms[0].ICO1.checked) {err+='Nezadáno IČ\n';}; if (document.forms[0].sidlo.value.length==0) {err+='Nezadáno sídlo\n';}; if (document.forms[0].zastupce.value.length==0) {err+='Nezadán odpovědný zástupce\n';}; if (document.forms[0].heslo.value!=document.forms[0].heslo2.value) {err+='Zadaná hesla nejsou stejná\n';}; if (document.forms[0].nazev_firmy.value.length==0) {err+='Nezadán název firmy\n';}; if (document.forms[0].tel.value.length==0) {err+='Nezadán telefon\n';}; if (document.forms[0].zip.value.length==0) {err+='Nezadáno PSČ\n';}; if (document.forms[0].mestob.value.length==0) {err+='Nezadáno město\n';}; if (err.length>0) { alert(err); return false;} else return true; } function Testurl() { err=''; if (document.formodkaz.url.value.length==0) {err+='Nezadán odkaz\n';}; if (err.length>0) { alert('Doplňte prosím následující údaje:\n'+err); return false;} else return true; } function Testhledej() { err=''; if ((document.forms[2].DV0.value!='n') && (document.forms[2].DV1.value!='n') && (eval(document.forms[2].DV0.value)>eval(document.forms[2].DV1.value))) {err+='Rok výroby od je vyšší než do\n';}; if ((document.forms[2].KM1.value!=-2) && (eval(document.forms[2].KM0.value)>eval(document.forms[2].KM1.value))) {err+='Najeté kilometry od jsou vyšší než do\n';}; if (err.length>0) { alert(err); return false;} else return true; } function launcher3(url) { window.open(url+'&znacky='+document.forms[2].znacka.options[document.forms[2].znacka.selectedIndex].value, 'autors', 'height=400, width=400, toolbar=no, location=no, resizable=no, status=no, menubar=no, scrollbars=yes') } function show_load(){ if (!document.getElementById) return; if (navigator.appName == "Netscape"){ document.getElementById("id_loading").style.top = "350px"; } else{ document.getElementById("id_loading").style.top = ((document.body.offsetHeight/2)-35+document.body.scrollTop)+"px"; } document.getElementById("id_loading").style.left = "310px"; document.getElementById("id_loading").style.visibility = "visible"; } function hide_load(){ // is called onload if (!document.getElementById) return; if (document.getElementById("id_loading")) { document.getElementById("id_loading").style.visibility = "hidden"; } // hides loading... layer } var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas function buildsubmenus_horizontal(){ for (var i=0; i (p - 1)) j = 0; t = setTimeout('runSlideShow()', slideShowSpeed); } function threeCols(src, type) { var origList = src; var leftList = document.createElement(type); var centerList = document.createElement(type); var rightList = document.createElement(type); var container = document.createElement('div'); var items = origList.getElementsByTagName('LI'); var itemsLength = items.length/3; for (i = 0; i < itemsLength; i++) { leftList.appendChild(items[0]); } itemsLength = items.length/2; for (i = 0; i < itemsLength; i++) { centerList.appendChild(items[0]); } itemsLength = items.length; for (i = 0; i < itemsLength; i++) { rightList.appendChild(items[0]); } container.appendChild(leftList); container.appendChild(centerList); container.appendChild(rightList); leftList.setAttribute('class', 'left'); centerList.setAttribute('class', 'center'); rightList.setAttribute('class', 'prava'); container.setAttribute('class','threecol'); if (document.all) { leftList.setAttribute('className', 'left'); centerList.setAttribute('className', 'center'); rightList.setAttribute('className', 'prava'); container.setAttribute('className','threecol'); } if (type == 'ol') { centerList.setAttribute('start', leftlist.getElementsByTagName('LI').length + 1 ); rightList.setAttribute('start', centerList.getElementsByTagName('LI').length + 1 ); } origList.parentNode.replaceChild(container, origList); } function allThreeCols (whichclass, type) { var uls = document.getElementsByTagName(type); for (var i=0; i< uls.length; i++) { if (uls[i].getAttribute('class') == whichclass || uls[i].getAttribute('className') == whichclass) { threeCols(uls[i], type.toLowerCase()); } } }