function ValidateContact (){
var UserName = document.getElementById('name').value
var UserMessage = document.getElementById('message').value
  if(UserName.length==0 || UserName.length <3){
	  alert('Please enter 3 or more characters  in the contact name field!');
	   document.getElementById('name').focus();
	   return false;
  }
  	if (document.contactfrm.email.value !=''){
        var filter=/^.+@.+\..{2,4}$/       
	        if (filter.test(document.contactfrm.email.value)){
		       //return true
		   }
            else {
           alert('Please enter a valid email address!')
		   document.contactfrm.email.focus();
	       return false;
		   }
	 }
	else {
           alert('Please enter a valid email address!')
		   document.contactfrm.email.focus();
		   return false;	
    }
   if(UserMessage.length==0 || UserMessage.length <20){
	  alert('Please enter 20 or more characters  in the message field!');
	   document.getElementById('message').focus();
	   return false;
	  
  } 
}