function createaccount_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.passwordconfirm.value == "")
  {
    alert("Please re-enter your Password.");
    theForm.passwordconfirm.focus();
    return (false);
  }

  if (theForm.password.value != theForm.passwordconfirm.value)
  {
    alert("Password entries do not match. Please try again.");
    theForm.password.focus();
    return (false);
  }

  if (theForm.namefirst.value == "")
  {
    alert("Please enter your First Name.");
    theForm.namefirst.focus();
    return (false);
  }

  if (theForm.namelast.value == "")
  {
    alert("Please enter your Last Name.");
    theForm.namelast.focus();
    return (false);
  }

  if (theForm.address_zip.value == "")
  {
    alert("Please enter your Zip Code.");
    theForm.address_zip.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);
  }

  return (true);
}
