function formatCurrency( aiDouble )
{
  var fTotalPre = Math.floor( aiDouble ) ;
  var fTotalAft = Math.round( (aiDouble - fTotalPre) * 100 );
  var textTotal = fTotalPre + "." + fTotalAft;
  if ( fTotalAft < 10 )
    textTotal = fTotalPre + ".0" + fTotalAft;
  return textTotal;
}










