function oknoIMG(cesta,sirka,vyska,okno,nazev)
{
oknodetail=window.open('', okno, "width="+(eval(sirka)+eval(40))+",height="+(eval(vyska)+eval(40))+",left=150,top=150,menubar=yes,resizable=yes");
//window.open(cesta, okno, "width="+sirka+", height="+vyska+" left=50 top=50 resizable=yes");
oknodetail.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">');
oknodetail.document.write('<html><head>');
oknodetail.document.write('<TITLE>'+nazev+'</TITLE>');
oknodetail.document.write("<head><body bgcolor='white' style=\"margin:2px; padding:2px;\" onload=\"focus();\" onclick=\"window.close();\" style=\"cursor:hand\">");
oknodetail.document.write("<DIV style='color:black;font-size:12px;font-family:Verdana'><B>"+nazev+"</B></DIV><BR>");
oknodetail.document.write("<DIV align=\"center\"><IMG SRC=\""+cesta+"\" ALT=\"zavřit detail\" border=\"0\" style=\"cursor:hand;margin:1px; padding:1px;\"></DIV>");
//okenko.document.write("<DIV align=\"center\"></DIV>");
oknodetail.document.write('</body></html>');
}
/*
function nahledOpen1(cesta,sirka,vyska,okno)
{
//okenko=window.open('', okno, "width="+(eval(sirka)+eval(6))+", height="+(eval(vyska)+eval(6))+" left=50 top=50 resizable=yes");
window.open(cesta, okno, "width="+sirka+", height="+vyska+" left=50 top=50 resizable=yes");
}
*/
function infodoprava(cesta,okno)
{
window.open(cesta,okno,"width=350,height=550,left=50,top=50,menubar=yes,resizable=yes,scrollbars=no");
}

function inforeciklace(cesta,okno)
{
window.open(cesta,okno,"width=480,height=550,left=50,top=50,menubar=yes,resizable=yes,scrollbars=yes");
}



function PorovnejWin()
{
var by = screen.availHeight;
var bx = screen.availWidth;
var x = 150;
var y = 150;
var wh = by-(2*y);
var ww = bx-(2*x);

//alert(x);
var mywin = window.open('porovnej.php', 'porovnani', "width="+ww+", height="+wh+", left="+x+", top="+y+" ,menubar=yes,resizable=yes,toolbar=no, scrollbars=yes");
mywin.focus();
}

function KontrolaCisla(Vstup, Oznam){
if(Vstup.value.search(/[^0-9\\.\\,]/g) != -1){
 Oznam.style.display="";
 alert("Nezadali jste číslo !!");
 }
else
 {
 Oznam.style.display="none";
 }
}
