function OtevritObrazek(nazevObrazku)
{
  window.open("/openimg.php?NazevObrazku="+nazevObrazku, "bigIMG", "width=500,height=400,resizable=0");
}

function SkutecneOdhlasit()
{
  ano = confirm("Skutečně si položku nenávratně smazat?");
  if(!ano){
    return false;
  }
}

function OpenPic(picSrc){
   window.open("/Photo.php?file="+picSrc+".jpg", 'picture', 'width=300,height=200,resizable=1');
}

function resizeWin(){
  p_divAlert                 = document.getElementById("DivVeta");
  p_divAlert.style.display   = 'none';
  p_divPicture               = document.getElementById("DivObrazek");
  p_divPicture.style.display = 'block';

  p_pic = document.getElementById("obrazek");
  window.resizeTo(p_pic.width+30, p_pic.height+70);
  window.focus();
}

function WinMapOpen(){
  posX = document.body.clientWidth;
  posY = document.body.clientHeight;

  posX = Math.round((posX - 419) / 2);
  posY = Math.round((posY - 351) / 2);


  eval("window.open('/mapwindow.php', 'ZahradnikParket_Mapa', 'width=410,height=351,top="+posY+",left="+posX+"')");
}

