/*
	WideBight Window Methods 
	
	(c) 2004 - now() by Q-Affairs / nGFX
	
*/
function openAdminWindow (URL, Name, Width, Height, Resize, Status, ScrollBars, Center) {
	
	var windowString = "";
		windowString += (Resize) ? "resizable=1," : "";
		windowString += (Status) ? "status=1," : "";
		windowString += (ScrollBars) ? "scrollbars=1," : "";
		windowString += "width=" + Width + ",";
		windowString += "height=" + Height;
	
	if (Center) {
		if (document.all || document.layers) {
			var screenWidth = screen.availWidth;
			var screenHeight = screen.availHeight;
			windowString += ",top=" + (screenHeight - Height) / 2;
			windowString += ",left=" + (screenWidth - Width) / 2;
		}
	}
	
	var windowRef = window.open(URL,Name,windowString);
	windowRef.currentWindowRef = windowRef;
	windowRef.focus();
	
	return windowRef;

}


