function register_Validator(theForm)
{

  if (theForm.username.value == "")
  {
    alert("Please enter a Username.");
    theForm.username.focus();
    return (false);
  }

  if (theForm.password.value == "")
  {
    alert("Please enter a Password.");
    theForm.password.focus();
    return (false);
  }

  if (theForm.password_confirm.value == "")
  {
    alert("Please re-enter your Password.");
    theForm.password_confirm.focus();
    return (false);
  }

  if (theForm.password.value != theForm.password_confirm.value)
  {
    alert("Password entries do not match. Please try again.");
    theForm.password.focus();
    return (false);
  }

  if (theForm.name_first.value == "")
  {
    alert("Please enter your First Name.");
    theForm.name_first.focus();
    return (false);
  }

  if (theForm.name_last.value == "")
  {
    alert("Please enter your Last Name.");
    theForm.name_last.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter your Email Address.");
    theForm.email.focus();
    return (false);
  }

  if ((theForm.email.value.indexOf('@',0) == -1) || (theForm.email.value.indexOf('.',0) == -1))
  {
    alert("Email Address is incorrectly formatted. Please enter again.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email_confirm.value == "")
  {
    alert("Please re-enter your Email Address.");
    theForm.email_confirm.focus();
    return (false);
  }

  if ((theForm.email_confirm.value.indexOf('@',0) == -1) || (theForm.email_confirm.value.indexOf('.',0) == -1))
  {
    alert("Re-Entered Email Address is incorrectly formatted. Please enter again.");
    theForm.email_confirm.focus();
    return (false);
  }

  if (theForm.email.value != theForm.email_confirm.value)
  {
    alert("Email Address entries do not match. Please try again.");
    theForm.email.focus();
    return (false);
  }

  return (true);
}

