<!--
	// Opens standardized windows
	function openStandardWindow(url, name) {
		openCustomWindow(url, name, 0.75, 0.75, true, true, true, true, true, true, true);
	}

	// Opens chromeless windows
	function openChromelessWindow(url, name) {
		openCustomWindow(url, name, 0.75, 0.75, false, false, false, false, false, true, true);
	}

	// Opens centered, customized windows (supports percentages in decimal-format (50% = 0.5))
	function openCustomWindow(url, name, width, height, isMenuBar, isToolBar, isLocationBar, isDirectories, isStatusBar, isScrollBars, isResizable) {
		height = ((height <= 1) ? Math.floor(screen.height * height) : height);
		width = ((width <= 1) ? Math.floor(screen.width * width) : width);

		var properties = "top=" + Math.floor((screen.height - height) / 2) +
			",left=" + Math.floor((screen.width - width) / 2) +
			",height=" + height +
			",width=" + width +
			(isMenuBar == true ? ",menubar" : "") +
			(isToolBar == true ? ",toolbar" : "") +
			(isLocationBar == true ? ",location" : "") +
			(isDirectories == true ? ",directories" : "") +
			(isStatusBar == true ? ",status" : "") +
			(isScrollBars == true ? ",scrollbars" : "") +
			(isResizable == true ? ",resizable" : "");

		var win = window.open(url, name, properties);

		if (parseInt(navigator.appVersion) >= 4) {
			win.window.focus();
		}
	}
//-->
