function browser(){//Constructor de un objeto "browser"
        this.ver=navigator.appVersion;
        this.browser=navigator.appName;
        this.agent=navigator.userAgent;
        this.dom=document.getElementById?1:0;
        this.IE5=(this.ver.indexOf("MSIE 5")>-1)||(IE5=this.ver.indexOf("MSIE 6")>-1);
        this.NS5=(this.dom && parseInt(this.ver)>=5)?1:0;
        this.Mac=this.agent.indexOf("Mac")>-1;
        this.NS4=(document.layers && !this.dom)?1:0;

}
BR=new browser();//Objeto de tipo "browser".
function findObj(obj){ //Esta función busca el objeto por el id según el browser del usuario.
   element=BR.IE5?window.document.all[obj]:BR.NS5?window.document.getElementById(obj):(BR.IE5&&BR.Mac)?window.document.all[obj]:(BR.NS5&&BR.Mac)?window.document.getElementById(obj):0;
   if(element==0) alert("Este sitio web está diseñado para browsers Internet Explorer o Netscape Navigator versiones 5.0 o superiores.");
   return (element);
}
ancho = screen.width;
largo = screen.height;
//function window_onload() {
//        parent.window.moveTo (-100,-100);
//        parent.window.resizeTo(1,1);
//        }
//if (BR.IE5 && !BR.Mac) window_onload();

// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****
// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****// *****
// ***** SI HACES REFERENCIA EN EL TAG BODY A ESTA FUNCION (GETWIN_POPUP), SE ABRE EL BROWSER A PANTALLA COMPLETA MEDIANTE LA PROPIEDAD FULLSCREEN='YES', TOMANDO PREVIAMENTE LOS VALORES DEL ANCHO Y ALTO DE LA PANTALLA (screen.width y screen.height)*****

function getwin_popup(wr_win, wname){
    var w_config = "fullscreen=yes, status=no,scrollbars=no,resizable='0',width=" + ancho + ",height=" + largo; 
    var w_var = window.open(wr_win, wname, w_config); 
    if (w_var.history.length >= 1) { 
       var del = -w_var.history.length; 
       w_var.history.go(del); 
    }
    w_var.moveTo (0,0);
    if(BR.Mac) window.close();
}

function open_window_center(win_win,win_name,win_atrib,win_ancho,win_alto){
    var w_config = win_atrib;
    if (win_atrib != '') { w_config = w_config + ',' }
    w_config = w_config + "width=" + win_ancho + ",height=" + win_alto + ",left=" + (ancho-win_ancho) / 2 +",top="+(largo-win_alto)/2
//    alert("config="+w_config);
    var w_var = window.open(win_win, win_name, w_config); 
}
