function passprotect()
{
	var pswd = window.prompt('Enter the password to access this page', "");
	var mc = document.getElementById('middlecontent').innerHTML;
	document.getElementById('middlecontent').innerHTML = "&nbsp;";
	
	if (pswd != "dukes")
	{
		window.alert('You failed to enter the correct password.  You will be redirected to the home page.');
		window.location='http://web.jmu.edu/cspa/default.asp';
	}
	else
	{
		document.getElementById('cover').style.display="none";
		document.getElementById('middlecontent').innerHTML = mc;
		//window.location='http://web.jmu.edu/cspa/directory2.asp';
	}
}
