
function getwidth(x) {

  // this script fixes some clientwidth bugs for the menu to be fullsize
  // Free to use by anyone if this header remains in position
  // (C)2000 Hans Luyten
  
  clientwidth=2000; 
  if (self.innerWidth)
     {
     if (navigator.appName.indexOf('etscape')!=-1)
        {
        clientWidth = self.innerWidth-17;
        }
        else
        clientWidth = self.innerWidth; 
     }
     else if (document.body)
     {
        clientWidth = document.body.clientWidth;
     }
  returnwidth=clientWidth-x;
  return returnwidth;
}

function AbrirImagen(imagen, poptitle, w, h) { 
   winpops = window.open ('','','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,leftmargin=0,topmargin=0,marginwidth=0,marginheight=0,width='+w+',height='+h);
   winpops.moveTo(screen.width/2-(w/2),screen.height/2-(h/2));
   winpops.document.write("<HTML><TITLE>"+poptitle+"</TITLE><CENTER>");
   winpops.document.write("<body topmargin=0 leftmargin=0>"); 
   winpops.document.write("<IMG src='"+imagen+"'>");
   winpops.document.write("</CENTER></body></HTML>");
}

