function  Validar(theForm)
{
    if (theForm.realname.value == "")
      {
        alert("Please Write Your Name");
        theForm.realname.focus();
        return (false);
      }
	  if ( theForm.email.value == "" )
    {
     alert("Please Write Your Email Address");
     theForm.email.focus();
     return (false);
    }
    else
    {
     var Reason  = "Please Check Your Email Address."
     var checkStr = theForm.email.value;
     var ix = (checkStr.length - 4)
     var RC = true;
     var xerror = false;
     var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid =
RL = 0;
for (i = 0;  i < checkStr.length;  i++)
     {
      if (checkStr.charAt(i) == '@')
        AtSignValid++;
      if (checkStr.charAt(i) == '.')
       PeriodValid++;
      if (checkStr.charAt(i) == ' ')
       SpaceValid ++;
     }
     RL = Reason.length;
     xerror = false;
     if (AtSignValid != 1)
      xerror = true ;
     if (PeriodValid == 0)
      xerror = true ;
     if (SpaceValid > 0)
      xerror = true ;
     if (SpaceValid > 1)
      xerror = true ;
     if (checkStr.length > 120)
      xerror = true ;
if (xerror)
     {
       alert(Reason) ;
       theForm.email.focus();
       return(false);
     }
    }
 if (theForm.YourTelephone.value == "")
      {
        alert("Please Write Your Telephone");
        theForm.YourTelephone.focus();
        return (false);
      }
 }


