
		$(document).ready(function(){
			
			$(".politica_privacidad").colorbox({width:"620px", height:"470px", iframe:true});
			$(".aviso_legal").colorbox({width:"620px", height:"470px", iframe:true});
			$(".club_perfil").colorbox({width:"500px", height:"200px", iframe:true, scrolling:false});		
				
			// Reiniciar el tamaño de la fuente
			var tamOriginal = $('html').css('font-size');
			$(".reiFuente").click(function(){
			$('html').css('font-size', tamOriginal);
			});
			// Incrementar el tamaño de la fuente
			$("#aumentar_fuente").click(function(){
			var tamActual = $('#body').css('font-size');
			//alert(tamActual)
			var tamActualNum = parseFloat(tamActual, 10);
			var nuevaFuente = tamActualNum*1.2;
			if (nuevaFuente<='19.5') {
			$('#body').css('font-size', nuevaFuente);
			}
			return false;
			});
			// Disminuir el tamaño de la fuente
			$("#disminuir_fuente").click(function(){
			var tamActual = $('#body').css('font-size');
			var tamActualNum = parseFloat(tamActual, 10);
			var nuevaFuente = tamActualNum*0.8;
			if (nuevaFuente>=8) {
				$('#body').css('font-size', nuevaFuente);
			}
			return false;
			});	
		});

	function salir_confirm(){
		if(confirm('¿Seguro que quiere salir del Club?'))
		{
			window.location = "club-logout.html";
		}
	}

function valEmail(theElement){
var s = theElement;
var filter=/^[0-9a-zA-Z_\-\.]+@[0-9a-zA-Z\-\.]+\.[a-z]{2,4}$/;
if (s.length == 0 ) return true;
   if (filter.test(s))
      return true;
   else
	  return false;
}

function lanzaMensaje(msg) {
  	msg = msg.replace(/xxx/i, "\n");
	alert (msg);
}

			
function btn_over(divID,srcImg){
	$("#"+divID).attr('class','div_bg_on titulo_sincolor11');
	//$("#"+divID+' img').attr('src',srcImg);
}
function btn_out(divID,srcImg){
	$("#"+divID).attr('class','div_bg_off titulo_sincolor11');
	//$("#"+divID+' img').attr('src',srcImg);
}

function clearInput(id,texto,tipo){
/*
  Esta funci√?n borrar el contenido por defecto de un input tipo texto y lo vuelve a mostrar.
  id: identificador del input
  texto: texto por defecto del input
  tipo: 'mostrar' o 'borrar'
*/
    if(tipo=='mostrar'){
        if(document.getElementById(id).value==''){
            document.getElementById(id).value=texto;
        }
    }
    if(tipo=='borrar'){
        if(document.getElementById(id).value==texto){
            document.getElementById(id).value='';
        }
    }

}

																				

function mostrar_contenido_div(divId,contenido,efecto){

	/*
	$("#"+divId).hide().html(contenido).fadeIn(1500, function() {
		   this.style.removeAttribute('filter');
	   });
	*/

	
	$("#"+divId).html(contenido);

	
	//$("#"+divId).html(contenido);
	
	//$("#"+divId).css({ 'opacity' : 0 }).animate({ 'opacity' : 1 }, 1000);
		
}


function mostrar_div(divId,efecto){
	
	if($("#"+divId).css('visibility')=="hidden"){
		$("#"+divId).css('visibility','visible');
		$("#"+divId).css({ 'opacity' : 0 }).animate({ 'opacity' : 1 }, 1000);	
	}else{
		$("#"+divId).css({ 'opacity' : 1 }).animate({ 'opacity' : 0 }, 1000);
		$("#"+divId).css('visibility','hidden');
	}
	
	
		
}

function mostrar_div2(divId,efecto){
	
	if($("#"+divId).css('display')=="none"){
		$("#"+divId).css('display','block');
		$("#"+divId).css({ 'opacity' : 0 }).animate({ 'opacity' : 1 }, 1000);	
	}else{
		//$("#"+divId).css({ 'opacity' : 1 }).animate({ 'opacity' : 0 }, 100);
		$("#"+divId).css('display','none');
	}
	
	
		
}



function mostrar_convenio(id,divId,efecto){
	
	
	$.ajax({        				
        type: "POST",        				
        url: "../includes/operaciones.php",        				
        data: "op=get_convenio&uuid="+id,        				
        success: function(datos){
            
            mostrar_contenido_div(divId,datos,efecto)
   						
   		}	      			
   	});
	
}


