var _host="http://www.diariopanorama.com/somosdeporte";function loadNewFile(myflv,myimagen){var player=window.document["plytele"];player.sendEvent('LOAD',{file:myflv,image:myimagen});player.sendEvent('PLAY')}function setTele(myflv,img,divcontent){var ply=_host+"/player.swf";var skin=_host+"/overlay.swf";var logo=_host+"/imagenes/logo.png";var s1=new SWFObject(ply,"plytele","298","228","8","#FFFFFF");var param="icons=none&file="+myflv+"&image="+img+"&backcolor=000000&frontcolor=FFFFFF&menu=false&stretching=exactfit&controlbar=over&skin="+skin;s1.addParam("flashvars",param);s1.addParam("allowfullscreen","true");s1.addParam("wmode","transparent");s1.addParam("allowscriptaccess","always");s1.write(divcontent)}function setComentario(obj){this.onRollOver=onRollOver;function onRollOver(obj){var guia="guia"+obj.id;document.getElementById("titulo_tele_id").innerHTML=obj.alt;for(i=1;i<=4;i++){if(document.getElementById("guiaimg"+i).name!="act"){document.getElementById("guiaimg"+i).className="guia0"}}document.getElementById(guia).className="guia"}this.onRollOut=onRollOut;function onRollOut(){for(i=1;i<=4;i++){if(document.getElementById("guiaimg"+i).name!="act"){document.getElementById("guiaimg"+i).className="guia0"}else{var id_activa="guiaimg"+i;var imgactiva=document.getElementById("img"+i)}}document.getElementById("titulo_tele_id").innerHTML=imgactiva.alt;document.getElementById(id_activa).className="guia_activa"}this.setTitulo=setTitulo;function setTitulo(){var guia="guia"+obj.id;document.getElementById("titulo_tele_id").innerHTML=obj.alt;for(i=1;i<=4;i++){document.getElementById("guiaimg"+i).className="guia0"}document.getElementById(guia).name="act";document.getElementById(guia).className="guia_activa"}this.Click=Click;function Click(obj){var guia="guia"+obj.id;document.getElementById("titulo_tele_id").innerHTML=obj.alt;for(i=1;i<=4;i++){if(document.getElementById("guiaimg"+i).name=="act"){document.getElementById("guiaimg"+i).name=""}document.getElementById("guiaimg"+i).className="guia0"}document.getElementById(guia).className="guia_activa";document.getElementById(guia).name="act"}}

function init(str_url){currentOpacity[0]=99;for(i=1;i<imageArray.length;i++)currentOpacity[i]=0;m2HTML="";for(i=0;i<imageArray.length;i++)m2HTML+="<div id=\"photo\" name=\"photo\" class=\"mPhoto\"><img src=\""+imageArray[i]+"\" width=\"300\" onclick=\"window.open(&quot;http://"+str_url+"&quot;)\" style=\"cursor:pointer\"></div>";document.getElementById("mContainer").innerHTML=m2HTML;if(document.all){document.getElementsByName("photo")[currentPhoto].style.filter="alpha(opacity=100)"}else{document.getElementsByName("photo")[currentPhoto].style.MozOpacity=.99}mInterval=setInterval("crossFade()",FADE_INTERVAL)}function crossFade(){if(pause)return;currentOpacity[currentPhoto]-=FADE_STEP;currentOpacity[secondPhoto]+=FADE_STEP;if(document.all){document.getElementsByName("photo")[currentPhoto].style.filter="alpha(opacity="+currentOpacity[currentPhoto]+")";document.getElementsByName("photo")[secondPhoto].style.filter="alpha(opacity="+currentOpacity[secondPhoto]+")"}else{document.getElementsByName("photo")[currentPhoto].style.MozOpacity=currentOpacity[currentPhoto]/100;document.getElementsByName("photo")[secondPhoto].style.MozOpacity=currentOpacity[secondPhoto]/100}if(currentOpacity[secondPhoto]/100>=.98){currentPhoto=secondPhoto;secondPhoto++;if(secondPhoto==imageArray.length)secondPhoto=0;pause=true;xInterval=setTimeout("pause=false",5000)}}function doPause(){if(pause){pause=false;document.getElementById("pauseBtn").value="pause"}else{pause=true;document.getElementById("pauseBtn").value="play"}}

