function openFoto($mkey,$sroot) {
msg = window.open($sroot+'foto_d.php?cislo='+$mkey, '_blank', 'toolbar=no, menubar=no, location=no, directories=no, scrollbars=no, resizable=no, status=no, width=40, height=40, top=40, left=40')
}

function openPrintK($mkey,$sroot) {
msg = window.open($sroot+'tisk_k.php?'+$mkey, '_blank', 'toolbar=yes, menubar=yes, location=no, directories=no, scrollbars=yes, resizable=no, status=no, width=700, height=600, top=40, left=40')
}

function openPrintT($mkey,$sroot) {
msg = window.open($sroot+'tisk_t.php?'+$mkey, '_blank', 'toolbar=yes, menubar=yes, location=no, directories=no, scrollbars=yes, resizable=no, status=no, width=700, height=600, top=40, left=40')
}

function openPrintN($mkey,$sroot) {
msg = window.open($sroot+'tisk_n.php?'+$mkey, '_blank', 'toolbar=yes, menubar=yes, location=no, directories=no, scrollbars=yes, resizable=no, status=no, width=700, height=600, top=40, left=40')
}

function openPrintSmlouva($mkey,$sroot) {
msg = window.open($sroot+'smlouva_tisk.php?'+$mkey, '_blank', 'toolbar=yes, menubar=yes, location=no, directories=no, scrollbars=yes, resizable=no, status=no, width=700, height=600, top=40, left=40')
}

function openRezervace($mkey,$sroot) {
window.location=$sroot+'index.php?goto=rezervace&'+$mkey;
}

function openRezervaceZAL($mkey,$sroot) {
msg = window.open($sroot+'rezervace.php?'+$mkey, '_blank', 'toolbar=no, menubar=no, location=no, directories=no, scrollbars=yes, resizable=no, status=no, width=420, height=560, top='+((screen.Height-560)/2)+', left='+((screen.Width-400)/2))
}

function openInfo($mkey,$sroot) {
msg = window.open($sroot+'info.php?cislo='+$mkey, '_blank', 'toolbar=no, menubar=no, location=no, directories=no, scrollbars=yes, resizable=no, status=yes, width=500, height=400, top='+((screen.Height-400)/2)+', left='+((screen.Width-500)/2))
}

function openSkipas($mkey,$sroot) {
msg = window.open($sroot+'skipas.php?cislo='+$mkey, '_blank', 'toolbar=no, menubar=no, location=no, directories=no, scrollbars=yes, resizable=no, status=yes, width=500, height=400, top='+((screen.Height-400)/2)+', left='+((screen.Width-500)/2))
}

function changeBox(bid) {
//  alert(bid);
if(document.getElementById(bid)) {
  document.getElementById("katpol").style.display="none";
  document.getElementById("katpol").style.visibility="hidden";
  document.getElementById("fotos").style.display="none";
  document.getElementById("fotos").style.visibility="hidden";
  document.getElementById("strinfo").style.display="none";
  document.getElementById("strinfo").style.visibility="hidden";
  document.getElementById("skipas").style.display="none";
  document.getElementById("skipas").style.visibility="hidden";

  document.getElementById(bid).style.display="block";
  document.getElementById(bid).style.visibility="visible";
}
}
