newWindow="";
function OpenNewHTMLWindow(file,Breit,Hoch) {

  Picture = "Test";

  xsize = Breit;
  ysize = Hoch;

  ScreenWidth = screen.width;
  ScreenHeight = screen.height;

  xpos = (ScreenWidth/2)-(xsize/2);
  ypos = (ScreenHeight/2)-((ysize+50)/2);

  if (!newWindow.closed && newWindow.location) {newWindow.close();}
  
  newWindow=window.open("data/media/_stories/1/"+file,"Picture","height="+ysize+",width="+xsize+",resizable=yes,top="+ypos+",left="+xpos+",scrollbars=yes");

  //newWindow.document.open("text/html", "replace")
  //newWindow.document.write(html)
  //newWindow.document.close()
}