function OpenBrWindow(i,theURL,winName,w,h,scroll) {
var i;
var xsize = new Array();
var ysize = new Array();
var xpos = new Array();
var ypos = new Array();
var wide = screen.availWidth;
var high  = screen.availHeight;

xsize[0] = w; // Breite des zu öffnenden Fensters
ysize[0] = h; // Höhe des zu öffnenden Fensters
xpos[0] = (wide/2)-(xsize[i]/2);
ypos[0] = (high/2)-(ysize[i]/2);

features = "width=" + xsize[i] + ",height=" + ysize[i] + ",screenX=" + xpos[i] + ",screenY=" + ypos[i] + ",left=" + xpos[i] + ",top=" + ypos[i]
features += ",menubar=0,location=0,locationbar=0,personalbar=0,resizable=1,scrollbars="+scroll+",directories=0,status=0,statusbar=0,toolbar=0";

popupwindow=window.open(theURL,winName,features);
}
