function Foto (Cesta, Sirka, Vyska, Nazev) {
Cesta = "./foto.php" + "?CESTA=" + Cesta + "&SIRKA=" + Sirka + "&VYSKA=" + Vyska + "&NAZEV=" + Nazev;

if (navigator.userAgent.search(/MSIE/) == -1) {
  Vyska = Math.max(150, parseInt(Vyska));
  Sirka = Math.max(150, parseInt(Sirka));
}

Left = (screen.width - Sirka)/2;
Top = (screen.height - Vyska)/2;

a = "toolbar=0,";
b = "location=0,";
c = "status=0,";
d = "menubar=0,";
e = "scrollbars=0,";
f = "resizable=0,";
g = "copyhistory=0,";
h = "height=" + Vyska + ",";
i = "width=" + Sirka + ",";

Argumenty = a + b + c + d + e + f + g + h + i + "top=" + Top + ",left=" + Left;
window.open(Cesta,"Obrazek",Argumenty);
}

function firmDetails (Cesta, Sirka, Vyska) {
  Left = (screen.width - Sirka)/2;
  Top = (screen.height - Vyska)/2;

  a = "toolbar=0,";
  b = "location=0,";
  c = "status=0,";
  d = "menubar=0,";
  e = "scrollbars=1,";
  f = "resizable=0,";
  g = "copyhistory=0,";
  h = "height=" + Vyska + ",";
  i = "width=" + Sirka + ",";

  Argumenty = a + b + c + d + e + f + g + h + i + "top=" + Top + ",left=" + Left;
  window.open(Cesta,"Kontakt",Argumenty);
}