function mostrar_entradas_relacionadas(divId,efecto){
	
	$.ajax({        				
        type: "POST",        				
        url: "../includes/operaciones.php",        				
        data: "op=get_entradas_relacionadas",        				
        success: function(datos){
            
            mostrar_contenido_div(divId,datos,efecto)
   						
   		}	      			
   	});
	
}


function mostrar_consulta_copia(id,uuid,divId,efecto){
	
	$(".li_indice a").attr("class","off");
	$("#consulta_enlace_"+id).attr("class","on");
	
	$.ajax({        				
        type: "POST",        				
        url: "../includes/operaciones.php",        				
        data: "op=get_consulta&uuid="+uuid,        				
        success: function(datos){
            mostrar_contenido_div(divId,datos,efecto);
            mostrar_entradas_relacionadas("entradas_relacionadas",efecto);
            
            $.ajax({        				
		        type: "POST",        				
		        url: "../includes/operaciones.php",        				
		        data: "op=actualiza_botones_compartir",        				
		        success: function(datos){
		            
		            $("#areas_mapa_compartir").html(datos);
		   						
		   		}	      			
		   	});

            
   		}	      			
   	});
}	

function mostrar_consulta(id,qname,divId,efecto){
	
	$(".li_indice a").attr("class","off");
	
	$.ajax({        				
        type: "POST",        				
        url: "../includes/operaciones.php",        				
        data: "op=get_consulta&qname="+qname,        				
        success: function(datos){
        	
            mostrar_contenido_div(divId,datos,efecto);
            mostrar_entradas_relacionadas("entradas_relacionadas",efecto);
            
            $.ajax({        				
		        type: "POST",        				
		        url: "../includes/operaciones.php",        				
		        data: "op=actualiza_botones_compartir&tipo=consultas",        				
		        success: function(datos){
		            
		            $("#areas_mapa_compartir").html(datos);
		   						
		   		}	      			
		   	});
            
   		}	      			
   	});
}	


function mostrar_vademecum(id,qname,divId,efecto){
	
	$(".li_indice a").attr("class","off");
	
	$.ajax({        				
        type: "POST",        				
        url: "../includes/operaciones.php",        				
        data: "op=get_vademecum&qname="+qname,        				
        success: function(datos){
        	
            mostrar_contenido_div(divId,datos,efecto);
            mostrar_entradas_relacionadas("entradas_relacionadas",efecto);
            
            $.ajax({        				
		        type: "POST",        				
		        url: "../includes/operaciones.php",        				
		        data: "op=actualiza_botones_compartir&tipo=vademecum",        				
		        success: function(datos){
		            
		            $("#areas_mapa_compartir").html(datos);
		   						
		   		}	      			
		   	});
            
   		}	      			
   	});
}	

function mostrar_recomendacion(id,qname,divId,efecto){
	$(".li_indice a").attr("class","off");
	
	$.ajax({        				
        type: "POST",        				
        url: "../includes/operaciones.php",        				
        data: "op=get_recomendacion&qname="+qname,        				
        success: function(datos){
        	
            mostrar_contenido_div(divId,datos,efecto);
            mostrar_entradas_relacionadas("entradas_relacionadas",efecto);
            
            $.ajax({        				
		        type: "POST",        				
		        url: "../includes/operaciones.php",        				
		        data: "op=actualiza_botones_compartir&tipo=recomendaciones",        				
		        success: function(datos){
		            
		            $("#areas_mapa_compartir").html(datos);
		   						
		   		}	      			
		   	});
            
   		}	      			
   	});
}	

function reloadCatcha1() {
	//alert('recarga');
	document.getElementById('siimage1').src = '../includes/securimage/securimage_show.php?sid=' + Math.random(); 
	return false;	
}

function reloadCatcha2() {
	//alert('recarga');
	document.getElementById('siimage2').src = '../includes/securimage/securimage_show.php?sid=' + Math.random(); 
	return false;	
}

function reloadCatcha3() {
	//alert('recarga');
	document.getElementById('siimage3').src = '../includes/securimage/securimage_show.php?sid=' + Math.random(); 
	return false;	
}

