function Form1_Validator(theForm)
{

  var alertsay = ""; 
  



  if (theForm.name.value == "")
  {
    alert("Fill in your Name field.");
    theForm.name.focus();
    return (false);
  }

  // require at least 3 characters be entered
  if (theForm.name.value.length < 3)
  {
    alert("Your name have to be longer than that.");
    theForm.name.focus();
    return (false);
  }
  
  
  
  

 if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }


  // test if valid email address, must have @ and .
  var checkEmail = "@.";
  var checkStr = theForm.Email.value;
  var EmailValid = false;
  var EmailAt = false;
  var EmailPeriod = false;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkEmail.length;  j++)
    {
      if (ch == checkEmail.charAt(j) && ch == "@")
        EmailAt = true;
      if (ch == checkEmail.charAt(j) && ch == ".")
        EmailPeriod = true;
	  if (EmailAt && EmailPeriod)
		break;
	  if (j == checkEmail.length)
		break;
	}
	// if both the @ and . were in the string
    if (EmailAt && EmailPeriod)
    {
		EmailValid = true
		break;
	}
  }
  if (!EmailValid)
  {
    alert("You have not provide a correct Email.");
    theForm.Email.focus();
    return (false);
  }

   if (theForm.obs.value == "")
  {
    alert("Don't you have a question?.");
    theForm.obs.focus();
    return (false);
  }

  // require at least 3 characters be entered
  if (theForm.obs.length < 3)
  {
    alert("Your question have to be longer then that.");
    theForm.obs.focus();
    return (false);
  }




  return (true);

}
