function validacion_e_mail_es(elemento) {
    
	if(elemento.value.length == 0) {
    	elemento.focus();
    	alert("Por favor introduzca su direcci\u00F3n de correo.");
    	return false;
    }
    
	if(-1 == elemento.value.indexOf("@")) {
		elemento.focus();
		alert("Su direcci\u00F3n de correo debe contener '@'.");
		return false;
        }
    
	if(-1 != elemento.value.indexOf(",")) {
		elemento.focus();
		alert("Su direcci\u00F3n de correo no debe contener ','.");
		return false;
	}
		
	if(-1 != elemento.value.indexOf("#")) {
		elemento.focus();
		alert("Su direcci\u00F3n de correo no debe contener '#'." );
		return false;
	}
		
	if(-1 != elemento.value.indexOf("!")) {
		elemento.focus();
		alert("Su direcci\u00F3n de correo no debe contener '!'." );
		return false;
	}
    
	if(-1 != elemento.value.indexOf(" ")) {
		elemento.focus();
		alert("Su direcci\u00F3n de correo no debe contener espacios." );
		return false;
	}
    
	if(elemento.value.length == (elemento.value.indexOf("@")+1) ) {
		elemento.focus();
		alert("Su direcci\u00F3n de correo no debe contener un dominio detras de '@'.");
		return false;
	}
		
	return true;
}

function validacion_e_mail_en(elemento) {
    
	if(elemento.value.length == 0) {
    	elemento.focus();
    	alert("Please, enter your email.");
    	return false;
    }
    
	if(-1 == elemento.value.indexOf("@")) {
		elemento.focus();
		alert("Your email must contain '@'.");
		return false;
        }
    
	if(-1 != elemento.value.indexOf(",")) {
		elemento.focus();
		alert("Your email can't contain ','.");
		return false;
	}
		
	if(-1 != elemento.value.indexOf("#")) {
		elemento.focus();
		alert("Your email can't contain '#'." );
		return false;
	}
		
	if(-1 != elemento.value.indexOf("!")) {
		elemento.focus();
		alert("Your email can't contain '!'." );
		return false;
	}
    
	if(-1 != elemento.value.indexOf(" ")) {
		elemento.focus();
		alert("Your email can't contain blank spaces." );
		return false;
	}
    
	if(elemento.value.length == (elemento.value.indexOf("@")+1) ) {
		elemento.focus();
		alert("Your email is misspeled.");
		return false;
	}
		
	return true;
}


function comprobar_es() {

	nombre = document.form_master.nombre.value;
	if (nombre.length == 0 ) {
		alert("Su nombre es un dato necesario.");
		document.form_master.nombre.focus();
		return false;
	}
	
	if(!(validacion_e_mail_es(document.form_master.email))){
		document.form_master.email.focus();
		return false;
	}

	return true;
}

function comprobar_en() {

	nombre = document.form_master.nombre.value;
	if (nombre.length == 0 ) {
		alert("Please, complete your name.");
		document.form_master.nombre.focus();
		return false;
	}
	
	if(!(validacion_e_mail_en(document.form_master.email))){
		document.form_master.email.focus();
		return false;
	}

	return true;
} 