function MM_openBrWindow(theURL,winName,intWidth, intHeight, features) { //Modified by OpenRoad.
	
	//Calculate screen location (Centered on the screen)
	var locX = (screen.width /2) - (intWidth / 2);
	var locY = (screen.height / 2) - (intHeight / 2);
	
	//This will cascade the small help window under the large manual window so the user doesn't get confused.
	if(window.name == "smallHelpWindow" && winName == "manual"){
		locX = locX + 100;
	}
	var screenLoc = ",height="+intHeight+",width="+intWidth+",top="+locY+",left="+locX;
	features = features + screenLoc
	
	objWindow = window.open(theURL,winName,features);
	objWindow.focus();
}

function openSmallHelpWindow(strURL){
	MM_openBrWindow(strURL,'smallHelpWindow',600,400,'status=yes,scrollbars=yes,resizable=yes');
}

function openLargeHelpWindow(strURL){
	MM_openBrWindow(strURL,'manual',750,500,'status=no,scrollbars=no,resizable=no')
}

function selfupReload(ob) {
	var orgcode = document.modform.organization.value;
	var urlstart = 'gtds.cgi?selfup=form&objectId=';
	var urlmid = '&showOrg=';
	var all = urlstart + ob + urlmid + orgcode;
	window.location.replace(all);
}

function adminHelp(page) {
	path = 'gtds.cgi?Help2=open&page=' + page
	MM_openBrWindow(path, page, 500, 300, 'status=no,scrollbars=yes,resizable=no')
}
