function validateForm(f) {

	if (trim(f.nombre.value)=="") {		
		document.getElementById('lb_nombre').style.color="red";
		alert("El campo Nombre es obligatorio");
		f.elements['nombre'].focus();
		return false;
		}
	else
	{
		document.getElementById('lb_nombre').style.color="black";		
	}

	if (trim(f.residencia.value)=="") {
		document.getElementById('lb_residencia').style.color="red";
		alert("El campo Residencia es obligatorio");
		f.elements['residencia'].focus();
		return false;
		}
	else
	{
		document.getElementById('lb_residencia').style.color="black";
	}

	if (trim(f.provincia.value)=="") {
		document.getElementById('lb_provincia').style.color="red";
		alert("El campo Provincia es obligatorio");
		f.elements['provincia'].focus();
		return false;
		}
	else
	{
		document.getElementById('lb_provincia').style.color="black";
	}
	
	if (trim(f.especialidad.value)=="") {
		document.getElementById('lb_especialidad').style.color="red";
		alert("El campo Especialidad es obligatorio");
		f.elements['especialidad'].focus();
		return false;
		}
	else
	{
		document.getElementById('lb_especialidad').style.color="black";
	}
	
	if (trim(f.experiencia.value)=="") {
		document.getElementById('lb_experiencia').style.color="red";
		alert("El campo Experiencia es obligatorio");
		f.elements['experiencia'].focus();
		return false;
		}
	else
	{
		document.getElementById('lb_experiencia').style.color="black";
	}		
	
	if (trim(f.mail.value)!="") {
	
	    if (validateEmail(f.mail.value)==false){ 
		    document.getElementById('lb_mail').style.color="red";
		    alert("El campo Mail es incorrecto");		
		    f.elements['mail'].focus();
		    return false;
	    }
	    else
	    {
		    document.getElementById('lb_mail').style.color="black";
	    }
	    
	}
	
	return true;
	
}

function otroClub(menu) {
    
    sel = document.getElementById('prt_entrenadores_otro_club');
    
    if (menu.options[menu.selectedIndex].value == "Otro") {
        sel.style.visibility="visible";
    } else {
        sel.style.visibility="hidden";
    }

}
