  	function mostrar(la_id)
  	{
  		val = document.getElementById(la_id);
  		if(val.style.visibility == 'hidden'){
  			val.style.visibility = 'visible';
  		} else {
  			val.style.visibility = 'hidden';
  		}
  		
  	}
  	
  	function check_all(field)
  	{
    	for(i=0;i<field.elements.length;i++)
    	{
      		var e = field.elements[i];
      		if(e.type=="checkbox")
      		{
      			e.checked=true;
      		}
    	}
  	}

	function uncheck_all(field)
	{
		for(i=0;i<field.elements.length;i++)
		{
      		var e = field.elements[i];
	      	if(e.type=="checkbox")
	      	{
	      		e.checked=false;
	      	}
    	}
  	}

	function detalles(la_id)
	{
		window.open("./?seccion=admin&zona=logs&op=detalles&id=" + la_id,"Detalles","width=500,height=300");
	}

	function caracteres(texto)
	{
	texto = texto.replace(/¡/g,"\textoA1");	texto = texto.replace(/&ietextocl;/g,"\textoA1")
	texto = texto.replace(/¿/g,"\textoBF");	texto = texto.replace(/&iquest;/g,"\textoBF")
	texto = texto.replace(/À/g,"\textoC0");	texto = texto.replace(/&Agrave;/g,"\textoC0")
	texto = texto.replace(/à/g,"\textoE0");	texto = texto.replace(/&agrave;/g,"\textoE0")
	texto = texto.replace(/Á/g,"\textoC1");	texto = texto.replace(/&Aacute;/g,"\textoC1")
	texto = texto.replace(/á/g,"\textoE1");	texto = texto.replace(/&aacute;/g,"\textoE1")
	texto = texto.replace(/Â/g,"\textoC2");	texto = texto.replace(/&Acirc;/g,"\textoC2")
	texto = texto.replace(/â/g,"\textoE2");	texto = texto.replace(/&acirc;/g,"\textoE2")
	texto = texto.replace(/Ã/g,"\textoC3");	texto = texto.replace(/&Atilde;/g,"\textoC3")
	texto = texto.replace(/ã/g,"\textoE3");	texto = texto.replace(/&atilde;/g,"\textoE3")
	texto = texto.replace(/Ä/g,"\textoC4");	texto = texto.replace(/&Auml;/g,"\textoC4")
	texto = texto.replace(/ä/g,"\textoE4");	texto = texto.replace(/&auml;/g,"\textoE4")
	texto = texto.replace(/Å/g,"\textoC5");	texto = texto.replace(/&Aring;/g,"\textoC5")
	texto = texto.replace(/å/g,"\textoE5");	texto = texto.replace(/&aring;/g,"\textoE5")
	texto = texto.replace(/Æ/g,"\textoC6");	texto = texto.replace(/&AElig;/g,"\textoC6")
	texto = texto.replace(/æ/g,"\textoE6");	texto = texto.replace(/&aelig;/g,"\textoE6")
	texto = texto.replace(/Ç/g,"\textoC7");	texto = texto.replace(/&Ccedil;/g,"\textoC7")
	texto = texto.replace(/ç/g,"\textoE7");	texto = texto.replace(/&ccedil;/g,"\textoE7")
	texto = texto.replace(/È/g,"\textoC8");	texto = texto.replace(/&Egrave;/g,"\textoC8")
	texto = texto.replace(/è/g,"\textoE8");	texto = texto.replace(/&egrave;/g,"\textoE8")
	texto = texto.replace(/É/g,"\textoC9");	texto = texto.replace(/&Eacute;/g,"\textoC9")
	texto = texto.replace(/é/g,"\textoE9");	texto = texto.replace(/&eacute;/g,"\textoE9")
	texto = texto.replace(/Ê/g,"\textoCA");	texto = texto.replace(/&Ecirc;/g,"\textoCA")
	texto = texto.replace(/ê/g,"\textoEA");	texto = texto.replace(/&ecirc;/g,"\textoEA")
	texto = texto.replace(/Ë/g,"\textoCB");	texto = texto.replace(/&Euml;/g,"\textoCB")
	texto = texto.replace(/ë/g,"\textoEB");	texto = texto.replace(/&euml;/g,"\textoEB")
	texto = texto.replace(/Ì/g,"\textoCC");	texto = texto.replace(/&Igrave;/g,"\textoCC")
	texto = texto.replace(/ì/g,"\textoEC");	texto = texto.replace(/&igrave;/g,"\textoEC")
	texto = texto.replace(/Í/g,"\textoCD");	texto = texto.replace(/&Iacute;/g,"\textoCD")
	texto = texto.replace(/í/g,"\textoED");	texto = texto.replace(/&iacute;/g,"\textoED")
	texto = texto.replace(/Î/g,"\textoCE");	texto = texto.replace(/&Icirc;/g,"\textoCE")
	texto = texto.replace(/î/g,"\textoEE");	texto = texto.replace(/&icirc;/g,"\textoEE")
	texto = texto.replace(/Ï/g,"\textoCF");	texto = texto.replace(/&Iuml;/g,"\textoCF")
	texto = texto.replace(/ï/g,"\textoEF");	texto = texto.replace(/&iuml;/g,"\textoEF")
	texto = texto.replace(/Ñ/g,"\textoD1");	texto = texto.replace(/&Ntilde;/g,"\textoD1")
	texto = texto.replace(/ñ/g,"\textoF1");	texto = texto.replace(/&ntilde;/g,"\textoF1")
	texto = texto.replace(/Ò/g,"\textoD2");	texto = texto.replace(/&Ograve;/g,"\textoD2")
	texto = texto.replace(/ò/g,"\textoF2");	texto = texto.replace(/&ograve;/g,"\textoF2")
	texto = texto.replace(/Ó/g,"\textoD3");	texto = texto.replace(/&Oacute;/g,"\textoD3")
	texto = texto.replace(/ó/g,"\textoF3");	texto = texto.replace(/&oacute;/g,"\textoF3")
	texto = texto.replace(/Ô/g,"\textoD4");	texto = texto.replace(/&Ocirc;/g,"\textoD4")
	texto = texto.replace(/ô/g,"\textoF4");	texto = texto.replace(/&ocirc;/g,"\textoF4")
	texto = texto.replace(/Õ/g,"\textoD5");	texto = texto.replace(/&Otilde;/g,"\textoD5")
	texto = texto.replace(/õ/g,"\textoF5");	texto = texto.replace(/&otilde;/g,"\textoF5")
	texto = texto.replace(/Ö/g,"\textoD6");	texto = texto.replace(/&Ouml;/g,"\textoD6")
	texto = texto.replace(/ö/g,"\textoF6");	texto = texto.replace(/&ouml;/g,"\textoF6")
	texto = texto.replace(/Ø/g,"\textoD8");	texto = texto.replace(/&Oslash;/g,"\textoD8")
	texto = texto.replace(/ø/g,"\textoF8");	texto = texto.replace(/&oslash;/g,"\textoF8")
	texto = texto.replace(/Ù/g,"\textoD9");	texto = texto.replace(/&Ugrave;/g,"\textoD9")
	texto = texto.replace(/ù/g,"\textoF9");	texto = texto.replace(/&ugrave;/g,"\textoF9")
	texto = texto.replace(/Ú/g,"\textoDA");	texto = texto.replace(/&Uacute;/g,"\textoDA")
	texto = texto.replace(/ú/g,"\textoFA");	texto = texto.replace(/&uacute;/g,"\textoFA")
	texto = texto.replace(/Û/g,"\textoDB");	texto = texto.replace(/&Ucirc;/g,"\textoDB")
	texto = texto.replace(/û/g,"\textoFB");	texto = texto.replace(/&ucirc;/g,"\textoFB")
	texto = texto.replace(/Ü/g,"\textoDC");	texto = texto.replace(/&Uuml;/g,"\textoDC")
	texto = texto.replace(/ü/g,"\textoFC");	texto = texto.replace(/&uuml;/g,"\textoFC")

	texto = texto.replace(/\"/g,"\texto22")
	texto = texto.replace(/\'/g,"\texto27")
	texto = texto.replace(/\</g,"\texto3C")
	texto = texto.replace(/\>/g,"\texto3E")
	texto = texto.replace(/\[/g,"\texto5B")
	texto = texto.replace(/\]/g,"\texto5D")

	texto = texto.replace(/¢/g,"\textoA2");	texto = texto.replace(/&cent;/g,"\textoA2")
	texto = texto.replace(/£/g,"\textoA3");	texto = texto.replace(/&pound;/g,"\textoA3")
	texto = texto.replace(/¤/g,"\u20AC");	texto = texto.replace(/&euro;/g,"\u20AC")
	texto = texto.replace(/©/g,"\textoA9");	texto = texto.replace(/&copy;/g,"\textoA9")
	texto = texto.replace(/®/g,"\textoAE");	texto = texto.replace(/&reg;/g,"\textoAE")
	texto = texto.replace(/ª/g,"\textoAA");	texto = texto.replace(/&ordf;/g,"\textoAA")
	texto = texto.replace(/º/g,"\textoBA");	texto = texto.replace(/&ordm;/g,"\textoBA")
	texto = texto.replace(/°/g,"\textoB0");	texto = texto.replace(/&deg;/g,"\textoB0")
	texto = texto.replace(/±/g,"\textoB1");	texto = texto.replace(/&plusmn;/g,"\textoB1")
	texto = texto.replace(/×/g,"\textoD7");	texto = texto.replace(/&times;/g,"\textoD7")


	return texto
}

