

function carga_ventana(web_ventana,nombre_ventana,resx,resy,posx,posy,scroll) {
// web_ventana: url
// nombre_ventana: nombre de la ventana (id enlace)
// resx: tamaño X
// resy: tamaño Y
// posx: posicion X
// posy: posicion Y
// scroll: 0 deshabilitado, 1 habilitado

var ancho_interface=10
var alto_interface=29

            if ((posx==-1) && (posy==-1))
            {
                var tamx=screen.width;
                var tamy=screen.height;
                posx=(tamx-(resx+ancho_interface))/2;
                posy=(tamy -(resy+alto_interface))/2;
            }

            var inicioNombre = web_ventana.lastIndexOf('/')+1;
            //var nombre_ventana = web_ventana.substring(inicioNombre,web_ventana.lastIndexOf('.'));
            var cadena_opciones="width=" + resx + ",height=" + resy + ",left=" + posx + ",top=" + posy +((scroll)?",scrollbars=yes":"");
            var vent= window.open(web_ventana,nombre_ventana,cadena_opciones);

// deteccion de bloqueo de popup
if (vent==null || vent==undefined) alert('Su sistema bloqueó una ventana emergente.\n\nDurante la navegación en esta Web, debe permitir temporalmente\nla apertura de ventanas emergentes.'); 
}