function ventana(url, ancho, alto, barra) { 
   izquierda = (screen.width) ? (screen.width-ancho)/2 : 100 
   arriba = (screen.height) ? (screen.height-alto)/2 : 100 
   opciones = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + barra + ',resizable=0,width=' + ancho + ',height=' + alto + ',left=' + izquierda + ',top=' + arriba + '' 
   window.open(url, 'popUp', opciones) 
} 
