function validateForm(form) 

{ 

   if (form.Name.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your name."); //Informs user of empty field
   form.Name.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   

   if (form.email_from.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your email address."); //Informs user of empty field
   form.email_from.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
   if (form.Subject.value == "") { //This checks to make sure the field is not empty
   alert("Please select the subject of your email."); //Informs user of empty field
   form.Subject.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
      
   if (form.Comments.value == "") { //This checks to make sure the field is not empty
   alert("Please enter your comments or question."); //Informs user of empty field
   form.Comments.focus( ); //This focuses the cursor on the empty field
   return false; //This prevents the form from being submitted
   }
   
    {
checkEmail = form.email_from.value
if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.'))) 
{alert("You have entered an invalid email address. Please try again.");
form.email_from.select();
return false;
}

} 

}
