include_once "./core/core.error.inc.php";
include_once "./core/core.html.inc.php";
include_once "./core/core.init.inc.php";
$theFile = __FILE__;
$permiso = getSIPAKALPermissions($theFile);
if ($permiso === false) {
    header("location:../404.php?i=999");
}
$_SESSION["current_file"] = addslashes($theFile);
//<=====	FIN_H
$iduser = $_SESSION["log_id"];
//=====================================================================================================
$xHP = new cHPage(EACP_NAME . "{" . getSucursal() . "} - S.A.F.E. V " . $version . "", HP_FORM, "", ".");
$fecha_de_sesion = parametro("f", fechasys());
$MenuParent = parametro("m", 0, MQL_INT);
$isMobile = $xHP->isMobile();
$_SESSION[SYS_CLIENT_MOB] = $isMobile;
/**
 * Procedimientos AJAX
 */
$jxc = new TinyAjax();
function jsaGetMoneyChanges()
{
    if (!isset($_SESSION["money"])) {
        $_SESSION["money"] = 0;
    }
    $_SESSION["money"] += 100;
    return $_SESSION["money"];
}
function jsaGetMenu($subitems)
{