'Format a page heading.'

def heading(self, title, fgcol, bgcol, extras=''):

    return ('\n<table    width="100%%"    cellspacing=0    cellpadding=2    border=0    summary="heading">\n<tr    bgcolor="%s">\n<td    valign=bottom>&nbsp;<br>\n<font    color="%s"    face="helvetica,    arial">&nbsp;<br>%s</font></td\n><td    align=right    valign=bottom\n><font    color="%s"    face="helvetica,    arial">%s</font></td></tr></table>\n                ' % (bgcol, fgcol, title, fgcol, (extras or '&nbsp;')))
