function jsaRestaurar($anno, $mes, $dia)
{
    $xSec = new cSystemPermissions();
    $xSec->setRestore("{$anno}-{$mes}-{$dia}");
    return $xSec->getMessages("html");
}
function jsaSetAplicarPerfiles($id)
{
    $xP = new cSystemPermissions();
    $xP->setAplicarPerfil();
    $xFil = new cFileLog();
    $xFil->setWrite($xP->getMessages());
    $xFil->setClose();
    return $xFil->getLinkDownload("Cambios");
}