$tot_amount = sprintf("%.2f", $tot_amount);
print '</TABLE><BR>'. table(). <<END;
- <TR><TD> </TD><TH>Total<BR>Amount</TH></TR>
- <TR><TD><TD ALIGN="right">\$$tot_amount</TD></TR>
+ <TR>
+ <TH>Total Amount</TH>
+ <TD ALIGN="right">\$$tot_amount</TD>
+ </TR>
</TABLE>
</BODY>
</HTML>