function ValidationRequired(field,alerttxt){

with (field){
    
  if (value==null||value==""){
      alert(alerttxt);
      return false;
      }else{
      return true
    }
  }
}


function ValidateThisForm(thisform){

with(thisform){if(ValidationRequired(FirstName,"You must supply a first name to send this form.")==false){FirstName.focus();return false;}}
with(thisform){if(ValidationRequired(LastName,"You must supply a last name to send this form.")==false){LastName.focus();return false;}}
with(thisform){if(ValidationRequired(Email,"You must supply a email address to send this form.")==false){Email.focus();return false;}}
with(thisform){if(ValidationRequired(VerifyCode,"You must supply a verification code for this account.")==false){VerifyCode.focus();return false;}}
with(thisform){if(ValidationRequired(Message,"You must supply a message to send this form.")==false){Message.focus();return false;}}

return true;
  
}