function reloadCatcha4() {
	//alert('recarga');
	document.getElementById('siimage4').src = '../includes/securimage/securimage_show.php?sid=' + Math.random(); 
	return false;	
}


function validar_enviar_por_email(texto1,idcaptcha,id_form){
	
	var error=0;
	var msg="";
	
	if(($("#nombre_enviar").val()=="")||($("#nombre_enviar").val()==texto1)){
		error=1;
		msg+="Nombre Obligatorio\n";
		document.getElementById('enviar_email').nombre_enviar.style.color = '#CA3315';
	} else {
		document.getElementById('enviar_email').nombre_enviar.style.color = '#000000';
	}
	
	if(!valEmail($("#email_enviar").val())){
		error=1;
		msg+=("Correo electr\u00F3nico no v\u00E1lido\n");
		document.getElementById('enviar_email').email_enviar.style.color = '#CA3315';
	} else {
		document.getElementById('enviar_email').email_enviar.style.color = '#000000';
	}
	
	$.ajax({        				
        type: "POST",        				
        url: "../includes/operaciones.php",        				
        data: "op=check_captcha&captcha_code="+$("#"+idcaptcha).val(),        				
        success: function(datos){
            
            if(datos==0){
            	error=1;
            	msg+="C\u00F3digo de seguridad err\u00F3neo";
            	document.getElementById('enviar_email').captcha_code_email.style.color = '#CA3315';
            } else {
            	document.getElementById('enviar_email').captcha_code_email.style.color = '#000000';
            }
                        
            if(error==1){
            	alert(msg);
            	reloadCatcha4();	
            }else{
            	$("#"+id_form).submit();
            }
   						
   		}	      			
   	});
}



function validar_realizar_consulta(texto1,idcaptcha,id_form){
	
	var error=0;
	var msg="";
	
	if(!valEmail($("#email_consulta").val())){
		error=1;
		msg+=("Correo electr\u00F3nico no v\u00E1lido\n");
		document.getElementById("enviar_consulta").email_consulta.style.color = '#CA3315';
	} else {
		document.getElementById("enviar_consulta").email_consulta.style.color = '#000000';
	}

	if(($("#termino_consulta").val()=="")||($("#termino_consulta").val()==texto1)){
		error=1;
		msg+="Introduzca el término a consultar\n";
		document.getElementById("enviar_consulta").termino_consulta.style.color = '#CA3315';
	} else {
		document.getElementById("enviar_consulta").termino_consulta.style.color = '#000000';
	}



	if(($("#consulta_consultar").val()=="")||($("#consulta_consultar").val()=="T&eacute;rmino o expresi&oacute;n sobre el que se consulta.")){
		error=1;
		msg+="Introduzca su consulta sobre el término a consultar\n";
		document.getElementById("enviar_consulta").consulta_consultar.style.color = '#CA3315';
	} else {
		document.getElementById("enviar_consulta").consulta_consultar.style.color = '#000000';
	}


	
		
	$.ajax({        				
        type: "POST",        				
        url: "../includes/operaciones.php",        				
        data: "op=check_captcha&captcha_code="+$("#"+idcaptcha).val(),        				
        success: function(datos){
            
            if(datos==0){
           	 	 error=1;
           		 msg+="C\u00F3digo de seguridad err\u00F3neo";	
           	 	document.getElementById("enviar_consulta").captcha_code_consulta.style.color = '#CA3315';
            }else {
            	document.getElementById("enviar_consulta").captcha_code_consulta.style.color = '#000000';
            }
            
            
            if(error==1){
            	alert(msg);	
            	reloadCatcha2();
            }else{
            	$("#"+id_form).submit();
            }
   						
   		}	      			
   	});
}




function validar_realizar_suscripcion_recomendaciones(idcaptcha,id_form){
	
	var error=0;
	var msg="";
	
	if(!valEmail($("#email_suscripcion").val())){
		error=1;
		msg+=("Correo electr\u00F3nico no v\u00E1lido\n");
		document.getElementById("suscribir_recomendacion").email_suscripcion.style.color = '#CA3315';
	} else {
		document.getElementById("suscribir_recomendacion").email_suscripcion.style.color = '#000000';

	}
		
	$.ajax({        				
        type: "POST",        				
        url: "../includes/operaciones.php",        				
        data: "op=check_captcha&captcha_code="+$("#"+idcaptcha).val(),        				
        success: function(datos){
            
            if(datos==0){
            	error=1;
           		msg+="C\u00F3digo de seguridad err\u00F3neo";
           	 	document.getElementById("suscribir_recomendacion").captcha_code_suscripcion_recomendacion.style.color = '#CA3315';
            }else {
            	document.getElementById("suscribir_recomendacion").captcha_code_suscripcion_recomendacion.style.color = '#000000';
            }
            
            if(error==1){
            	alert(msg);	
            	reloadCatcha1();
            }else{
            	$("#"+id_form).submit();
            }
   						
   		}	      			
   	});
}


