function fntDeletaImagemExame()
{
    if (isset($_SESSION['caso']) && $_SESSION['caso'] != 0) {
        if (isset($_SESSION['exame']) && $_SESSION['exame'] > 0) {
            $coditem = base64_decode($_POST['r']);
            $e = new Exame();
            $ret = $e->DetelaImagemExame($_SESSION['caso'], $_SESSION['exame'], $coditem);
            if ($ret == false) {
                throw new Exception(Comuns::Idioma("@lng[Erro ao excluir.] " + $e->getErro()), 1004);
            }
        } else {
            throw new Exception(Comuns::Idioma("@lng[Exame não selecionado]"), 1005);
        }
    } else {
        throw new Exception(Comuns::Idioma("@lng[Caso não encontrado]"), 1003);
    }
}