function ValidateFormData(form)
{
  if (!CheckVariable(form.FromName,"str","Please input your name.")) { return false; }
  if (!CheckVariable(form.FromEmail,"str","Please input your email address.")) { return false; }
  if (!CheckVariable(form.FromEmail,"email","Please input your correct email address.")) { return false; }
  if (!CheckVariable(form.ToName,"str","Please input the recipient's name.")) { return false; }
  if (!CheckVariable(form.ToEmail,"str","Please input the recipient's email address.")) { return false; }
  if (!CheckVariable(form.ToEmail,"email","Please input the recipient's correct email address.")) { return false; }
  return true;
}
