<!--
function createWindow(strURL, strName, intWidth, intHeight, strScroll) {
	if (window.screen) {
		intScreenWidth = screen.width;
		intScreenHeight = screen.height;
	}
        intLeft = (intScreenWidth - intWidth) / 2;
        intTop = (intScreenHeight - intHeight) / 2;	

	args = "width=" + intWidth + ",height=" + intHeight + ",left=" + intLeft + ", screenx=" + intLeft + ",top=" + intTop  + ", screeny=" + intTop + ",resizable=yes,scrollbars=" + strScroll + ",status=0";
	
	remote = window.open(strURL, strName, args);
	

	if (remote != null) if (remote.opener == null) remote.opener = self;
	return remote;
}

function createModalWindow(strURL, strName, intWidth, intHeight, strScroll) {
	if (window.screen) {
		intScreenWidth = screen.width;
		intScreenHeight = screen.height;
	}
        intLeft = (intScreenWidth - intWidth) / 2;
        intTop = (intScreenHeight - intHeight) / 2;	
	args = "";
	features = 'dialogHeight: ' + intHeight + 'px; dialogWidth: ' + intWidth + 'px; dialogLeft: ' + intLeft + 'px; dialogTop: ' + intTop + 'px; resizable: no; status: no;';
	window.showModalDialog(strURL, args, features);
}
//-->