/***********************************
Author: Dominica Corless
Date: 19 October, 2002

The following function checks if the username or password
field of the login form is empty.

************************************/

function validateLogin(checkform){

   if (checkform.comuser.value == ""){
      alert("Please enter your e-mail address");
      checkform.compass.value = "";
      checkform.reset();
   }
   else if (checkform.compass.value == ""){
      alert("Please enter a password");
      checkform.comuser.value = "";
      checkform.reset();
   }
   else {
      checkform.method = "POST";
   }
}
