function isValidEmailAddress(emailAddress) {
	var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
	return pattern.test(emailAddress);
}

function validate(form){
	var name = form.nombre_contacto.value;
  	var email = form.email_contacto.value;
  	var dpto = form.departamento_contacto.value;	
  	var comment = form.comentario_contacto.value;

	if ((name == "")){
		alert('Debe indicar su nombre');
		return false;
	}

	if((email == "")) {
		alert('Debe indicar su e-mail');
		return false;
	}

	if ((dpto == "")){
		alert('Debe indicar un departamento');
		return false;
	}
	
	if((comment == "")) {
		alert('Debe indicar un comentario');
		return false;
	}

	if (!isValidEmailAddress(email)){
		alert('Debe indicar un e-mail valido');
		return false;		
	}
	return true;
}