function Ventana()
 {
 //alert(this.URL);
 win = window.open(this.URL,this.Titulo,this.settings);
 /*if(win.window.focus){win.window.focus();*/
 }

function PintaImagen()
 {
 if (navigator.appName == 'Microsoft Internet Explorer')
   {
  document.write('<a href="javascript:RecEstadisticas.Ventana();">'+'<img src="'+this.Imagen+'" border="0" alt="Estadísticas ofrecidas por EOL"></a>');
   } 
 else 
   {
  document.write('<a href="javascript:RecEstadisticas.Ventana();">'+'<img src="'+this.Imagen+'" border="0" alt="Estadísticas ofrecidas por EOL"></a>');
   }
 }

function Estadisticas(Codigo,IdAgencia)
 {
 this.OK=1;
 this.win=null;
 this.Ancho=520;
 this.Altura=240;
 this.PosicionI = (screen.width) ? (screen.width-this.Ancho)/2 : 0;
 this.PosicionA = (screen.height) ? (screen.height-this.Altura)/2 : 0;
 this.Scroll='yes';
 this.settings ='height='+this.Altura+',width='+this.Ancho+',top='+this.PosicionA+',left='+this.PosicionI+',scrollbars='+this.Scroll+',status=yes,toolbar=no,location=no,resizable=yes';
 this.Titulo='Estadisticas';
 if (navigator.appName == 'Microsoft Internet Explorer')
   {
  this.Imagen='http://estadisticas.eol.es/AddHit.asp?Id='+Codigo+'&Tipo=Con&Loca='+window.document.location+'&Titu='+window.document.nameProp+'&Modi='+window.document.lastModified;
   }
 else 
   {
  this.Imagen='http://estadisticas.eol.es/AddHit.asp?Id='+Codigo+'&Tipo=Con&Loca='+window.document.location+'&Titu='+window.document.nameProp;
   }
 //this.URL='http://estadisticas.eol.es';
 //this.URL='http://estadisticas.eol.es/visualizacion/estad.asp?IdP='+Codigo;
 this.URL='http://estadisticas.eol.es/visualizacion/estad.asp?IdP='+Codigo+'&IdA='+IdAgencia;
 this.Ventana=Ventana;
 this.PintaImagen=PintaImagen;
 if (Codigo > 0) this.PintaImagen();
 }
 
RecEstadisticas=new Estadisticas(Codigo,IdAgencia);
