function Vycisti(ctrl,valu) { if (ctrl.value == valu) ctrl.value="" } function zmenselectkraj() { if (document.forms[1].zeme.value=="30") { document.forms[1].KRAJ.disabled=false;} else { document.forms[1].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 launcher3b(url) { window.open(url+'&znacky='+document.forms[0].zeme.options[document.forms[0].zeme.selectedIndex].value, 'autors', 'height=400, width=400, toolbar=no, location=no, resizable=no, status=no, menubar=no, scrollbars=yes') } function launcher3c(url) { window.open(url+'&znacky='+document.forms[2].zeme.options[document.forms[2].zeme.selectedIndex].value, 'autors2', '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 launcher4b(url) { window.open(url, 'czechreal2', 'height=50, width=400, toolbar=no, location=no, resizable=no, status=no, menubar=no, scrollbars=yes') } function launcher5(url,sirka,vyska) { window.open(url, 'autors'+vyska+sirka, 'height='+vyska+', width='+sirka+', 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].mesto.value.length==0) {err+='Nezadáno město\n';}; if (document.forms[0].zip.value.length==0) {err+='Nezadáno PSČ\n';}; if (err.length>0) { alert(err); return false;} else return true; } function Test3() { err=''; if (document.formular.nazev_firmy.value.length==0) {err+='Nezadáno jméno\n';}; if (document.formular.tel.value.length==0) {err+='Nezadán telefon\n';}; if (document.formular.mesto.value.length==0) {err+='Nezadáno město\n';}; if (document.formular.ZIP.value.length==0) {err+='Nezadáno PSČ\n';}; if (document.formular.NAZEV.value.length==0) {err+='Nezadán model\n';}; if (document.formular.MESICE.value.length==0) {err+='Nezadán počet měsíců inzerce\n';}; if (document.formular.VYROBA.value.length!=0 && !isFinite(document.formular.VYROBA.value)) {err+='Rok výroby není zadán ve správném formátu\n';}; if (document.formular.STAVKM.value.length!=0 && !isFinite(document.formular.STAVKM.value)) {err+='Počet najetých km není zadán ve správném formátu\n';}; if (document.formular.VYKON.value.length!=0 && !isFinite(document.formular.VYKON.value)) {err+='Výkon není zadán ve správném formátu\n';}; if (document.formular.OBJEM.value.length!=0 && !isFinite(document.formular.OBJEM.value)) {err+='Objem není zadán ve správném formátu\n';}; if (document.formular.CENA.value.length!=0 && !isFinite(document.formular.CENA.value)) {err+='Cena není zadána ve správném formátu\n';}; if (err.length>0) { alert('Doplňte prosím následující údaje:\n'+err); return false;} else return true; } function Test3a() { err=''; if (document.formular.nazev_firmy.value.length==0) {err+='Nezadáno jméno\n';}; if (document.formular.tel.value.length==0) {err+='Nezadán telefon\n';}; if (document.formular.mesto.value.length==0) {err+='Nezadáno město\n';}; if (document.formular.ZIP.value.length==0) {err+='Nezadáno PSČ\n';}; if (document.formular.NAZEV.value.length==0) {err+='Nezadán model\n';}; if (document.formular.MESICE.value.length==0) {err+='Nezadán počet měsíců inzerce\n';}; if (document.formular.VYROBA.value.length!=0 && !isFinite(document.formular.VYROBA.value)) {err+='Rok výroby není zadán ve správném formátu\n';}; if (document.formular.STAVKM.value.length!=0 && !isFinite(document.formular.STAVKM.value)) {err+='Počet najetých km není zadán ve správném formátu\n';}; if (document.formular.CENA.value.length!=0 && !isFinite(document.formular.CENA.value)) {err+='Cena není zadána ve správném formátu\n';}; if (err.length>0) { alert('Doplňte prosím následující údaje:\n'+err); return false;} else return true; } function Test3b() { err=''; if (document.formular.nazev_firmy.value.length==0) {err+='Nezadáno jméno\n';}; if (document.formular.tel.value.length==0) {err+='Nezadán telefon\n';}; if (document.formular.mesto.value.length==0) {err+='Nezadáno město\n';}; if (document.formular.ZIP.value.length==0) {err+='Nezadáno PSČ\n';}; if (document.formular.NAZEVcj.value.length==0 && document.formular.NAZEVnj.value.length==0 && document.formular.NAZEVaj.value.length==0) {err+='Nezadán název nabídky\n';}; if (document.formular.MESTO.value.length==0) {err+='Nezadáno místo u nabídky\n';}; if (document.formular.MESICE.value.length==0) {err+='Nezadán počet měsíců inzerce\n';}; if (err.length>0) { alert('Prosím doplňte formulář:\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 Test4() { err=''; if (document.getElementById("zprava").value.length==0) {err+='Nezadána zpráva\n';}; if (document.getElementById("jmeno").value.length==0) {err+='Nezadáno jméno\n';}; if (err.length>0) { alert('Doplňte prosím následující údaje:\n'+err); return false;} else return true; } 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 }