var browser;

if (document.getElementById) // IE 5.x und NN 6
{browser = 'W3Cdom';
}
if (document.layers) // NN 4.x
{browser = 'Netscape';
}
if (document.all && !document.getElementById) // IE 4
{browser = 'Explorer';
}

if(!window.saveInnerWidth && browser == "Netscape")
{
  window.onresize = resizeIt;
  window.saveInnerWidth = window.innerWidth;
  window.saveInnerHeight = window.innerHeight;
}

function resizeIt()
{
if (saveInnerWidth < window.innerWidth ||
 saveInnerWidth > window.innerWidth ||
 saveInnerHeight > window.innerHeight ||
 saveInnerHeight < window.innerHeight )
{
  window.history.go(0);
}
}

//Die Fenster
function NewWindow(mypage, myname, h, w, wint, winl, scroll, menu) {
      winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+', menubar='+menu+',no-resizable';
      win = window.open(mypage, myname, winprops);
      if (parseInt(navigator.appVersion) >= 4) { win.window.focus();}
}

