root="/";
courseChangeWin = "";
 function openWindow(type, width, height)
 {
	courseChangeWin = open(type, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=50,left=50,width=" + width + ",height=" + height);
	return false;
 }
 
 function openGlobalWindow(type, width, height)
 {
	courseChangeWin = open(type, "", "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,top=50,left=50,width=" + width + ",height=" + height);
	//return false;
 }
 
  function showInfo(numbContent, width, height)
 {
	var newContent = "";
	newContent += "<table class='popupBorder'><tr><td>";
	if( numbContent == -1 ) {
		for( i = 0; i < pageContent.length; i++)
		newContent += "<p>" + pageContent[i] + "</p>";
	}
	else
		newContent += "<p>" + pageContent[numbContent] + "</p>";
	newContent += "<p class='right marginTop' style='clear:both;'><a href='javascript:window.close();' style='border: 1px solid #000; text-decoration:none; color:#000; padding: 2px 6px;'>Close Window</a></p>";
	newContent += "</td></tr></table>";
	writeWindow(newContent, width, height);
	
	return false;
 }
 
 
function writeWindow(newContent_Text, w, h)
{
 // 444, 227 default width, height for Netscape
 // 600, 400 is max 
 if( document.all && (navigator.userAgent.indexOf("Opera") == -1) ) {
 	w += 21;
	h += 17;
 }
 
 nets = open("", "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=50,top=50,width=" + w + ",height=" + h);
 nets.document.open();
 nets.document.writeln("<html><head><title>Information</title>");
 nets.document.writeln("<link href='../../_css/print.css' rel='stylesheet' type='text/css' media='print' />");
 nets.document.writeln("<link href='../../_css/main.css' rel='stylesheet' type='text/css' media='screen' />");
 nets.document.writeln("<link href='../../_css/template.css' rel='stylesheet' type='text/css' media='screen' />");
 nets.document.writeln("</head>");
 nets.document.writeln("<body bgcolor='#FFFFFF' text='#000000' style='margin:10px;'>");
 nets.document.writeln("<div align='center'>");
 nets.document.writeln(newContent_Text);
 nets.document.writeln("</div></body></html>");
 nets.document.close();
 
}


function leaveSite(URL)
{
	window.open(root + "leavesite.htm?" + URL,"","width=720,height=570,location=yes,directories=no,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,top=150,left=0");
}


function loadPage(newPage)
 {
	if( opener && !opener.closed) {	
		opener.location.href=newPage;
		window.close();	
	}
	else
		window.location.href=newPage;
		
 	return false;
 }
 
 
function showMenu(whichTag)
{
	whichTag.parentNode.getElementsByTagName('div')[0].style['display'] = 'inline';
	if( document.getElementById('isFlash') )
		document.getElementById('isFlash').style['visibility'] = 'hidden';
}

function hideMenu(whichTag)
{
	whichTag.parentNode.getElementsByTagName('div')[0].style['display'] = 'none';
	if( document.getElementById('isFlash') )
		document.getElementById('isFlash').style['visibility'] = 'visible';
}
 
function contactWebmaster () {
	var locate = window.location
	window.location = "mailto:orears@ocps.net?cc=ahearnm@nefec.org&subject=" + course + " question/problem&body=Webmaster contacts should be used exclusively to report problems with the site such as broken links or non-working interactive activities. For troubleshooting purposes we are including the URL, " + locate + ".  Please include a detailed account of the issue below.";
}