
// abre una ventana
// id = número que identifica a la ventana
// pagina = URL de la página que se abrirá en la ventana
// anchura = anchura de la ventana
// altura = altura de la ventana


  function ventana(id,pagina,anchura,altura)
  {
    xposition = (screen.width - anchura) / 2;
    yposition = (screen.height - altura) / 2;
    open(pagina,'ventana'+id,"titlebar=0,hotkeys=0,resizable=0,toolbar=0,directories=0,menubar=0,status=0,width="+anchura+",height="+altura+",left="+xposition+",top="+yposition); 
  }