// JavaScript Document

<!--  
//----------------------------------------------------------------------------------------
//Crea una nueva ventana de tamaño y colocación determinada
// para evitar que llamadas a determinadas paginas estas 
// secuestren nuestra ventana.
//
function newWindow(address) 
  {var altoVentana;
   var anchoVentana;
   var altoPantalla;
   var anchoPantalla;
   var altonewwindow;
   var anchonewwindow;
   var posX;

   var minimoAncho = 500
   if (navigator.appName == 'Microsoft Internet Explorer')
    {altoVentana = document.body.clientHeight;  // no vale para nada
     anchoVentana = document.body.clientWidth;  
     posX = screenLeft;
    }
   else
    {altoVentana = window.outerHeight;  //  Para Mozilla
     anchoVentana = window.outerWidth;  //   " 
     posX = screenX;
    } 

   altoPantalla = screen.availHeight;
   anchoPantalla = screen.availWidth;
   altonewwindow = altoPantalla - (altoPantalla*20)/100;
   anchonewwindow = anchoPantalla - (anchoPantalla * 10)/100;   
   
   //if (anchonewwindow > minimoAncho) anchonewwindow = minimoAncho;
   posY = altoPantalla - (altoPantalla*96)/100;

   if(posX > anchonewwindow)
    {posX = 2;}
   else     
    {posX = anchoPantalla - anchonewwindow - 40;}

   var secondwindow=window.open(address,'pdf','height=' + altonewwindow +
      ',width=' + anchonewwindow + ',left=' + posX + ',top=' + posY +',scrollbars=yes,' +
      'resizable=yes,dependent=yes,toolbar=no,menubar=yes');    
  }
//-----------------------------------------------------------------------------------------
-->