function validar_registrar_club(idcaptcha,id_form){
	
	var error=0;
	var msg="";
		
	$.ajax({        				
        type: "POST",        				
        url: "../includes/operaciones.php",        				
        data: "op=check_captcha&captcha_code="+$("#"+idcaptcha).val(),        				
        success: function(datos){
            
            if(datos==0){
            error=1;
            msg+="C\u00F3digo de seguridad err\u00F3neo";
            }
            
            
            if(error==1){
            	alert(msg);
            	reloadCatcha3();	
            }else{
            	$("#"+id_form).submit();
            }
   						
   		}	      			
   	});
}


function enviar_form_orden(val,url){
	$("#form_orden").attr("action",url+val+".html");
	$("#form_orden").submit();
}

function enviar_form_orden_categoria(url){
	$("#form_orden").attr("action",url+".html");
	$("#form_orden").submit();
}


function validar_buscador(form,id_input,avanzado){
	if (avanzado!=1) {
		if(($("#"+id_input).val()!="")&&($("#"+id_input).val()!="Introduzca término, sigla, etc")){
			//$("#"+form).submit();
			return true;
		}else{
			alert("Introduzca un término de búsqueda");	
			return false;
		}
	} else {
		return true;
	}

	
}

function validar_buscador_noticias(form,id_input){
	if(($("#"+id_input).val()!="")&&($("#"+id_input).val()!="Introduzca el texto a buscar")){
		$("#"+form).submit();
	}else{
		alert("Introduzca el texto a buscar");	
	}
	
}



function validar_noticas_listado(form){
	$("#"+form).submit();
}





function validate_aportacion_club( )
{
   var valid = true;
   
   //titulo
    if ( document.new_aportacion.titulo_detectado.value == ""  || document.new_aportacion.titulo_detectado.value == "Título")
    {
        document.new_aportacion.titulo_detectado.style.color = '#CA3315';    
        valid = false;
    } else
    {
     	document.new_aportacion.titulo_detectado.style.color = '#000000';
    } 
 
   
   //media
    if ( document.new_aportacion.medio_detectado.value == ""  || document.new_aportacion.medio_detectado.value == "Medio")
    {
        document.new_aportacion.medio_detectado.style.color = '#CA3315';       
        valid = false;
    } else
    {
     	document.new_aportacion.medio_detectado.style.color = '#000000';
    } 
   
   //fecha
   
   //texto incorrecto
    if ( document.new_aportacion.texto_detectado.value == ""  || document.new_aportacion.texto_detectado.value == "Introduzca el texto incorrecto")
    {
        document.new_aportacion.texto_detectado.style.color = '#CA3315';       
        valid = false;
    } else
    {
     	document.new_aportacion.texto_detectado.style.color = '#000000';
    } 
   
   //comentario
    if ( document.new_aportacion.comentario_detectado.value == ""  || document.new_aportacion.comentario_detectado.value == "Introduzca su comentario")
    {
        document.new_aportacion.comentario_detectado.style.color = '#CA3315';       
        valid = false;
    } else
    {
     	document.new_aportacion.comentario_detectado.style.color = '#000000';
    }    
   
	if (valid == false){
		alert('Por favor, compruebe los campos obligatorios.');
	}
	
	return valid;   	
   
}								


