function validateQuickSignup(theForm)
{

  if (theForm.field_UserName.value == "")
  {
    alert("Please enter a UserName.");
    theForm.field_UserName.focus();
    return (false);
  }

 
  if (theForm.field_Email.value == "")
  {
    alert("Please enter your email address.");
    theForm.field_Email.focus();
    return (false);
  }
var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
var check=/@[\w\-]+\./;
var checkend=/\.[a-zA-Z]{2,3}$/;

if(((theForm.field_Email.value.search(exclude)
!= -1)||(theForm.field_Email.value.search(check))
== -1)||(theForm.field_Email.value.search(checkend) == -1))
{
alert("Please enter a valid Email address");
theForm.field_Email.focus();
return (false);
}

  if (theForm.field_Password.value.length < 4)
  {
    alert("Please enter 4 or more characters for a Password");
    theForm.field_Password.focus();
    return (false);
  }
  
  if (theForm.Password2.value == "" )
  {
    alert("Please re-enter your Password.");
    theForm.Password2.focus();
    return (false);
  } 

  if (theForm.field_Password.value != theForm.Password2.value )
  {
    alert("Your Passwords do not match.");
    theForm.field_Password.value="";
    theForm.Password2.value="";
    theForm.field_Password.focus();
    return (false);
  } 
 

   return (true);
}

