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();
}

//----------------------------------------------------------------------------
//-- Das grosse Bild in neuem Fenster anzeigen und Fenster wieder schliessen
//----------------------------------------------------------------------------
neues_Fenster = null;
function ZeigeBild(xTitel, xBild, xBreite, xHoehe)
{
  Titel = xTitel;
  Bild = xBild;
  Breite = xBreite;
  Hoehe = xHoehe;
  Oben = (screen.height)?(screen.height-Hoehe)/2:0;
  Links = (screen.width)?(screen.width-Breite)/2:0;
  zu();
  sichtbar();
}
function sichtbar()
{  
  Fenster_Hoehe = Hoehe;
  Fenster_Breite = Breite;
  Left_Position= Links;
  Top_Position= Oben;
  Optionen = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height='+Fenster_Hoehe+',width='+Fenster_Breite+',top='+Top_Position+',left='+Left_Position;
  neues_Fenster = window.open('','',Optionen)
  with (neues_Fenster) 
  {
    document.writeln('<HTML><HEAD><TITLE>' + Titel + '</TITLE><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD>');
    document.writeln('<BODY bgcolor="#F5F1EE" leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0"><DIV ALIGN=CENTER><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 VALIGN="MIDDLE"><TR><TD>');
    document.writeln('<IMG SRC="'+Bild+'" WIDTH='+Breite+' HEIGHT='+Hoehe+' BORDER=0></TD>');
    document.writeln('</TR></TABLE></DIV></BODY></HTML>');
  }
}
function zu()
{
  if (neues_Fenster != null)
    if (!neues_Fenster.closed)
      neues_Fenster.close();
}

//----------------------------------------------------------------------------
//-- Rechte Maustaste blockieren
//----------------------------------------------------------------------------
function click (e)
{
	if (!e)
	{
		e = window.event;
	}
	if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3))
	{
		if (window.opera)
		{
      			window.alert("Sorry: Diese Funktion ist deaktiviert.");
		}
		return false;
	}
}
if (document.layers)
{
	document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = click;
document.oncontextmenu = click;

//------------------------------------------------
//-- 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 / Ausblenden 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"; }
}

