var JS_detect_flash=0; //if(navigator.plugins["Shockwave Flash"]) JS_detect_flash = 1; function load(key, name, value, target) { document.epus.elements.key.value = key; if(name) document.epus.elements[name].value = value; document.epus.target = target; document.epus.submit(); } function printer(url) { var x = parseInt(window.screen.availWidth/10); var y = parseInt(window.screen.availHeight/10); w = parseInt(window.screen.availWidth/1.3); h = parseInt(window.screen.availHeight/1.4); win = window.open(url, 'print', 'toolbar=yes,scrollbars=yes,status=no,resizable=yes,height='+h+',width='+w+",left="+x+",top="+y+",screenX="+x+",screenY="+y); win.focus(); //if(win.print) win.print(); } function view(url, w, h) { var x = parseInt(window.screen.availWidth/5); var y = parseInt(window.screen.availHeight/5); w = w + 55; h = h + 110; if(w > 1024) w = 1024; if(h > 768) h = 768; win = window.open(url, 'win', 'toolbar=no,scrollbars=yes,status=no,resizable=yes,height='+h+',width='+w+",left="+x+",top="+y+",screenX="+x+",screenY="+y); win.resizeTo(w, h); win.focus(); } function showGalleryImg(url, width, height, alt) { var x = parseInt(window.screen.availWidth/5); var y = parseInt(window.screen.availHeight/5); var w = 35 + width; var h = 35 + height; if(w > 800) w = 800; if(h > 600) h = 600; win = window.open('', 'gallery', 'scrollbars=yes,status=yes,resizable=yes,height='+h+',width='+w+",left="+x+",top="+y+",screenX="+x+",screenY="+y); win.document.open("text/html"); win.document.writeln('Galerie
'+alt+'
'); win.document.close(); win.resizeTo(w+15, h+46); win.focus(); } function show4img(url1, url2, url3, url4, width1, height1, width2, height2, width3, height3, width4, height4) { var x = parseInt(window.screen.availWidth/5); var y = parseInt(window.screen.availHeight/5); var w = 20 + width1 + 25; var h = 35 + height1 + 66; if(w > 800) w = 800; if(h > 600) h = 600; var win = window.open('', 'show4img', 'scrollbars=yes,status=yes,resizable=yes,height='+h+',width='+w+",left="+x+",top="+y+",screenX="+x+",screenY="+y); win.document.open("text/html"); win.document.writeln('Gal'); win.document.writeln(''); win.document.writeln(''); win.document.writeln(''); win.document.close(); win.focus(); } function html4img(url1, url2, url3, url4, width1, height1, width2, height2, width3, height3, width4, height4) { var w = 20 + width1 + 25; var h = 35 + height1 + 66; if(w > 800) w = 800; if(h > 600) h = 600; var body = '
'; body += '
'; setHTML('body', body); window.resizeTo(w, h); } function getObject(object) { var dom = window.document; var result = null; if(dom) { if(dom.getElementById && dom.getElementById(object) != null) { result = dom.getElementById(object); } else if(dom.layers) { result = dom.layers[object]; } else if (dom.all) { if(dom.all[object]) result = dom.all[object]; } } return result; } function setHTML(object, html) { var source = getObject(object); if(source == null) return false; source.innerHTML = html; return true; } function setVisible(object) { var source = getObject(object); if(source == null) return false; if(source.style) source.style.visibility = 'visible'; if(source.visibility) source.visibility = 'show'; return true; } function setHidden(object) { var source = getObject(object); if(source == null) return false; if(source.style) source.style.visibility = 'hidden'; if(source.visibility) source.visibility = 'hide'; return true; } function setDisplay(object, value) { var source = getObject(object); if(source == null) return false; if(source.style) source.style.display = value; return true; } function sendLogin(form) { form.user_password.value = calcMD5(form.input_password.value + form.challenge.value); form.input_password.value = ""; return true; } function showCatalogueSearch(id) { id = parseInt(id); setDisplay('form'+id, 'block'); setDisplay('hide'+id, 'inline'); setDisplay('show'+id, 'none'); return true; } function hideCatalogueSearch(id) { id = parseInt(id); setDisplay('form'+id, 'none'); setDisplay('hide'+id, 'none'); setDisplay('show'+id, 'inline'); return true; } function popMenu(url) { url = unescape(url); w = 800 + 34; h = 600 + 33; win = window.open(url, 'popMenu', 'scrollbars=yes,status=yes,resizable=yes,height='+h+',width='+w); win.focus(); } function getMouseX(event) { if(window.event) return window.event.clientX + document.body.scrollLeft; else if(event) return event.pageX; return 0; } function getMouseY(event) { if(window.event) return window.event.clientY + document.body.scrollTop; else if(event) return event.pageY; return 0; } function show(id, event) { var source = getObject("h"+id); if(source == null) return false; if(source.style) source.style.visibility = 'visible'; if(source.visibility) source.visibility = 'show'; if(source.style) { var x = getMouseX(event) + 50; if(x < 5) x = 5; source.style.left = x; source.style.top = getMouseY(event) - 10; } return true; } function hide(id) { setHidden("h"+id); } function confirmAuctionForm(form) { return window.confirm('Súhlasíte s kúpou tohto vozidla?'); } function submitAuctionForm(form) { if(form) { if(confirmAuctionForm(form)) { form.submit(); } } } function confirmBidForm(bid) { return window.confirm('Ponúknuť: ' + bid); } function submitBidForm(form, id_row, id_minimum, id_buy_now, id_minimum_bid, price, bid) { if(form) { if(confirmBidForm(bid)) { form.id_row.value = id_row; form.id_minimum.value = id_minimum; form.id_buy_now.value = id_buy_now; form.id_minimum_bid.value = id_minimum_bid; form.price.value = price; form.submit(); } } } var second = 31; var minute = 44; var hour = 16; function printTime() { startTimer(); second++; if(second > 59) { second = 0; minute++; } if(minute > 59) { minute = 0; hour++; } if(hour > 23) { hour = 0; } var s = new String(second); var m = new String(minute); var h = new String(hour); if(second < 10) { s = "0" + second; } if(minute < 10) { m = "0" + minute; } if(hour < 10) { h = "0" + hour; } setHTML("time", ""+h+":"+m+":"+s); } function startTimer() { setTimeout(printTime, 1000); }