header("Location:participante.lista.php?idGrupo=" . $_REQUEST['idGrupo']);
    }
    if ($_REQUEST['acao'] == "IncluirPagamento") {
        $oPagamento->incluirPagamento();
        header("Location:participante.pagamentos.php?idGrupo=" . $_REQUEST['idGrupo'] . "&idParticipante=" . $_REQUEST['idParticipante']);
    }
    if ($_REQUEST['acao'] == "AlterarPagamento") {
        $oPagamento->alterarPagamento();
        header("Location:participante.pagamentos.php?idGrupo=" . $_REQUEST['idGrupo'] . "&idParticipante=" . $_REQUEST['idParticipante']);
    }
    if ($_REQUEST['acao'] == "ExcluirPagamento") {
        $oPagamento->getById($oPagamento->md5_decrypt($_REQUEST['idPagamento']));
        $oPagamento->excluirPagamento();
        header("Location:participante.pagamentos.php?idGrupo=" . $_REQUEST['idGrupo'] . "&idParticipante=" . $_REQUEST['idParticipante']);
    }
    if ($_REQUEST['acao'] == "IncluirAbatimento") {
        $oAbatimento->incluirAbatimento();
        header("Location:participante.abatimentos.php?idPagamento=" . $_REQUEST['idPagamento']);
    }
    if ($_REQUEST['acao'] == "AlterarAbatimento") {
        $oAbatimento->alterarAbatimento();
        header("Location:participante.abatimentos.php?idPagamento=" . $_REQUEST['idPagamento']);
    }
    if ($_REQUEST['acao'] == "CancelarAbatimento") {
        $oAbatimento->cancelarAbatimento();
        header("Location:participante.abatimentos.php?idPagamento=" . $_REQUEST['idPagamento']);
    }
} else {
    $_SESSION['tupi.mensagem'] = 5;
    header("Location:home.php");
}