﻿// JScript File


function popUp(url,width,height,redisable) 
{
    var w = (screen.width - width)/2;
    var h = ((screen.height-60) - height)/2;
    if(redisable == null || redisable == 0)
        redisable = 0;
    else
        redisable = 1;
    open(url,'_blank','width='+width+', height='+height+',top='+h+',left='+w+',scrollbars=1,resizable=0');
}

function changeOverCursor() {
    document.getElementById('imagen').style.cursor='hand';
}

function cerrar(reload)
{   
    if(reload=='1')
    {opener.location.reload();}
    window.close();   
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//////////////////////////////////////Para cargar las ventanas GreyBox_v5_53
var GB_ROOT_DIR = "GreyBox_v5_53/greybox/";
document.write("<script type='text/javascript' src='GreyBox_v5_53/greybox/AJS.js'></script>");
document.write("<script type='text/javascript' src='GreyBox_v5_53/greybox/AJS_fx.js'></script>");
document.write("<script type='text/javascript' src='GreyBox_v5_53/greybox/gb_scripts.js'></script>");
    
GB_popUp = function(titulo, url, width, height, fullscreen, show_loading, close, callback_fn) {
    var options = {
    caption: "",
    height: height || 500,
    width: width || 500,
    center_win: true,
    fullscreen: fullscreen,
    show_loading: show_loading,
    callback_fn: callback_fn,
    reload_on_close : close
    }
    //alert(titulo+" "+url);
var win = new GB_Window(options);
return win.show(url);
}
/////////////////////////////////////termina GreyBox_v5_53*/