function isEmpty(strFirstName, strEmail, strComments) {
  strFirstName = document.forms[0].FirstName.value   
    if (strFirstName == "" || strFirstName == null || !isNaN(strFirstName) || strFirstName.charAt(0) == ' ')    {
    alert("Please enter your First Name.")
	document.theform.FirstName.focus();
    return false;
  }
  strComments = document.forms[0].Comments.value   
    if (strComments == "" || strComments == null || !isNaN(strComments) || strComments.charAt(0) == ' ')    {
    alert("Please enter your Message.")
	document.theform.Comments.focus();
    return false;
  }
  return true;
}

function isValidEmail(strEmail){
	validRegExp = /^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.([a-zA-Z]){2,4})$/;
  //validRegExp = /\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\..{2,2}))$)\b/gi;
  //validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
  strEmail = document.forms[0].Email.value;
  
    if (strEmail.search(validRegExp) == -1)    {
    alert('Please enter a valid Email');
    document.theform.Email.focus();
    return false;
  }
  return true;
}

function check(form){
        if (isEmpty(form.FirstName)){
        if (isValidEmail(form.Email)){
        if (isEmpty(form.Comments)){
        return true;
      }
  }
}
return false;
}
