function validar(form) {
 
	if(document.getElementById('realname').value == "") {
		document.getElementById('realname').focus();
		alert("El campo 'Nombre' es obligatorio!");
		return false;
	}
	
	if(document.getElementById('email').value == "") {
		document.getElementById('email').focus();
		alert("El campo 'Email' es obligatorio!");
		return false;
	}

	if(document.getElementById('comments').value == "") {
		document.getElementById('comments').focus();
		alert("El campo 'Comentarios' es obligatorio!");
		return false;
	}
	
	if(document.getElementById('email').value == "" || document.getElementById('email').value.indexOf(".") == -1 || document.getElementById('email').value.indexOf("@") == -1){
		alert("Sorry! Your 'E-mail' address is invalid");
		document.getElementById('email').focus();
		return false;
	}
	
	return true;
}