var HOSTJS = "http://www.diariopanorama.com/somosdeporte/"; function mostrarSolapas(nn, tipo){ if(tipo=='video'){ document.getElementById('video'+nn).style.display = 'block'; document.getElementById('foto'+nn).style.display = 'none';}else{ document.getElementById('video'+nn).style.display = 'none'; document.getElementById('foto'+nn).style.display = 'block';}
}function highlight(which, color){ if (document.all||document.getElementById); document.getElementById(which).style.backgroundColor=color } function Galeria_Imagenes(ff, ss, ee, nroid, col) { var foto = ff; var epigrafe = ee; var src = ss; var idnro = nroid; var actual = 0; this.setFoto = setFoto; function setFoto(nn) { actual = nn; foto.src = src[actual]; if(col==20){ foto.width = 200} else foto.width = 320; divepigrafe = document.getElementById("epigrafe_imagen"+nroid); divepigrafe.innerHTML = epigrafe[actual] != '' ? epigrafe[actual] : ''; if(epigrafe[actual]==""){ divepigrafe.style.display = "none";}else divepigrafe.style.display = "block"; var divNro = document.getElementById("divNroImg"+idnro); if(divNro) divNro.innerHTML = actual + 1;}
this.sgtFoto = sgtFoto; function sgtFoto() { if (actual < src.length - 1) setFoto(actual + 1); else setFoto(0);} this.antFoto = antFoto; function antFoto() { if (actual > 0) setFoto(actual - 1); else setFoto(src.length - 1);} } function Galeria_videos(reproductor, fcontent, flvfile, jpgfile, epigrafe, idNota, col){ var divFlash = fcontent; var src = flvfile; var jpg = jpgfile; var swfObj; var swf = reproductor; var actual = 0; var w1 = 320; var h1 = 245; this.setVideo = setVideo; function setVideo(nn) { w = w1; h = h1;
var w = 320; var h = 245; actual = nn; var skin = HOSTJS+"stylish.swf"; var swfObj = new SWFObject(HOSTJS+"player.swf", "ply"+idNota, w, h, "8"); swfObj.addParam("flashvars","stretching=exactfit&menu=false&file="+src[actual]+"&image="+jpg[actual]+"&backcolor=333333&frontcolor=ffffff&controlbar=over&skin="+skin); swfObj.addParam("allowfullscreen","true"); swfObj.addParam("allowscriptaccess","always"); swfObj.addParam("wmode","transparent"); swfObj.write(divFlash); var epigrafevideo = document.getElementById("epigrafe_video"+idNota); epigrafevideo.innerHTML = epigrafe[actual] != '' ? epigrafe[actual] : ''; if(epigrafe[actual]==""){ epigrafevideo.style.display = "none";}else epigrafevideo.style.display = "block"; var divNro = document.getElementById("divNro"+idNota); if(divNro) divNro.innerHTML = actual + 1;}
this.nextVid = nextVid; function nextVid() { if (actual < src.length - 1) setVideo(actual + 1); else setVideo(0);} this.antVid = antVid; function antVid() { if (actual > 0) setVideo(actual - 1); else setVideo(src.length - 1);}}function favoritos(){ if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) { var url = HOSTJS; var titulo="DiarioPanorama.com - Toda la información actualizada al instante"; window.external.AddFavorite(url,titulo);}
else { if(navigator.appName == "Netscape")alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks");}}function mostrar(menuId){ document.getElementById(menuId).style.visibility="visible";}function ocultar(menuId){ document.getElementById(menuId).style.visibility="hidden";}function OpenWindow(query, nom, x, y){ x1=screen.availWidth; y1=screen.availHeight; var opciones="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width="+(x-7)+",height="+(y-7)+",top="+(y1-y)/2+",left="+(x1-x)/2; window.open(query, nom, opciones);}
function createXmlHttpRequestObject(){ var xmlHttp; try { xmlHttp = new XMLHttpRequest();} catch(e) { var XmlHttpVersions = new Array("MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.5.0", "MSXML2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"); for (var i=0; i<XmlHttpVersions.length && !xmlHttp; i++) { try { xmlHttp = new ActiveXObject(XmlHttpVersions[i]);}
catch (e) {}}} if (!xmlHttp)alert("Error creando Objeto XMLHttpRequest."); else return xmlHttp;}function getResultadosHome(encuesta){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = "encuesta.php?a=mostrarenhome2&EncID="+encuesta; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.indexOf("error") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("opcionesEncuesta" + encuesta); PlaceHolder.innerHTML = response;}
}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function nextImg(Galeria, pag, orig){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { if(orig==1){ query = "imagen.php?action=NextImage&Origen="+orig+"&NotID="+Galeria+"&pag="+pag;}
xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.indexOf("error") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("galerias"+Galeria); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function getImgRecomendada(NotID){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = HOSTJS+"galerias/imgrecomendadas.php?action=NextImage&NotID="+NotID; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.indexOf("error") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("galerias"+NotID); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function registrarVoto(encuesta, opcionelegida){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = "encuesta.php?a=votar&EncID="+encuesta+"&EncOpc="+opcionelegida; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.indexOf("error") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("opcionesEncuesta"+encuesta); PlaceHolder.innerHTML = ""; var PlaceHolder = document.getElementById("botonResultados"+encuesta); PlaceHolder.innerHTML = ""; var PlaceHolder = document.getElementById("botonVotar"+encuesta); PlaceHolder.innerHTML = ""; getResultadosHome(encuesta);}
}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function VotarEncuesta(Encuesta, opc){ if(opc){ registrarVoto(Encuesta, opc);}else{ alert("Seleccione una Opción");}}

function search(aEvent){ 
query = document.getElementById("sbi").value; 
var myEvent = window.event ? window.event : aEvent; 
if(myEvent.keyCode==13){ 
	if(query!=""){ 
		location = HOSTJS+"?a=s&query="+query; 
		document.MM_returnValue = false;
	}else{ 
		if(query!="" && tipoBusqueda==false){ 
			document.formg.submit();
		}
	}
}else{ 
	if(query!=""){ 
		location = HOSTJS+"?a=s&query="+query; 
		document.MM_returnValue = false;
	}else{ 
		if(query!="" && tipoBusqueda==false){ 
			document.formg.submit();
		}
	}
}
document.MM_returnValue = false;
}

function time(){ var all; var month; var period; var day; var currentDate=new Date();year=currentDate.getFullYear();hour=currentDate.getHours();date=currentDate.getDate();switch(currentDate.getMonth()){ case 0:month="Enero";break; case 1:month="Febrero";break; case 2:month="Marzo";break; case 3:month="Abril";break; case 4:month="Mayo";break; case 5:month="Junio";break; case 6:month="Julio";break; case 7:month="Agosto";break; case 8:month="Septiembre";break; case 9:month="Octubre";break; case 10:month="Noviembre";break; case 11:month="Diciembre";break;}
switch(currentDate.getDay()){ case 0:day="Domingo";break; case 1:day="Lunes";break; case 2:day="Martes";break; case 3:day="Miercoles";break; case 4:day="Jueves";break; case 5:day="Viernes";break; case 6:day="Sabado";break;}
var all= day+" "+date+" de "+month+" del "+year+ "<BR>Santiago del Estero, Argentina"
document.write(all)}var tam=10; function tamFont(accion){ if(accion=='+'){ if(tam < 19){ tam=tam + 3; var size="\'"+tam+"pt\'"; document.getElementById("desarrollo").style.fontSize = eval(size);}
}else{ if(tam > 10){ tam = tam - 3; var size="\'"+tam+"pt\'"; document.getElementById("desarrollo").style.fontSize = eval(size);}}}function getComentarioNoticias(NotID, page){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = HOSTJS+"comentarios.php?action=nextCom&NotID="+NotID+"&page="+page; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("listaComentarios"); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function limpiarFormComentario(){ setTimeout('document.formComent.reset()',1000); return false;}function sendFormComentario(){ errors = ''; var Nombre = document.getElementById("Nombre").value; var Apellido = document.getElementById("Apellido").value; var Mail = document.getElementById("Mail").value; var Comentario = document.getElementById("ComentarioTxt").value; if(Nombre == ""){ document.getElementById("NombreID").innerHTML = "&nbsp;Debe completar su Nombre"; errors = 'error';}
if(Apellido == ""){ document.getElementById("ApellidoID").innerHTML = "&nbsp;Debe completar su Apellido"; errors = 'error';}if(Mail == ""){ document.getElementById("MailID").innerHTML = "&nbsp;Debe ingresar su Mail"; errors = 'error';}if(Comentario == ""){ document.getElementById("ComentarioID").innerHTML = "Debe ingresar un comentario<BR />"; errors = 'error';}if(errors=='') limpiarFormComentario(); document.MM_returnValue = (errors == '');}function getNoticiasMasLeidas(){ var arg_rand = Math.random(); var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = HOSTJS + "masleidas.php?"+arg_rand; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ if(response.length != 0) return;}
if(response!=""){ var PlaceHolder = document.getElementById("NoticiasMasLeidas"); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function getGaleriaImagen(){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = "galeriaimagenes/galeriahome3.php"; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("GaleriaImagenDerecha"); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function getTelevisorVideos(){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = HOSTJS+"televisor.php"; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("TelevisorVideos"); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}
}}
xmlHttp.send(null);}
}function getGaleriaImagen2(action, pag, filtro){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { var query = "../galeriaimagen/galeriahome2.php?action="+action+"&filtro="+filtro+"&pag="+pag; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if(xmlHttp.readyState == 0) { document.getElementById("GaleriaImagenDerecha").innerHTML = "Sending Request...";}
if(xmlHttp.readyState == 1) { document.getElementById("GaleriaImagenDerecha").innerHTML = "Cargando...";}if(xmlHttp.readyState == 2) { document.getElementById("GaleriaImagenDerecha").innerHTML = "Cargando...";}if(xmlHttp.readyState == 3) { document.getElementById("GaleriaImagenDerecha").innerHTML = "Cargando...";}if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("GaleriaImagenDerecha"); PlaceHolder.innerHTML = response;}
}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function getGaleriaFotos(Galeria, pag){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { if(Galeria==0){ query = "../galeriaimagen/galeria2.php";}else query = "../galeriaimagen/galeria2.php?GalID="+Galeria+"&pag="+pag; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if(xmlHttp.readyState == 0) { document.getElementById("FotosGaleria").innerHTML = "Sending Request...";}
if(xmlHttp.readyState == 1) { document.getElementById("FotosGaleria").innerHTML = "Cargando...";}if(xmlHttp.readyState == 2) { document.getElementById("FotosGaleria").innerHTML = "Cargando...";}if(xmlHttp.readyState == 3) { document.getElementById("FotosGaleria").innerHTML = "Cargando...";}if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.indexOf("error") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("FotosGaleria"); PlaceHolder.innerHTML = response;}
}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function getMasLeidas(op){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = HOSTJS+"masleidas.php?op="+op; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if(xmlHttp.readyState == 0) { document.getElementById("contenido_mas_leidas").innerHTML = "Cargando...";}
if(xmlHttp.readyState == 1) { document.getElementById("contenido_mas_leidas").innerHTML = "Cargando...";}if(xmlHttp.readyState == 2) { document.getElementById("contenido_mas_leidas").innerHTML = "Cargando...";}if(xmlHttp.readyState == 3) { document.getElementById("contenido_mas_leidas").innerHTML = "Cargando...";}if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.indexOf("error") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("contenido_mas_leidas"); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function getMasNoticias(op, ID){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = HOSTJS + "masleidas.php?op="+op+"&ID="+ID; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("NoticiasMasLeidas"); PlaceHolder.innerHTML = response;}
}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function getBlogs(){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = HOSTJS+"/columnas.php"; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("ColumnasBlogs"); PlaceHolder.innerHTML = response;}
}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function getCanalesRSS(){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = HOSTJS+"rsscontenido.php"; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ var PlaceHolder = document.getElementById("RSScanales"); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function mostrarResultados(nn){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = "http://www.diariopanorama.com/diario/sorteo_tombola.php?sorteo="+nn; xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ if(nn==0) var PlaceHolder = document.getElementById("sorteosTombola0"); if(nn==1) var PlaceHolder = document.getElementById("sorteosTombola"); if(nn==2) var PlaceHolder = document.getElementById("sorteosTombola2"); PlaceHolder.innerHTML = response;}
}}}
xmlHttp.send(null);}
}function PronosticoExt1(CodLocation, tipoSav){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { if(CodLocation=="SASE")
query = HOSTJS+"clima/isotermaxml.php?opc=1"; else query = HOSTJS+"clima/headerxml.php?opc=1&CodLocation="+CodLocation+"&tipoSav="+tipoSav; if(xmlHttp.readyState == 0) { document.getElementById("ExtHoy").innerHTML = "Cargando...";}
if(xmlHttp.readyState == 1) { document.getElementById("ExtHoy").innerHTML = "Cargando...";}if(xmlHttp.readyState == 2) { document.getElementById("ExtHoy").innerHTML = "Cargando...";}if(xmlHttp.readyState == 3) { document.getElementById("ExtHoy").innerHTML = "Cargando...";}xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ PlaceHolder = document.getElementById("ExtHoy"); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function PronosticoExt2(CodLocation, tipoSav){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = HOSTJS+"clima/extendidoxml.php?opc=2&CodLocation="+CodLocation+"&tipoSav="+tipoSav; if(xmlHttp.readyState == 0) { document.getElementById("ExtHoy2").innerHTML = "Cargando...";}
if(xmlHttp.readyState == 1) { document.getElementById("ExtHoy2").innerHTML = "Cargando...";}if(xmlHttp.readyState == 2) { document.getElementById("ExtHoy2").innerHTML = "Cargando...";}if(xmlHttp.readyState == 3) { document.getElementById("ExtHoy2").innerHTML = "Cargando...";}xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ PlaceHolder = document.getElementById("ExtHoy2"); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}}}
xmlHttp.send(null);}
}function PronosticoExt3(CodLocation, tipoSav){ var xmlHttp = createXmlHttpRequestObject(); if (xmlHttp && (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)) { query = HOSTJS+"clima/extendidoxml.php?opc=3&CodLocation="+CodLocation+"&tipoSav="+tipoSav; if(xmlHttp.readyState == 0) { document.getElementById("ExtHoy3").innerHTML = "Cargando...";}
if(xmlHttp.readyState == 1) { document.getElementById("ExtHoy3").innerHTML = "Cargando...";}if(xmlHttp.readyState == 2) { document.getElementById("ExtHoy3").innerHTML = "Cargando...";}
if(xmlHttp.readyState == 3) { document.getElementById("ExtHoy3").innerHTML = "Cargando...";}xmlHttp.open("GET", query, true); xmlHttp.onreadystatechange = function (){ if (xmlHttp.readyState == 4){ if (xmlHttp.status == 200){ response = xmlHttp.responseText; if (response.indexOf("ERRNO") >= 0 || response.length == 0){ alert(response.length == 0 ? "Server serror." : response); return;}
if(response!=""){ PlaceHolder = document.getElementById("ExtHoy3"); PlaceHolder.innerHTML = response;}}else{/*alert("Error de lectura de respuesta del servidor.")*/}
}}
xmlHttp.send(null);}
}function getClima(op){ switch(op){ case 1:
var CodLocation = document.getElementById("select_sgo").value; var CiudadIndex = document.getElementById("select_sgo"); var tipoSav = 1; break; case 2:
var CodLocation = document.getElementById("select_arg").value; var CiudadIndex = document.getElementById("select_arg"); var tipoSav = 1; break; case 3:
var CodLocation = document.getElementById("select_mundo").value; var CiudadIndex = document.getElementById("select_mundo"); var tipoSav = 2; break;}
if(CodLocation!="0"){ PronosticoExt1(CodLocation, tipoSav); PronosticoExt2(CodLocation, tipoSav); PronosticoExt3(CodLocation, tipoSav); document.getElementById("ciudadID").innerHTML = CiudadIndex[CiudadIndex.selectedIndex].text;}else alert("Debe seleccionar una ciudad");}

