function showGifts($lFID, $bBiz, $strCumGiftsNonSoftMon, $strCumGiftsNonSoftInKind, $strCumGiftsSoft, $strCumSpon, $lNumPledges, $lTotHard, $lTotSoft, $lTotInKind, $lNumSponPay)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    global $gstrCurrency;
    $attributes = new stdClass();
    $attributes->lTableWidth = 900;
    $attributes->divID = 'giftSumDiv';
    $attributes->divImageID = 'giftSumDivImg';
    $attributes->bStartOpen = false;
    openBlock('Donations <span style="font-size: 9pt;">(' . $lTotHard . ' hard / ' . $lTotSoft . ' soft / ' . $lTotInKind . ' in-kind / ' . $lNumSponPay . ' spon pay)</span><br>', strLinkView_GiftsHistory($lFID, 'Gift history', true) . '&nbsp;' . strLinkView_GiftsHistory($lFID, 'Gift history', false) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkAdd_Gift($lFID, 'New donation', true) . '&nbsp;' . strLinkAdd_Gift($lFID, 'New donation', false) . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . strLinkAdd_Pledge($lFID, 'New pledge', true) . '&nbsp;' . strLinkAdd_Pledge($lFID, 'New pledge', false), $attributes);
    if (bAllowAccess('showGiftHistory')) {
        echoT('
         <table border="0">
            <tr>
               <td class="enpView" style="width: 120pt;">
                  Total Monetary Gifts:
               </td>
               <td class="enpView" style="text-align: right; 
                  vertical-align: top; width: 70pt;" nowrap>' . $gstrCurrency . $strCumGiftsNonSoftMon . '
               </td>
               <td class="enpView">&nbsp;</td>
            </tr>');
        echoT('
            <tr>
               <td class="enpView">
                  Total In-Kind Gifts:
               </td>
               <td class="enpView" style="text-align: right;">' . $gstrCurrency . ' ' . $strCumGiftsNonSoftInKind . '
               </td>
               <td class="enpView">&nbsp;</td>
            </tr>');
        echoT('
            <tr>
               <td class="enpView">
                  Sponsorship Payments:<br>
                  <i>included in monetary gifts</i>
               </td>
               <td class="enpView" style="text-align: right;">' . $gstrCurrency . ' ' . $strCumSpon . '
               </td>
               <td class="enpView">&nbsp;</td>
            </tr>');
        echoT('
            <tr>
               <td class="enpView">
                  Total Soft Donations:
               </td>
               <td class="enpView" style="text-align: right;">' . $gstrCurrency . ' ' . $strCumGiftsSoft . '
               </td>
               <td class="enpView">&nbsp;</td>
            </tr>');
        if ($lNumPledges > 0) {
            $strLinkPledges = strLinkView_PledgeViaFID($lFID, 'View pledges', true);
        } else {
            $strLinkPledges = '';
        }
        echoT('
            <tr>
               <td class="enpView">
                  Pledges:
               </td>
               <td class="enpView" style="text-align: center;">' . $lNumPledges . '&nbsp;' . $strLinkPledges . '
               </td>
               <td class="enpView">&nbsp;</td>
            </tr>');
        echoT('
         </table>');
    }
    $attributes = new stdClass();
    $attributes->bCloseDiv = true;
    closeBlock($attributes);
}
            echoT('</table></br>');
        }
        ++$idx;
    }
    echoT('<b>Flags:</b> <br>
                      &nbsp;&nbsp;<b>H</b> - honorarium<br>
                      &nbsp;&nbsp;<b>M</b> - memorial<br>
                      &nbsp;&nbsp;<b><i>italics</i></b> - soft donation<br>
                      ');
}
$attributes->bCloseDiv = true;
echoT(closeBlock($attributes));
// Pledges
$attributes->divID = 'groupPledgeDiv';
$attributes->divImageID = 'groupPledgeDivImg';
echoT(openBlock('Pledges', strLinkView_PledgeViaFID($lFID, 'View Pledge Report', true) . '&nbsp;' . strLinkView_PledgeViaFID($lFID, 'View Pledge Report', false), $attributes));
if ($lNumPledges == 0) {
    echoT('<i>No pledges associated with this donor.</i>');
} else {
    echoT('
         <table class="enpRpt">
            <tr>
               <td class="enpRptLabel">
                  &nbsp;
               </td>
               <td class="enpRptLabel">
                  Amount
               </td>
               <td class="enpRptLabel">
                  Account
               </td>