function validateFeedback() {
valid= true;
  
   if (document.FeedbackForm.firstName.value == "")
  {
     alert("Please enter a value for the \"First Name\" field.");
     document.FeedbackForm.firstName.focus();
  valid=false; 
	  return;

  }
  if (document.FeedbackForm.lastName.value == "")
  {
     alert("Please enter a value for the \"Last Name\".");
     document.FeedbackForm.lastName.focus();
       valid=false; 
	  return;

  }

   if (document.FeedbackForm.email.value == "")
  {
     alert("Please enter a value for the \"E-mail Address\".");
     document.FeedbackForm.email.focus();
  valid=false; 
	  return;

  }
var email= document.FeedbackForm.email.value;
	  var emailPat = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/; 
  var matchArray = email.match(emailPat); 
  if (matchArray == null)
  { 
	  alert("Your e-mail address seems incorrect. Please enter valid e-mail address."); 
	  document.FeedbackForm.email.focus();
	  valid=false; 
	  return;
  } 
  
   if (document.FeedbackForm.subject.value == "none")
  {
    alert("Please select \"what this feedback is about?\".");
    document.FeedbackForm.subject.focus();
      valid=false; 
	return;
  }

if (document.FeedbackForm.comments.value.length == 0)
  {
     alert("Please enter your comments");
     document.FeedbackForm.comments.focus();
  valid=false; 
	  return;

  }

if(valid==true)  
	document.FeedbackForm.submit();
}