<!--------------------------------------- Checken des BrowserTyps und BrowserVersion -->
var browser = new String("");
if(navigator.appName == "Netscape"){
  if(parseInt(navigator.appVersion) < 5){
    browser = "ns4"; }
  else{
    browser = "ns6"; }
}
else{
  var s = new String("");
  s = navigator.userAgent;
  if(s.indexOf("MSIE 5")){
    browser = "ie5"; }
  else{
    browser = "ie4"; }
}
<!-- jetzt ist 'browser' mit BrowserTyp und BrowserVersion belegt -->

<!----------------------------------------- Funktionen zum Anzeigen eines Objektes -->
function get_element(name)
{
  if(browser == "ie5" || browser == "ns6")
  {
    return window.document.getElementById(name);
  }
  else if(browser == "ns4")
  {
    return eval("window.document.layers." + name);
  }
  else if(browser == "ie4")
  {
    return eval("window.document.all." + name);
  }
}

function show_object(x)
{
  if(browser == "ns4"){
    get_element(x).visibility="show"; }
  else{
    get_element(x).style.visibility="visible"; }
}

function hide_object(x)
{
  if(browser == "ns4"){
    get_element(x).visibility="hide"; }
  else{
    get_element(x).style.visibility="hidden"; }
}

function hide_objects()
{
  hide_object('idHOME');
  hide_object('idMEINEPERSON');
  hide_object('idMEINEZULASSUNG');

  hide_object('idKRANKENVERSICHERUNG');
  hide_object('idUNFALLVERSICHERUNG');
  hide_object('idRENTENVERSICHERUNG');
  hide_object('idPFLEGEVERSICHERUNG');
  hide_object('idUND');

  hide_object('idALLGEMEINEINFOS');
  hide_object('idGEBUEHRENKOSTEN');
  hide_object('idAUFGABEN');

  hide_object('idKONTAKT');
  hide_object('idLINKS');
  hide_object('idAKTUELLES');
  hide_object('idIMPRESSUM');
  window.scroll(0,0);
}

function OpenWindow(seite,breite,hoehe,res,scroll)
{
  var text = "width=" + breite + ",height=" + hoehe + ",status=no,resizable=" + res + ",scrollbars=" + scroll + ",menubar=no,toolbar=no";
  ismakeit = window.open(seite, "tetronik", text);
  ismakeit.focus();
}

function OpenWindowPDF(seite,breite,hoehe,res,scroll)
{
  var text = "width=" + breite + ",height=" + hoehe + ",status=no,resizable=" + res + ",scrollbars=" + scroll + ",menubar=no,toolbar=no";
  isPDF = window.open(seite, "PDF", text);
  isPDF.focus();
}