function validate_comentarios_club( )
{
   var valid = true;
	
		//form_comentarios_club

    if ( document.form_comentarios_club.comentario.value == "" || document.form_comentarios_club.comentario.value == "Introduzca su comentario")
    {
        document.form_comentarios_club.comentario.style.color = '#CA3315';    
        document.form_comentarios_club.comentario.value = "Introduzca su comentario";   
        valid = false;
    } else
    {
     	document.form_comentarios_club.comentario.style.color = '#000000';
    } 


	//codigo seguridad
    if ( document.form_comentarios_club.captcha_code_comentarios.value == ""  || document.form_comentarios_club.captcha_code_comentarios.value == "Introduzca el código de seguridad.")
    {
        document.form_comentarios_club.captcha_code_comentarios.style.color = '#CA3315';
        //document.registrar_club.direccion_registro_club.value = 'Es obligatorio una direccion.';        
        valid = false;
    } else
    {
     	document.form_comentarios_club.captcha_code_comentarios.style.color = '#000000';
    }


	//alert($("#captcha_code_comentarios").val());

	if (valid == false){
		//alert('Por favor, compruebe los comentarios.');
	}
	else
	{
	

			var error=0;
			var msg="";
				
			$.ajax({        				
		        type: "POST",        				
		        url: "../includes/operaciones.php",        				
		        data: "op=check_captcha&captcha_code="+$("#captcha_code_comentarios").val(),        				
		        success: function(datos){
		            
		            if(datos==0){
		            error=1;
		            msg+="C\u00F3digo de seguridad err\u00F3neo";
		            }
		            
		            
		            if(error==1){
		            	//valid = false;
		            	alert(msg);
		            	//reloadCatcha3();
		            	document.getElementById('siimage3').src = 'includes/securimage/securimage_show.php?sid=' + Math.random(); return false;
		            	document.form_comentarios_club.captcha_code_comentarios.style.color = '#CA3315';
		            }else{
		            	document.form_comentarios_club.captcha_code_comentarios.style.color = '#000000';		            	
		            	$("#form_comentarios_club").submit();
		            	
		            }
		   						
		   		}	      			
		   	});
	
		
	}
	
	
	
	
   
}	
















