function Validator(theForm)
{
  theForm=document.ShareViews;
  var checkOKC = "ABCDEFGHIJKLMNOPQRSUVTWYZXabcdefghijklmnopqrstuvwxyz/0123456789-_.,:; ";
  var checkOKN = "ABCDEFGHIJKLMNOPQRSUVTWYZXabcdefghijklmnopqrstuvwxyz. ";
   var checkOKE = "ABCDEFGHIJKLMNOPQRSUVTWYZXabcdefghijklmnopqrstuvwxyz.@_-1234567890";
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
 
  var allValid = true;
  var allNum = "";

//-------------------Name-----------------------------


  if (theForm.Name.value == "")
  {
    alert("Please Enter your Name");
    theForm.Name.focus();
    return (false);
  }

 for (i = 0;  i < theForm.Name.value.length;  i++)
  {
    ch = theForm.Name.value.charAt(i);
    for (j = 0;  j < checkOKN.length;  j++)
      if (ch == checkOKN.charAt(j))
        break;
    if (j == checkOKN.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Invalid  Name");
    theForm.Name.focus();
    return (false);
  }
  
//---------------------------------- Email -------------------

 if (theForm.Email.value == "")
  {
    alert("Please Enter Your Email Address");
    theForm.Email.focus();
    return (false);
  }
  
  
   if(reg.test(theForm.Email.value) == false) 
   {
      alert("Invalid Email");
      return false;
   }

 
 
 
 
 
 
 
 
 //------------------ Content --------------------
 
 if (theForm.InfoContent.value == "")
  {
    alert("Please Enter Your Views");
    theForm.InfoContent.focus();
    return (false);
  }

 return true;
}
