/***********************************
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.username.value == ""){
      alert("Please enter your username");
      checkform.password.value = "";
      checkform.reset();
   }
   else if (checkform.password.value == ""){
      alert("Please enter a password");
      checkform.username.value = "";
      checkform.reset();
   }
   else {
      checkform.method = "POST";
   }
}

