function showLayer(pLayer, pFlag) {
  document.getElementById(pLayer).style.visibility  = pFlag ? "visible" : "hidden";
  document.getElementById(pLayer).style.display  = pFlag ? "inline" : "none";
}
function ResizeData () {
  if (document.getElementById)
    h=document.getElementById('navi2-container').offsetHeight;
  else if (document.all)
    h=document.all('navi2-container').offsetHeight;
  else if (document.layers)
    h=document.layers('navi2-container').offsetHeight;

  var myAttribute=document.createAttribute("style");
  myAttribute.nodeValue="min-height:"+h+"px;";

  var myAttribute2=document.createAttribute("height");
  myAttribute2.nodeValue=h+"px";
  
  alert(myAttribute2.nodeValue);
  
  if (document.getElementById)
    document.getElementById('content').setAttributeNode(myAttribute);
  else if (document.all)
    document.all('content').setAttributeNode(myAttribute);
  else if (document.layers)
    document.layers('content').setAttributeNode(myAttribute);
}


function showhidebox(kastenname,action1,action2,top,left) {
  if (document.getElementById) {
    meinkasten = document.getElementById(kastenname);
  }
  else if (document.all) {
    meinkasten = document.all(kastenname);
  }
  else if (document.layers) {
    meinkasten = document.layers(kastenname);
  }
  if (meinkasten.style) {
    meinkasten.style.visibility = action1;
    meinkasten.style.display = action2;
    meinkasten.style.top = top;
    meinkasten.style.left = left;
  }
  else {
    meinkasten.visibility = action1;
    meinkasten.display = action2;
    meinkasten.top = top;
    meinkasten.left = left;
  }
}
function popup(URL,width,Height) {
  var eig="menubar=no,toolbar=no,location=no,directories=no,status=no,width="+width+",height="+Height+",left=100,top=50";
  popupWin=window.open(URL,'popup',eig)
}
function gbpopup(URL,width,Height) {
  var eig="scrollbars=yes,menubar=no,toolbar=no,location=no,directories=no,status=no,width=600,height=600,left=150,top=50";
  popupWin=window.open(URL,'Gaestebuch',eig)
}

