var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

function bild(img_url, img_title, img_width, img_height)
{
  wnd = open("",
             "Bildanzeige",
             "width=" + (img_width) + ",height=" + (img_height) +
             ",innerWidth=" + (img_width) + ",innerHeight=" + (img_height) +
             ",left=183,top=253,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("/")
    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("<a href=\"#\" onClick=\"self.close()\"><IMG SRC=\"" + img_url + "\" WIDTH=" + img_width + " HEIGHT=" + img_height +
            " HSPACE=0 VSPACE=0 ALT=\"" + img_title + "\" border=0></a>")
    writeln("</BODY></HTML>")
    close()
  }
  wnd.focus()
}
