/* (c) 2001 by www.avocado.cz */
function show(layr){obj = getObj(layr);obj.visibility = "visible";}
function hide(layr){obj = getObj(layr);obj.visibility = "hidden";}
function mnShow(menuName){show(menuName);}
function mnHide(menuName){hide(menuName);}
function getObj(name)
{
    // NN 6+, IE 5+, Mozillu 1.2+, Operu 7+
    if (document.getElementById)
        return document.getElementById(name).style;
  
    // IE 4
    else if (document.all)
        return document.all[name].style;

    // NN 4+
    else if (document.layers)
        return document.layers[name];
}

function openCalend (item, proDen, title, name)
{
  var w = window.open ('ENGINE/frm/calend.php?form=formFrm&item='+item+'&proDen='+proDen+'&title='+title, name, 'height=300, width=300, top=150, left=250, toolbar=no, menubar=no');
  w.focus ();
}
function openMisto2 (item, itemTxt, val, title, name)
{
  var w = window.open ('ENGINE/frm/sMisto2.php?form=formFrm&item='+item+'&itemTxt='+itemTxt+'&val='+val+'&title='+title, name, 'height=400, width=500, top=50, left=150, scrollbars=yes, resizable, toolbar=no, menubar=no');
  w.focus ();
}
function openMistoNahled (sekce, name)
{
  posID = this.document.formFrm.fMistoCB4a.value
  posX  = this.document.formFrm.fMistoPosX.value
  posY  = this.document.formFrm.fMistoPosY.value
  var w = window.open ('ENGINE/frm/sMisto2nahled.php?posID='+posID+'&posX='+posX+'&posY='+posY, name, 'height=620, width=620, top=50, left=150, scrollbars=yes, resizable, toolbar=no, menubar=no');
  w.focus ();
}
