	function AbreVentana(url,width,height) {
		windowName = "GabJur"
        agent=navigator.appVersion;
        version=parseInt(agent);
        
        //figure out the top/left of the screen
        //taking the menu bar into consideration
        if (version>=4) {
                leftCorner=screen.width/2 - width/2;
                topCorner=screen.height/2 - height/2;
        }else{
                leftCorner=20;
                topCorner=20;
        }
        features=",screenX="+leftCorner+",screenY="+topCorner+",left="+leftCorner+",top="+topCorner;
        features=features+",titlebar=1,resizable=yes";
        if (popWindow==null) {
                popWindow=open(url,windowName, "width="+width+",height="+height+ features);
                // for IE3, focus, closed, and opener doesn't work, so we have to tell
                // the window opened who's the opener
                if (version<3) 
                        setTimeout("popWindow.mama=window",250);
        }else{
                if (version<3) {
                        popWindow.close();
                        popWindow=null;
                        setTimeout("open_window('"+url+"',"+width+","+height+")", 250);
                        setTimeout("popWindow.mama=window",500);
                }else if (!popWindow.closed){
                        popWindow.close();
                        popWindow=null;
                        setTimeout("open_window('"+url+"',"+width+","+height+")", 250);
                        
                }else{
                        popWindow=null;
                        popWindow=open(url,windowName, "width="+width+",height="+height+features);
                }
        }
		return void(0);
	}
	
	function AbreVentanaCompleta( pagina ){

		var ancho = screen.width;
		var alto = screen.height;
		 
		//Con un sencillo proceso calculamos la altura y anchura de la ventana, luego hacemos el calculo para poner la ventana de tal manera que quede centrada a la <B style="color:black;background-color:#99ff99">pantalla</B>.
		var centroAncho = (screen.width/2) - (ancho/2);
		var centroAlto = (screen.height/2) - (alto/2);
		 
		//Abrimos La Ventana A fullscreen...
		//jlm = window.open(""+pagina+"","miVentana","fullscreen,toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=0,resizable=yes")
		jlm = window.open(""+pagina+"","miVentana","width="+ ancho + ",height=" + alto + ",screenX=0,screenY=0,toolbar=no,location=0,directories=0,status=yes,menubar=no,scrollbars=0,resizable=yes")
		 
		//Ahora hacemos un resizeTo() para achicar esa ventana y como esta a fullscreen no tendra barras <B style="color:white;background-color:#00aa00">ni</B> bordes <B style="color:white;background-color:#00aa00">ni</B> nada:
		jlm.resizeTo(ancho,alto)
		 
		//La centramos.
		jlm.moveTo(centroAlto,centroAncho)

	}

	function AbreVentanaConSize( url,width,height ){

		var ancho = width;
		var alto = height;
		 
		//Con un sencillo proceso calculamos la altura y anchura de la ventana, luego hacemos el calculo para poner la ventana de tal manera que quede centrada a la <B style="color:black;background-color:#99ff99">pantalla</B>.
		var centroAncho = (screen.width/2) - (ancho/2);
		var centroAlto = (screen.height/2) - (alto/2);
		 
		//Abrimos La Ventana A fullscreen...
		//jlm = window.open(""+pagina+"","miVentana","fullscreen,toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=0,resizable=yes")
		jlm = window.open(""+url+"","miVentana","width="+ ancho +",height=" + alto +",toolbar=no,location=0,directories=0,status=yes,menubar=no,scrollbars=YES,resizable=yes");
		 
		//Ahora hacemos un resizeTo() para achicar esa ventana y como esta a fullscreen no tendra barras <B style="color:white;background-color:#00aa00">ni</B> bordes <B style="color:white;background-color:#00aa00">ni</B> nada:
		jlm.resizeTo(ancho,alto);
		 
		//La centramos.
		jlm.moveTo(centroAlto,centroAncho)

	}

