// JavaScript Document
function openFixedContentsWindow(url, width, height) {
	var options = "toolbar=no,location=no,directories=no,status=no,resizable=no" + _getCenterPos(width, height);
	_openWindow(url, width, height, "mSchoolFixedContents", options, true);
	return false;
}

// Open Window @InnnerFunction
function _openWindow(url, width, height, windowname, options, foreground) {
	var subwindow = window.open(url, windowname, options);
	if ((width > 0) && (height > 0)) {
		subwindow.resizeTo(width, height);
	}
	if (foreground) {
		subwindow.focus();
	}
}

// get Center Position
function _getCenterPos(width, height) {
	return ",left=" + ((screen.width / 2) - (width / 2)) +
		",top=" + ((screen.height / 2) - (height / 2));
	;
}