function validate_form_club( )
{
   var valid = true;


	//nombre	
    if ( document.getElementById("registrar_club").nombre_registro_club.value == ""  || document.getElementById("registrar_club").nombre_registro_club.value == "Nombre *")
    {
        document.getElementById("registrar_club").nombre_registro_club.style.color = '#CA3315';
        //document.getElementById("registrar_club").nombre_registro_club.value = 'Es obligatorio un nombre';        
        valid = false;
    } else
    {
     	document.getElementById("registrar_club").nombre_registro_club.style.color = '#000000';
    }
	
	//apellidos
    if ( document.getElementById("registrar_club").apellidos_registro_club.value == ""  || document.getElementById("registrar_club").apellidos_registro_club.value == "Apellidos *")
    {
        document.getElementById("registrar_club").apellidos_registro_club.style.color = '#CA3315';
        //document.getElementById("registrar_club").apellidos_registro_club.value = 'Son obligatorios los apellidos';        
        valid = false;
    } else
    {
     	document.getElementById("registrar_club").apellidos_registro_club.style.color = '#000000';
    }

	
	//fecha nacimiento
	
	//email

	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
    var address = document.getElementById("registrar_club").mail_registro_club.value;

    if ( document.getElementById("registrar_club").mail_registro_club.value == "" || document.getElementById("registrar_club").mail_registro_club.value == "Correo electrónico *" )
    {
		document.getElementById("registrar_club").mail_registro_club.style.color = '#CA3315';
        valid = false;
    } else if(reg.test(address) == false)
    {
		document.getElementById("registrar_club").mail_registro_club.style.color = '#CA3315';
    	valid = false;
    } else document.getElementById("registrar_club").mail_registro_club.style.color = '#000000';	
	
	//contraseña
	//alert(document.getElementById("registrar_club").pass_registro_club.value);
    if ( document.getElementById("registrar_club").pass_registro_club.value == ""  || document.getElementById("registrar_club").pass_registro_club.value == "Contraseña")
    {
        document.getElementById("registrar_club").pass_registro_club.style.color = '#CA3315';     
        valid = false;
    } else
    {
     	document.getElementById("registrar_club").pass_registro_club.style.color = '#000000';
    }	
	
	
	/*
	//repetir contraseña
    if ( document.getElementById("registrar_club").repetir_registro_club.value == ""  || document.getElementById("registrar_club").repetir_registro_club.value == "Repetir contraseña")
    {
        document.getElementById("registrar_club").repetir_registro_club.style.color = '#CA3315';     
        valid = false;
    } else
    {
     	document.getElementById("registrar_club").repetir_registro_club.style.color = '#000000';
    }	
	
	
	//contraseña y repetir contraseña
	if(document.getElementById("registrar_club").pass_registro_club.value != document.getElementById("registrar_club").repetir_registro_club.value ) 
	{
		document.getElementById("registrar_club").repetir_registro_club.style.color = '#CA3315';
		valid = false;
	}
	else 
	{
		document.getElementById("registrar_club").repetir_registro_club.style.color = '#000000';
	}
	
	//direccion
    if ( document.getElementById("registrar_club").direccion_registro_club.value == ""  || document.getElementById("registrar_club").direccion_registro_club.value == "Dirección")
    {
        document.getElementById("registrar_club").direccion_registro_club.style.color = '#CA3315';
        //document.getElementById("registrar_club").direccion_registro_club.value = 'Es obligatorio una direccion.';        
        valid = false;
    } else
    {
     	document.getElementById("registrar_club").direccion_registro_club.style.color = '#000000';
    }
    */
    
	//localidad
    if ( document.getElementById("registrar_club").localidad_registro_club.value == ""  || document.getElementById("registrar_club").localidad_registro_club.value == "Localidad *")
    {
        document.getElementById("registrar_club").localidad_registro_club.style.color = '#CA3315';
        //document.getElementById("registrar_club").direccion_registro_club.value = 'Es obligatorio una direccion.';        
        valid = false;
    } else
    {
     	document.getElementById("registrar_club").direccion_registro_club.style.color = '#000000';
    }
		
	//cp
    if ( document.getElementById("registrar_club").cp_registro_club.value == ""  || document.getElementById("registrar_club").cp_registro_club.value == "Código Postal *")
    {
        document.getElementById("registrar_club").cp_registro_club.style.color = '#CA3315';
        //document.getElementById("registrar_club").direccion_registro_club.value = 'Es obligatorio una direccion.';        
        valid = false;
    } else
    {
     	document.getElementById("registrar_club").cp_registro_club.style.color = '#000000';
    }

	//codigo seguridad
    if ( document.getElementById("registrar_club").captcha_code_club.value == ""  || document.getElementById("registrar_club").captcha_code_club.value == "Introduzca el código de seguridad *")
    {
        document.getElementById("registrar_club").captcha_code_club.style.color = '#CA3315';
        //document.getElementById("registrar_club").direccion_registro_club.value = 'Es obligatorio una direccion.';        
        valid = false;
    } else
    {
     	document.getElementById("registrar_club").captcha_code_club.style.color = '#000000';
    }
    
	//país

	if (document.getElementById("registrar_club").pais.options[document.getElementById("registrar_club").pais.selectedIndex].value=="")
    {
        document.getElementById('pais_control').style.color = "#CA3315";
        document.getElementById('pais_control').innerHTML='Pa&iacute;s *';       
               
        valid = false;
    } else
    {
     	document.getElementById('pais_control').style.color = "#000000";
        document.getElementById('pais_control').innerHTML='*';
    }
	
	text = "Por favor, compruebe los campos obligatorios.";
	
	//normas de uso
    if ( !document.getElementById("registrar_club").normas_registro_club.checked)
    {
    	text = "Por favor, compruebe los campos obligatorios y acepte las normas de uso.";    
        valid = false;

    } 



	if (valid == false){
		alert(text);
	}
	else
	{
	

			var error=0;
			var msg2="";
				
			$.ajax({        				
		        type: "POST",        				
		        url: "includes/operaciones.php",        				
		        data: "op=check_captcha&captcha_code="+$("#captcha_code_club").val(),        				
		        success: function(datos){
		            
		            if(datos==0){
		            error=1;
		            msg2+="C\u00F3digo de seguridad err\u00F3neo";
		            }
		            
		            
		            if(error==1){
		            	//valid = false;
		            	alert(msg2);
		            	reloadCatcha3();
		            	//document.getElementById('siimage3').src = 'includes/securimage/securimage_show.php?sid=' + Math.random(); return false
		            	document.getElementById("registrar_club").captcha_code_club.style.color = '#CA3315';
		            }else{
		            	document.getElementById("registrar_club").captcha_code_club.style.color = '#000000';		            	
		            	$("#registrar_club").submit();
		            	
		            }
		   						
		   		}	      			
		   	});
	
		
	} 
	
	
	
	//alert(valid);
	//valid = false;
    return valid;
}




