function b(picture, img_width, img_height, text)
{
  window_width = img_width;
  window_height = img_height;
  if(img_width > 704) 
	window_width = 714;
  if(img_height > 500) 
	window_height = 500;
  wnd = open("",
             "RheinlaenderBildanzeige",
             "width=" + window_width + ", height=" + window_height +
             ",innerWidth=" + (img_width + 32) + ",innerHeight=" + (img_height + 64) +
             ",toolbar=0,location=0,directories=0,status=0,menubar=0" +
             ",scrollbars=1,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("/")
    if(lastsl >= 0)
      baseadr = baseadr.substring(0, lastsl + 1)
  }
  with(wnd.document)
  {
    open("text/html")
    writeln("<html>")
    writeln("<head><title>RHEINLÄNDER - Bildvergößerung</title>")
    writeln("<!-- <link rel=stylesheet type=\"text/css\" href=\"stil.css\"> -->")
    writeln("<base href=\"" + baseadr + "\"></head>")
    writeln("<body style=\"margin: 0px\";>")
    writeln("<table align=center border=\"0\" cellspacing=\"0\" cellpadding=\"4\" width=\"100%\" height=\"100%\">")
    writeln("<tr height=" + img_height + "><TD ALIGN=left VALIGN=top height=" + img_height + "><img src=/img/" + picture + " width=" + img_width + " height=" + img_height + " border=0></td></tr>")
    write("<tr><td align=\"left\" valign=\"top\">")
    write("<font size=2 face=Verdana,Arial,sans-serif color=black>" + text + "</font>")
    writeln("</td></tr>")
    write("<tr><td valign=bottom><center><p><a href=\"javascript:self.close()\"><font color=black size=1 face=Arial><b>Fenster schließen!</b></font></A></p></center></td></tr>")
    writeln("</table>")
    writeln("</body></html>")
    close()
  }
  wnd.focus()
}

function b2(picture)
{
  window_width = 850;
  window_height = 630;
  wnd = open("",
             "KWBilder",
             "width=" + window_width + ", height=" + window_height +
             ",toolbar=0,location=0,directories=0,status=0,menubar=0" +
             ",scrollbars=1,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("/")
    if(lastsl >= 0)
      baseadr = baseadr.substring(0, lastsl + 1)
  }
  with(wnd.document)
  {
    open("text/html")
	writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">")
    writeln("<html>")
    writeln("<head><title>RHEINLÄNDER &raquo; Bildverg&ouml;&szlig;erung</title>")
    writeln("<base href=\"" + baseadr + "\"></head>")
    writeln("<body style=\"margin: 0px\";>")
	writeln("<div style=\"width:800px; height:600px; overflow:auto; text-align: center; margin-left: auto; margin-right: auto; border: 0px solid black;\">")
	writeln("<img src=\"" + picture + "\" border=\"0\" alt=\"\">")
	writeln("</div>")
    writeln("<a href=\"javascript:self.close()\" style=\"font-family:Tahoma,Arial,sans-serif; font-size:8pt; color:black;\">Fenster schlie&szlig;en!</a>")
    writeln("</body></html>")
    close()
  }
  wnd.focus()
}