var active = "";
function showNav(id) {
  if (active != id) {
    if (document.layers) {
      if (id != "") eval("document.layers[id].visibility = 'show'");
      if (active != "") eval("document.layers[active].visibility = 'hide'");
      }
    else {
      if (id != "") eval("document.getElementById('"+id+"').style.visibility = 'visible'");
      if (active != "") eval("document.getElementById('"+active+"').style.visibility = 'hidden'");
      }
    active = id;
    }
}
function hideNav() {
  if (document.layers) {
    if (active != "") eval("document.layers[active].visibility = 'hide'");
    }
  else {
    if (active != "") eval("document.getElementById('"+active+"').style.visibility = 'hidden'");
    }
  active = "";
}
// Zentrieren des Hintergrundbilds
var cfgSetTop = 142;
function bgcenter()
{
//alert(document.body.clientWidth);
  for (i=1; i<=3; i++)
  {
  if (i==1) xoff = 271;
  if (i==2) xoff = 323;
  if (i==3) xoff = 419;

    if(eval("document.Layer"+i))
    {
      with(eval("document.Layer"+i))
      {
        top    = cfgSetTop
        left   = window.pageXOffset + (Math.floor((innerWidth - 770)/2)+xoff)
      }
    }
    else if (document.getElementById)
      {
      with(eval("document.getElementById('Layer"+i+"')"))
      {
        style.top    = cfgSetTop
        style.left   = document.body.scrollLeft + (Math.floor((Number(document.body.clientWidth) - 770) / 2)+xoff)
      }
    }
    else if(eval("Layer"+i))
    {
      with(eval("Layer"+i))
      {
        style.top    = cfgSetTop
        style.left   = document.body.scrollLeft + (Math.floor((Number(document.body.clientWidth) - 770) / 2)+xoff)
      }
    }
    else
      return
  }
}

function ResetField(feld) {
 feld.style.backgroundColor = "#FFFFFF";
 feld.style.fontSize = "8pt";
 feld.style.fontWeight = "normal";
 feld.style.color = "#000000";
 
 if (feld.value == "hier noch ausfüllen") {
   feld.value = "";
   feld.select();
   feld.focus();
 }
}

