function comprueba(){
	var f = document.forms.inscripcion;
	var fallo = false;
	
	// Nombre y apellidos
	var nombre = f.nombreTxt.value;
	nombre = nombre.split(" ");
	if (nombre.length < 3) fallo = true;
	for (i=0; i<nombre.length; i++){
		if (nombre[i].length < 2) fallo = true;
		}
	if (fallo == true){
		alert("Debe indicar su nombre y apellidos");
		f.nombreTxt.focus();
		return false;
		}

	// entidad
	var entidad = f.entidadTxt.value;
	if (entidad.length < 3) fallo = true;
	if (fallo == true){
		alert("Debe indicar la entidad a la que pertenece");
		f.entidadTxt.focus();
		return false;
		}
	
	// cargo
	var cargo = f.cargoTxt.value;
	if (cargo.length < 3) fallo = true;
	if (fallo == true){
		alert("Debe indicar su cargo");
		f.cargoTxt.focus();
		return false;
		}
	
	// direccion
	
	var direccion = f.direccionTxt.value;
	if (direccion.length < 3) fallo = true;
	if (fallo == true){
		alert("Debe indicar su dirección");
		f.direccionTxt.focus();
		return false;
		}
	
	// poblacion
	
	
	var poblacion = f.poblacionTxt.value;
	if (poblacion.length < 3) fallo = true;
	if (fallo == true){
		alert("Debe indicar su localidad, provincia y código postal");
		f.poblacionTxt.focus();
		return false;
		}
	
	// telefono
	
	var telefono = f.telTxt.value;
	if (telefono.length < 9) fallo = true;
	if (fallo == true){
		alert("Debe indicar su teléfono de contacto");
		f.telTxt.focus();
		return false;
		}
	
		// Correo electrónico
	var correo = f.emailTxt.value;
	if (correo.indexOf("@") == -1 || correo.indexOf("@") != correo.lastIndexOf("@") || correo.indexOf("@") < 1 || correo.indexOf("@") > correo.length - 4 || correo.charAt(correo.indexOf("@")-1) == "." || correo.charAt(correo.indexOf("@")+1) == "." ||  correo.indexOf(".") == -1  ||  correo.indexOf(".") > correo.length - 3) fallo = true;
	if (fallo == true){
		alert("Debe indicar una dirección de correo electrónico válida");
		f.emailTxt.focus();
		return false;
		}
	
	
	
	f.submit();
	
	}