function URLEncode(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="http://www.abc.es/hemeroteca/resultados-busqueda-avanzada/1/20/0/01012002/"+fechabusq2+"/CRON,+,"+encoded+",+,+,+.html";return false};function borrtexto(){document.buscadorcob.searchText.value=""}function valiBusc(){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;if(document.buscadorcob.abc[0].checked){URLEncode(document.buscadorcob.searchText.value)}else{document.buscadorcob.action="http://buscador.abc.es/search.php"}document.buscadorcob.submit()}function dasabilitarenter(){var tecla=event.keyCode;if((tecla==13)){valiBusc();document.buscadorcob.submit();return true}return tecla}function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features)}var mi_url=document.location.href;var prefijo_publi="";if(mi_url.indexOf("sevilla.abc.es")>0){prefijo_publi="ediciones/sevilla/"}else if(mi_url.indexOf("abcdesevilla.es")>0){prefijo_publi="ediciones/sevilla/"}else if(mi_url.indexOf("abcdesevilla.com")>0){prefijo_publi="ediciones/sevilla/"}else if(mi_url.indexOf("cordoba.abc.es")>0){prefijo_publi="ediciones/cordoba/"}else if(mi_url.indexOf("valencia.abc.es")>0){prefijo_publi="ediciones/valencia/"}else{prefijo_publi="aldia/"}var saco_url=document.location.href;if(saco_url.indexOf("sevilla.abc.es")>0){url_canal="/sevilla.abc.es"}else if(saco_url.indexOf("abcdesevilla.es")>0){url_canal="/sevilla.abc.es"}else if(saco_url.indexOf("abcdesevilla.com")>0){url_canal="/sevilla.abc.es"}else if(saco_url.indexOf("cordoba.abc.es")>0){url_canal="/cordoba.abc.es"}else if(saco_url.indexOf("abcdesevilla")>0){url_canal="/sevilla.abc.es"}else{url_canal="/www.abc.es"}function menuABCes(){var oMenu=document.getElementById('menuhorizontal');var aLi=oMenu.getElementsByTagName('li');for(var i=0;i<aLi.length;++i){aLi[i].onmouseover=desplegarSecundarios;aLi[i].onmouseout=ocultarSecundarios}setTimeout("menuABCes()",60000)}function desplegarSecundarios(){this.className+="estilohover"}function ocultarSecundarios(){this.className=this.className.replace("estilohover","")}function cargarPubliMethode(posicion){if(navigator.userAgent.indexOf("Netscape/7.0")>-1){bIsNS70=true}else{bIsNS70=false}var ie4=document.all;var ns6=document.getElementById;if(ie4||ns6){eval('var objOrigen = document.getElementById ? document.getElementById("publi2_'+posicion+'") : document.all.publi2_'+posicion+';');eval('var objDestino = document.getElementById ? document.getElementById("publi1_'+posicion+'") : document.all.publi1_'+posicion+';');if((objDestino!=null)&&(!bIsNS70))objDestino.appendChild(objOrigen);else objOrigen.style.display="none"}}function escribeIframe(laUrl,identificador,ancho,alto){document.write('<iframe src="');document.write(laUrl+'"');document.write(' noresize scrolling=no hspace=0 vspace=0 frameborder=0 marginheight=0');document.write(' marginwidth=0 width='+ancho+' height='+alto+' id='+identificador+' name= '+identificador+'>');document.write('</iframe>')}function MM_openBrWindow(theURL,winName,features){window.name='principal';window.open(theURL,winName,features)}function enviar_articulo(id,seccion,dia){var pagesend="/COM_ABC/servicios/enviar/envia.asp";window.open(pagesend+'?id='+id+'&seccion='+seccion+'&dia='+dia,'Enviar','width=620, height=800,top=0,left=100, directories=0,resizable=1,location=1,status=0,scrollbars=1,toolbar=1,menubar=1,titlebar=1')}function enviar_articulo_opinion(id,seccion,dia,titulo){var pagesend="/COM_ABC/servicios/enviar/envia_opi.asp";window.open(pagesend+'?id='+id+'&seccion='+seccion+'&dia='+dia+'&tit='+titulo,'Enviar','width=620, height=800,top=0,left=100, directories=0,resizable=1,location=1,status=0,scrollbars=1,toolbar=1,menubar=1,titlebar=1')}function imprimir_articulo(id,seccion,dia){var pageprint="/COM_ABC/servicios/imprimir/imprimir.asp";window.open(pageprint+'?id='+id+'&seccion='+seccion+'&dia='+dia,'imprimir','width=520, height=600,top=0,left=100, directories=0,resizable=0,location=0,status=0,scrollbars=1,toolbar=0,menubar=0,titlebar=0')}function imprimir_articulo_opi(id,seccion,dia){var pageprint="/COM_ABC/servicios/imprimir/imprimir_opi.asp";window.open(pageprint+'?id='+id+'&seccion='+seccion+'&dia='+dia,'imprimir','width=520, height=600,top=0,left=100, directories=0,resizable=0,location=0,status=0,scrollbars=1,toolbar=0,menubar=0,titlebar=0')}function seleccionapaquete(nombrepaquete){var existepaquete=document.getElementById?document.getElementById("nombrepaquete"):document.all.nombrepaquete;if(existepaquete!=null)document.getElementById(nombrepaquete).className+="on"}function OAS_NORMAL(pos){document.write('<A HREF="'+OAS_url+'click_nx.ads/'+OAS_sitepage+'/1'+OAS_rns+'@'+OAS_listpos+'!'+pos+OAS_query+'" TARGET=_top>');document.write('<IMG SRC="'+OAS_url+'adstream_nx.ads/'+OAS_sitepage+'/1'+OAS_rns+'@'+OAS_listpos+'!'+pos+OAS_query+'" BORDER=0 ALT="Click!"></A>')}function OAS_AD(pos){if(OAS_version>=11&&typeof(OAS_RICH)!='undefined')OAS_RICH(pos);else OAS_NORMAL(pos)}function escribeIframeMeteo(laUrl,identificador,ancho,alto){var destino=document.location.href;document.write('<iframe src="');document.write(laUrl+'?'+destino+'"');document.write(' noresize scrolling=no hspace=0 vspace=0 frameborder=0 marginheight=0');document.write(' marginwidth=0 width='+ancho+' height='+alto+' id='+identificador+' name= '+identificador+'>');document.write('</iframe>')}
