// JavaScript Document

function CheckEmail(theHref)
{
  theForm = document.getElementById("loginForm");
  if (theForm.email.value == "")
  {
	  alert("Please enter your email address first.");
    theForm.email.focus();
		return (false);
  }
  theHref.href = theHref.href + "?email=" + theForm.email.value;
	return (true);
}

//this is the form validation for the login panel
function Form_Validator(theForm)
{
  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.password.value == "")
  {
    alert("Please enter a value for the \"password\" field.");
    theForm.password.focus();
    return (false);
  }
  return (true);
}


