	/*function leerCookie(name) {
		var dc = document.cookie;
		var prefix = name + "=";
		var begin = dc.indexOf("; " + prefix);
		if (begin == -1) {
			begin = dc.indexOf(prefix);
			if (begin != 0) return null;
		}
		else
			begin += 2;
		var end = document.cookie.indexOf(";", begin);
		if(end == -1)
			end = dc.length;
		return unescape(dc.substring(begin + prefix.length, end).toLowerCase());
	}
	function ponerCookie(name, value) {
		var curCookie = name+"=" + site + "; expires=Fri, 31-Dec-2100 00:00:00 GMT;path=/;domain=.abc.es";
		document.cookie = curCookie;
	}
	function borrarCookie(name) {
		var curCookie = name + "=;domain=abc.es;expires=Thu,01-Jan-70 00:00:01 GMT;";
		document.cookie = curCookie;
	}
	function ponerCookieSite(site){
		var curCookie = "edicabc=" + site + "; expires=Fri, 31-Dec-2100 00:00:00 GMT;path=/;domain=.abc.es";
		document.cookie = curCookie;
	}
	function redireccionar() {
		var valor = leerCookie("edicabc");
		if(valor != "" &&  valor != "null"  &&  valor != "undefined" &&  valor != null) {
			if(document.location.host != valor ) {
				var protocol = document.location.protocol;var host = valor;var pathname = document.location.pathname;var hash = document.location.hash;var url = protocol + '//' + host + pathname + hash;
				document.location.href = document.location.href.replace(document.location.host,valor);
			}
		}
	}
	function validarCookie(){var f;var rtn="";var i;
		f=document.f;
		for(i=0;i<=f.ce.length-1;i++)	{
			if (f.ce[i].checked) { 
				rtn=f.ce[i].value;
			}
		}
		if(rtn=="") {
			alert("Debes seleccionar una de las ediciones disponibles");
		}
		else {
			ponerCookieSite(rtn);
		}
	}
	function leerDatos(){
		var i;
		var nav = leerCookie("edicabc");
		for(i=0;i<=f.ce.length-1;i++) {
			if(f.ce[i].value == nav) {
				f.ce[i].checked = true;
			}
		}
	}
	redireccionar();*/

	function URLEncode2(textobusq)
{	
var today = new Date();var day   = today.getDate();var month = today.getMonth()+1;var year  = today.getYear();var dia = today.getDay();
if (year < 1000) {year += 1900; }
if (month < 10) month = "0" + month;
if (day< 10) day = "0" + day;
var fechabusq2= ""+day+""+month+""+year;
	var SAFECHARS = "0123456789" +					
					"ABCDEFGHIJKLMNOPQRSTUVWXYZ" +	
					"abcdefghijklmnopqrstuvwxyz" +
					"-_.!~*'()";					
	var HEX = "0123456789ABCDEF";
	var plaintext = textobusq;
	var encoded = "";
	for (var i = 0; i < plaintext.length; i++ ) {
		var ch = plaintext.charAt(i);
	    if (ch == " ") {
		    encoded += "+";			
		} else if (SAFECHARS.indexOf(ch) != -1) {
		    encoded += ch;
		} else {
		    var charCode = ch.charCodeAt(0);
			if (charCode > 255) {
				encoded += "+";
			} else {
				encoded += "%";
				encoded += HEX.charAt((charCode >> 4) & 0xF);
				encoded += HEX.charAt(charCode & 0xF);
			}
		}
	} 
	document.buscadorcob.action = document.buscadorcob.action+fechabusq2+"/CRON,+,"+encoded+",+,+,+.html";
	return false;
};
function borrtexto2(){document.buscadorcob.searchText.value="";}
function valiBusc2(){var today = new Date();var day   = today.getDate();var month = today.getMonth()+1;var year  = today.getYear();var dia = today.getDay();
if (year < 1000) {year += 1900; }
if (month < 10) month = "0" + month;
if (day< 10) day = "0" + day;
var fechabusq= ""+day+""+month+""+year;
document.buscadorcob.Dia.value = fechabusq;
document.buscadorcob.q.value = document.buscadorcob.searchText.value;
URLEncode2(document.buscadorcob.searchText.value);}
function dasabilitarenter2() {var tecla = event.keyCode;
if ((tecla == 13)) { valiBusc2();
return true;
}
return tecla;}