// JavaScript Document

// --------------------------------------------------
// Function: newWindow(page, name, w, h, scroll)
//
// page  : URL der anzuzeigenden Datei. (string)
// name  : Name des neuen Window. (string)
// w     : Breite (int)
// h     : hoehe (int)
// scroll: 0 = keine Scrollbars, 1 = automatisch
// --------------------------------------------------
function newWindow(page, name, w, h, scroll) {
	
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
	
	win = window.open(page, name, winprops);
	
	//win.opener.name = "opener";
	
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// --------------------------------------------------
// Function: newWindowPlus(page, name, w, h, scroll)
//
// page  : URL der anzuzeigenden Datei. (string)
// name  : Name des neuen Window. (string)
// w     : Breite (int)
// h     : hoehe (int)
// tb	 : toolbar
// lc	 : location
// dt	 : directories
// st	 : status
// mb	 : menubar
// sb	 : scrollbars
// rs	 : resizable
// --------------------------------------------------
function newWindowPlus(page, name, w, h, tb, lc, dt, st, mb, sb, rs) {

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar='+tb+',location='+lc+',directories='+dt+',status='+st+',menubar='+mb+',scrollbars='+sb+',resizable='+rs;

	win = window.open(page, name, winprops);
	
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}