function check_contact() {
  var error = 0;
  var error_message = "Nu a-ti completat urmatoarele campuri:\n\n";

  var  nume= document.forma.nume.value;
  var  email= document.forma.email.value;
  var firma = document.forma.firma.value;
  var comentarii = document.forma.comentarii.value;
 var telefon = document.forma.telefon.value;  
  
  if (nume == "") {
    error_message = error_message + "- Numele\n";
    error = 1;
  }

  if (email == "") {
    error_message = error_message + "- E-mail\n";
    error = 1;
  }

  if (firma == "") {
    error_message = error_message + "- Firma\n";
    error = 1;
  }
  
  if (comentarii == "") {
    error_message = error_message + "- Comentariu\n";
    error = 1;
  }
  
  if (telefon == "") {
    error_message = error_message + "- Telefon\n";
    error = 1;
  }
  
  
  if (error == 1) {
    alert(error_message);
		return false;
  }
  

}


	<!-- verifica daca emailul introdus este adresa de email -->
	
	<!-- This script and many more are available free online at -->
	<!-- The JavaScript Source!! http://javascript.internet.com -->
	
	<!-- Begin
	function checkEmail(form) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(forma.email.value)){
	return (true)
	}
	alert("Adresa de email invalida! Va rugam sa o introduce-ti corect.")
	return (false)
	}
	//  End -->
	<!-- sfarsit de verificare -->