function processFile() {
    new XHR({
        method: 'get', 
        async: false
    }).send('index.php', 'plgDisclaimer_files_accept=yes');
    TB_remove();
    window.location.reload();
    return true;
}

function processGeneral(base_url) {
    new XHR({
        method: 'get', 
        async: false
    }).send(base_url + 'index.php', 'plgDisclaimer_general_accept=yes');
    TB_remove();
    window.location.reload();
    return true;
}


function goBack() {
    window.history.go(-1);
}

function loadRefusalAction(window_document,use_redirect_flag, check_button_enabled)
{
    if (use_redirect_flag)
    {
        if (check_button_enabled) window.parent.history.go(-1);
        return true;
    }

    jQuery("div.plg_disclaimer", window_document).hide();
    jQuery("#refusalModalBox", window_document).show();
    
    return false;
}

function acceptRefusalAction(window_document)
{
    goBack();
    /*jQuery("#refusalModalBox", window_document).hide();
    jQuery("div.plg_disclaimer", window_document).show();*/
}


