	 function paginador(numero)
	  {
	  document.paginacion.pagina.value=numero
	  document.paginacion.submit();
	  }
	   
	   
	 function ver_fecha(fecha)
	  {
	  document.paginacion.fecha.value=fecha
	  document.paginacion.pagina.value=1
	  document.paginacion.submit();
	  }
	  	   
	 function detalle(id)
	  {
	  document.paginacion.action="AP_eventos.asp";
	  document.paginacion.id_noticia.value=id;
	  document.paginacion.submit();
	  }
	  

function muestraOculta(nombre){
  o=document.getElementById(nombre);
  //o.style.visibility='visible';
  e=document.getElementById("bull_"+ nombre);
  u=document.getElementById("link_"+ nombre);
  
  if (o.style.display=='block'){
	  o.style.display='none';
	  if (e){e.src='es/img/bullet_naranja.gif';}
	  if (u){u.className ="entradilla_azul";}
	  }
  else{
	  o.style.display='block';
	  if (e){e.src='es/img/bullet_naranja2.gif';}
	  if (u){u.className ="entradilla_naranja";}
	  }
  
  comprueba_alto();
}


function handleHttpResponse() {
    if (http.readyState == 4) {
       if (http.status == 200) {
          if (http.responseText.indexOf('invalid') == -1) {
             // Armamos un array, usando la coma para separar elementos
             results = http.responseText.split(",");
             document.getElementById("campoMensaje").innerHTML = results[0];
             enProceso = false;
          }
       }
    }
}

function verificaUsuario() {
    if (!enProceso && http) {
       var valor = escape(document.getElementById("emailUsuario").value);
       var url = "consulta.asp?emailUsuario="+ valor;
       http.open("GET", url, true);
       http.onreadystatechange = handleHttpResponse;
       enProceso = true;
       http.send(null);
    }
}

function getHTTPObject() {
    var xmlhttp;
    /*@cc_on
    @if (@_jscript_version >= 5)
       try {
          xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
       } catch (e) {
          try {
             xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
          } catch (E) { xmlhttp = false; }
       }
    @else
    xmlhttp = false;
    @end @*/
    if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
       try {
          xmlhttp = new XMLHttpRequest();
       } catch (e) { xmlhttp = false; }
    }
    return xmlhttp;
}

var enProceso = false; // lo usamos para ver si hay un proceso activo
var http = getHTTPObject(); // Creamos el objeto XMLHttpRequest


