var GSnap = 0;

  function layer_onoff(infolayer_id, Snap)
  {
    GSnap = Snap
    if(document.getElementById(infolayer_id).style.visibility == "hidden")
    {
      document.getElementById(infolayer_id).style.visibility = "visible";
    }
    else
    {
      GSnap = 0;
      document.getElementById(infolayer_id).style.visibility = "hidden";
    }
  }
  function layer_off(infolayer_id, Snap)
  {
    if(GSnap != Snap)
    document.getElementById(infolayer_id).style.visibility = "hidden";
  }
  function layer_on(infolayer_id)
  {
    document.getElementById(infolayer_id).style.visibility = "visible";
  }

function popup(newin,x,y,breite,hoehe)
{
	einstellungen = "menubar=0,status=0,resizable=0,scrollbars=1,width="+breite+",height="+hoehe+",top="+y+",left="+x;
	flyout=window.open(newin,"flyout",einstellungen)
  flyout.window.focus();
}