
    function doLogin() {
        if (document.forms.loginForm.userName.value=="" || document.forms.loginForm.pwd.value=="") {
            alert('You must enter a username and password!');
            return;
        }
        document.forms.loginForm.submit();
    } //end function doLogin 
	
  function doChange() {
    if (document.forms.change.Nemail.value == "") {
      alert("You must enter an e-mail address!");
      return;
    }
    document.forms.change.action="changeInfo2.php";
    document.forms.change.submit();
  }
  
  function doChangePwd() {
    if (document.forms.pwdChange.newPwd.value != document.forms.pwdChange.newPwd2.value) {
      alert("The retype of your password does not match!");
      return;
    }
    document.forms.pwdChange.action="pwd2.php";
    document.forms.pwdChange.submit();
  }  	
	
  function doLogOut() {
	document.forms.menuForm.action="login/logout.php";
	document.forms.menuForm.menuSubmit.value="logout";
	document.forms.menuForm.method="post";
    document.forms.menuForm.submit();
  }
  
  function goHome() {
	document.forms.menuForm.action="in_home.php?homeSection=welcome";
    document.forms.menuForm.submit();
  } 
  function goClass() {
	document.forms.menuForm.action="our_class.php";
    document.forms.menuForm.submit();
  }
  function goLinks() {
	document.forms.menuForm.action="links.php";
    document.forms.menuForm.submit();
  } 
  function goNews() {
	document.forms.menuForm.action="news.php";
    document.forms.menuForm.submit();
  } 
  function goNotes() {
	document.forms.menuForm.action="notes.php";
    document.forms.menuForm.submit();
  } 
  function goHandouts() {
	document.forms.menuForm.action="handouts.php";
    document.forms.menuForm.submit();
  } 
  function goGrades() {
	document.forms.menuForm.action="grades.php";
    document.forms.menuForm.submit();
  }
  function goSyllabus() {
	document.forms.menuForm.action="syllabus.php";
    document.forms.menuForm.submit();
  }  
  function goActivities() {
	document.forms.menuForm.action="activities.php";
    document.forms.menuForm.submit();
  } 	
	
	function openDoc(d) {
	    window.open('./documents/'+d, 'notesWindow', 'width=640,height=480,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes');
	}

    function coverup() {
        window.status="";
        return true;
    }

    if (document.layers) {
        document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
    }
    document.onmouseover=coverup;
    document.onmouseout=coverup;