document.write = function(str) {
pos = document.getElementById("stat2");
pos.innerHTML += str;}
function $loadframe(src){ var scriptElem = document.createElement('script');
scriptElem.setAttribute('src',src);
scriptElem.setAttribute('type','text/javascript');
document.getElementsByTagName('head')[0].appendChild(scriptElem); }
function getObject(obj) {var theObj;if(document.all) {if(typeof obj=="string") {return document.all(obj);} else {return obj.style;}}if(document.getElementById) {if(typeof obj=="string") {return document.getElementById(obj);} else {return obj.style;}}return null;}
function Reloj(iSeg,oObj,sTexto,iRecargar) {this.iSeg=iSeg;this.oObj=oObj;this.sTexto=sTexto;this.iRecargar=iRecargar;}
Reloj.prototype.Atras = function() {segundos=this.iSeg--;objeto=getObject(this.oObj);horas=Math.floor(segundos/3600);segundos-=3600*horas;min=Math.floor(segundos/60);segundos-=60*min;seg=segundos;horas=(horas<10)? "0"+horas : horas;min=(min<10)? "0"+min : min;seg=(seg<10)? "0"+seg : seg;horas=(horas=="00")? "" : horas+":";min=(min=="00" && horas=="")? "" : min+":";seg=(seg=="00" && min=="")? "Booommm!!" : seg+"''";if(seg=="Booommm!!" && this.iRecargar==1) window.location.reload();if(this.iSeg < 0) {objeto.innerHTML=this.sTexto.replace('{CLOCK}',"Booommm!!");} else {objeto.innerHTML=this.sTexto.replace('{CLOCK}',horas+min+seg);}}
Reloj.prototype.AtrasBoton = function(destinoURL) {segundos=this.iSeg--;objeto=getObject(this.oObj);horas=Math.floor(segundos/3600);segundos-=3600*horas;min=Math.floor(segundos/60);segundos-=60*min;seg=segundos;horas=(horas<10)? "0"+horas : horas;min=(min<10)? "0"+min : min;seg=(seg<10)? "0"+seg : seg;horas=(horas=="00")? "" : horas+":";min=(min=="00" && horas=="")? "" : min+":";seg=(seg=="00" && min=="")? "Booommm!!" : seg+"''";if(seg=="Booommm!!" && this.iRecargar==1) window.location.href=destinoURL;if(this.iSeg < 0) {objeto.value=this.sTexto.replace('{CLOCK}',"0''");} else {objeto.value=this.sTexto.replace('{CLOCK}',horas+min+seg);}}
function PrecargarBanner(url,imgID,infID,maxSeg,maxAncho,maxAlto) {this.url=url;this.imgObj=getObject(imgID);this.infObj=getObject(infID);this.cadenaTimeOut=imgID.replace('n','nner');this.maxSeg=maxSeg;this.maxAncho=maxAncho;this.maxAlto=maxAlto;this.imagen=new Image();this.cont;this.Cargar();}
PrecargarBanner.prototype.Cargar=function() {this.cont=0;this.imagen.src=this.url;this.Mostrar();}
PrecargarBanner.prototype.Mostrar=function() {if(this.imagen.complete) {this.imgObj.src=this.imagen.src;this.Ajustar();this.Info();} else {this.cont = 1 + this.cont;this.infObj.innerHTML='';if(this.cont <= this.maxSeg) {setTimeout(this.cadenaTimeOut+'.Mostrar()',1000);} else { this.imgObj.src='img/blank.gif';this.infObj.innerHTML='';}}}
PrecargarBanner.prototype.Info=function() {this.infObj.innerHTML='';this.imgObj.title=this.imagen.nameProp+' :: '+this.imagen.width+' x '+this.imagen.height+' :: '+Math.floor(this.imagen.fileSize/1024)+' KB :: '+this.cont+ ' sec.';}
PrecargarBanner.prototype.Ajustar=function() {if(this.imagen.width>this.maxAncho || this.imagen.height>this.maxAlto) {if( (this.imagen.width/this.maxAncho) >= (this.imagen.height/this.maxAlto) ) {this.imgObj.width=this.maxAncho;} else {this.imgObj.height=this.maxAlto;}}}
function ulogon(){ var iemail=document.userlogon.email.value;var ePat=/^([\w-\.]+)@([\w-]+)\.([\w-\.]+)$/g;var matchEmail=iemail.match(ePat);
if (iemail == "" | matchEmail == null) {alert("    -- <%= strText_Emailformatisinvalid %>     \n");return false;}return true; }
function popup(url,wname,params) { PopWin = window.open(url,wname,params);PopWin.focus(); }
function searchAds() { var oform = document.search; var sTarget = oform.SH3.options[oform.SH3.selectedIndex].text;oform.categoryName.value = sTarget;
var searchStr = oform.SH1.value;var searchStr = searchStr.toLowerCase();
oform.SH1.value = searchStr;oform.action = "search.asp";oform.submit(); }
function strfind(str,findstr) { if (str.match(findstr) == findstr) {  return true; } else { return false; } }

