var para ="";
function Validator(theForm)
{
  if (theForm.TSubject.value == ""){
    alert("Please specify your subject for this message.");
    theForm.TSubject.focus();
    return (false);
  }
  
  if (isBadWord(theForm.TSubject.value)){
  	 theForm.TSubject.focus();
  	 return (false);
  }	
  
  if (theForm.SMessage.value == ""){
    alert("Please your message under this subject.");
    theForm.SMessage.focus();
    return (false);
  }

  if (isBadWord(theForm.SMessage.value)){
  	 theForm.SMessage.focus();
  	 return (false);
  }	

	if (theForm.TSubject.value.length > 50)
  {
    alert("Please put a maximum of 50 characters only on the you subject.");
    theForm.TSubject.focus();
    return (false);
  }
   
  if (veryLongWord(theForm.SMessage.value)){
  		alert("You have entered a very long word or you did" +
  		"\nnot have the proper simple punctuations." +
  		"\n\nPlease check your entry.");
	    theForm.SMessage.focus();
  		return (false);
   }
   para="s="+encodeURI(theForm.TSubject.value)+"&m="+encodeURI(theForm.SMessage.value);
  //return (DisplayName());   
  //theForm.btnPost.disabled = true; 
  return (true);
}
