function loginReferer() {
  var strLocation, strSubmit;
  strLocation = document.location.href;
  intLocation = strLocation.indexOf("#");
  if (intLocation > 0) {
    strSubmit = strLocation.substr(intLocation + 1);
    if (strSubmit.length > 2)
      loginForm.loginReferer.value = strSubmit;
  }
}										

function loginFormValidate(theForm) {
  if(theForm.loginUser.value=='') {
    alert("'Email Address' must be entered before continuing.");
    theForm.loginUser.focus();
    return false;
  }
  if(theForm.loginPass.value=='') {
    alert("'Password' must be entered before continuing.");
    theForm.loginPass.focus();
    return false;
  }
  return true;
}
