function zoompic(img_url, img_title, img_width, img_height)
{
  wnd = open("",
             "Bildanzeige",
             "width=" + (img_width + 32) + ",height=" + (img_height + 64+52) +
             ",innerWidth=" + (img_width + 32) + ",innerHeight=" + (img_height + 64+52) +
             ",toolbar=0,location=0,directories=0,status=0,menubar=0" +
             ",scrollbars=0,resizable,dependent")

  var baseadr = location.href
  var lastsl  = location.href.lastIndexOf("\\")
  if(lastsl >= 0)
    baseadr = baseadr.substring(0, lastsl + 1)
  else
  {
    lastsl = location.href.lastIndexOf("index.html")
    if(lastsl >= 0)
      baseadr = baseadr.substring(0, lastsl + 1)
  }
  with(wnd.document)
  {
    open("text/html")
    writeln("<HTML>")
    writeln("<HEAD><TITLE>" + img_title + "</TITLE>")
    writeln("<BASE HREF=\"" + baseadr + "\"></HEAD>")
    writeln("<BODY BGCOLOR=WHITE leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>")
    writeln("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=\"100%\" HEIGHT=\"98%\">")
    writeln("<TR><TD ALIGN=RIGHT><IMG SRC=\"images/logo_mini.gif\" WIDTH=139 HEIGHT=70 HSPACE=10 VSPACE=0></TD></TR><TR><TD ALIGN=CENTER VALIGN=MIDDLE><IMG SRC=\"" + img_url +
            "\" WIDTH=" + img_width +
            " HEIGHT=" + img_height +
            " HSPACE=0 VSPACE=0 ALT=\"" + img_title + "\"></TD></TR>")
    write("<TR><TD ALIGN=CENTER VALIGN=TOP>")
    writeln("<A HREF=\"javascript:self.print()\"><IMG SRC=\"images/drucken.gif\" border=0 ALT=\"Drucken\"></A>")   
    writeln("&nbsp;&nbsp;&nbsp;&nbsp;")   
    write("<A HREF=\"javascript:self.close()\"><IMG SRC=\"images/schliessen.gif\" border=0 ALT=\"Schließen\"></A>")
    writeln("</TD></TR>")
    writeln("</TABLE>")
    writeln("</BODY></HTML>")
    close()
  }
  wnd.focus()
}

function zoompicpdf(img_url, img_title, img_width, img_height, pdf_name)
{
  wnd = open("",
             "Bildanzeige",
             "width=" + (img_width + 32) + ",height=" + (img_height + 64+52) +
             ",innerWidth=" + (img_width + 32) + ",innerHeight=" + (img_height + 64+52) +
             ",toolbar=0,location=0,directories=0,status=0,menubar=0" +
             ",scrollbars=0,resizable,dependent")

  var baseadr = location.href
  var lastsl  = location.href.lastIndexOf("\\")
  if(lastsl >= 0)
    baseadr = baseadr.substring(0, lastsl + 1)
  else
  {
    lastsl = location.href.lastIndexOf("index.html")
    if(lastsl >= 0)
      baseadr = baseadr.substring(0, lastsl + 1)
  }
  with(wnd.document)
  {
    open("text/html")
    writeln("<HTML>")
    writeln("<HEAD><TITLE>" + img_title + "</TITLE>")
    writeln("<BASE HREF=\"" + baseadr + "\"></HEAD>")
    writeln("<BODY BGCOLOR=WHITE leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>")
    writeln("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=\"100%\" HEIGHT=\"98%\">")
    writeln("<TR><TD ALIGN=RIGHT><IMG SRC=\"images/logo_mini.gif\" WIDTH=139 HEIGHT=70 HSPACE=10 VSPACE=0></TD></TR><TR><TD ALIGN=CENTER VALIGN=MIDDLE><IMG SRC=\"" + img_url +
            "\" WIDTH=" + img_width +
            " HEIGHT=" + img_height +
            " HSPACE=0 VSPACE=0 ALT=\"" + img_title + "\"></TD></TR>")
    write("<TR><TD ALIGN=CENTER VALIGN=TOP>")
    writeln("<A HREF=\"pdf/" + pdf_name + ".pdf\"><IMG SRC=\"images/pdfdrucken.gif\" border=0 ALT=\"Druckfähige Version (Adobe PDF)\"></A>")   
    writeln("&nbsp;&nbsp;&nbsp;&nbsp;")   
    write("<A HREF=\"javascript:self.close()\"><IMG SRC=\"images/schliessen.gif\" border=0 ALT=\"Schließen\"></A>")
    writeln("</TD></TR>")
    writeln("</TABLE>")
    writeln("</BODY></HTML>")
    close()
  }
  wnd.focus()
}

function zoompicprint(img_url, img_title, img_width, img_height)
{
  wnd = open("",
             "Bildanzeige",
             "width=" + (img_width + 32) + ",height=" + (img_height + 64) +
             ",innerWidth=" + (img_width + 32) + ",innerHeight=" + (img_height + 64) +
             ",toolbar=0,location=0,directories=0,status=0,menubar=0" +
             ",scrollbars=0,resizable,dependent")

  var baseadr = location.href
  var lastsl  = location.href.lastIndexOf("\\")
  if(lastsl >= 0)
    baseadr = baseadr.substring(0, lastsl + 1)
  else
  {
    lastsl = location.href.lastIndexOf("index.html")
    if(lastsl >= 0)
      baseadr = baseadr.substring(0, lastsl + 1)
  }
  with(wnd.document)
  {
    open("text/html")
    writeln("<HTML>")
    writeln("<HEAD><TITLE>" + img_title + "</TITLE>")
    writeln("<BASE HREF=\"" + baseadr + "\"></HEAD>")
    writeln("<BODY BGCOLOR=WHITE>")
    writeln("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=\"100%\" HEIGHT=\"98%\">")
    writeln("<TR><TD ALIGN=CENTER VALIGN=MIDDLE><IMG SRC=\"" + img_url +
            "\" WIDTH=" + img_width +
            " HEIGHT=" + img_height +
            " HSPACE=0 VSPACE=0 ALT=\"" + img_title + "\"></TD></TR>")
    writeln("<TR><TD ALIGN=CENTER VALIGN=BOTTOM><br><BIG><STRONG>")
    writeln("<A HREF=\"javascript:self.print()\"><IMG SRC=\"images/drucken.gif\" border=0 ALT=\"Drucken\"></A>")   
    writeln("&nbsp;&nbsp;&nbsp;&nbsp;")   
    writeln("<A HREF=\"javascript:self.close()\"><IMG SRC=\"images/schliessen.gif\" border=0 ALT=\"Schließen\"></A>")
    writeln("</STRONG></BIG></TD></TR>")
    writeln("</TABLE>")
    writeln("</BODY></HTML>")
    close()
  }
  wnd.focus()
}
