function CheckForm() {   
	var ThisForm = document.ContactFormV1; 

if (ThisForm.email.value == ""){
    alert('The \'Name\' field is required!');
    ThisForm.email.focus();
    return false;
   }
if (ThisForm.comment.value == ""){
    alert('The \'Comment\' field is required!');
    ThisForm.comment.focus();
    return false;
   }

//email validation ---------------------------  
if (ThisForm.name.value == ""){
    alert('The \'Email\' field is required!');
    ThisForm.name.focus();
    return false;
   }   
if (!ValidateEmail(ThisForm.name.value))
   {
     alert('You must enter a valid email address.');
     ThisForm.name.focus();
     ThisForm.name.select();
     return false;
   }
//end email validation ---------------------------   
  
  return true; 
}


function ValidateEmail(address) {
     if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.ContactFormV1.name.value))
    { return true; }
     return false;
    }

