function OpenWindow(seite,breite,hoehe,res,scroll)
{
  var text = "width=" + breite + ",height=" + hoehe + ",status=no,resizable=" + res + ",scrollbars=" + scroll + ",menubar=no,toolbar=no";
  neues_Fenster = window.open(seite, "MCINN", text);
  neues_Fenster.focus();
}

function OpenWindowPDF(seite,breite,hoehe,res,scroll)
{
  var text = "width=" + breite + ",height=" + hoehe + ",status=no,resizable=" + res + ",scrollbars=" + scroll + ",menubar=no,toolbar=no";
  neues_Fenster = window.open(seite, "PDF", text);
  neues_Fenster.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="#FFFFCC" 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();
}