/*Muestra formulario de busqueda avanzada*/
function showBusquedaAvanzada(){
	document.getElementById("contenedorBusquedaAvanzada").style.display = "block";
}

/*Oculta formulario de busqueda avanzada*/
function cerrarBusquedaAvanzada(){
	document.getElementById("contenedorBusquedaAvanzada").style.display = "none";
}

/**************************************************************
Máscara de entrada. Script creado por Tunait! (21/12/2004)
Si quieres usar este script en tu sitio eres libre de hacerlo con la condición de que permanezcan intactas estas líneas, osea, los créditos.
No autorizo a distribuír el código en sitios de script sin previa autorización
Si quieres distribuírlo, por favor, contacta conmigo.
Ver condiciones de uso en http://javascript.tunait.com/
tunait@yahoo.com 
****************************************************************/
var patron = new Array(4,2,2)
function mascara(d, sep, pat, nums){
if(d.valant != d.value){
	val = d.value
	largo = val.length
	val = val.split(sep)
	val2 = ''
	for(r=0;r<val.length;r++){
		val2 += val[r]	
	}
	if(nums){
		for(z=0;z<val2.length;z++){
			if(isNaN(val2.charAt(z))){
				letra = new RegExp(val2.charAt(z),"g")
				val2 = val2.replace(letra,"")
			}
		}
	}
	val = ''
	val3 = new Array()
	for(s=0; s<pat.length; s++){
		val3[s] = val2.substring(0,pat[s])
		val2 = val2.substr(pat[s])
	}
	for(q=0;q<val3.length; q++){
		if(q ==0){
			val = val3[q]
		}
		else{
			if(val3[q] != ""){
				val += sep + val3[q]
				}
		}
	}
	d.value = val
	d.valant = val
	}
}
