function cashbook($bankid)
{
    $OUTPUT = printdep($bankid);
    $OUTPUT .= "<br>";
    $OUTPUT .= printrep($bankid);
    $OUTPUT .= "\n\t<p>\n\n\t<!--\n\t<form action='../xls/not-banked-xls.php' method=post name=form>\n\t<input type=hidden name=key value=out>\n\t<input type=hidden name=bankid value='{$bankid}'>\n\t<input type=submit name=xls value='Export to spreadsheet'>\n\t</form>\n\t-->\n\n\t<p>\n\t<table border=0 cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "'>\n\t<tr><th>Quick Links</th></tr>\n\t\t<script>document.write(getQuicklinkSpecial());</script>\n\t</table>";
    return $OUTPUT;
}
function cashbook($bankid)
{
    $OUTPUT = printdep($bankid);
    $OUTPUT .= "<br>";
    $OUTPUT .= printrep($bankid);
    $OUTPUT .= "\n\t\t<p>\n\t\t<form action='../xls/not-banked-xls.php' method='POST' name='form'>\n\t\t\t<input type='hidden' name='key' value='out'>\n\t\t\t<input type='hidden' name='bankid' value='{$bankid}'>\n\t\t\t<input type='submit' name='xls' value='Export to spreadsheet'>\n\t\t</form>\n\t\t<p>\n\t\t<table " . TMPL_tblDflts . ">\n\t\t\t<tr>\n\t\t\t\t<th>Quick Links</th>\n\t\t\t</tr>\n\t\t\t<tr class='" . bg_class() . "'>\n\t\t\t\t<td><a href='index-reports.php'>Financials</a></td>\n\t\t\t</tr>\n\t\t\t<tr class='" . bg_class() . "'>\n\t\t\t\t<td><a href='index-reports-banking.php'>Banking Reports</a></td>\n\t\t\t</tr>\n\t\t\t<tr class='" . bg_class() . "'>\n\t\t\t\t<td><a href='../main.php'>Main Menu</a></td>\n\t\t\t</tr>\n\t\t</table>";
    return $OUTPUT;
}
function cashbook($bankid)
{
    $OUTPUT = printdep($bankid);
    $OUTPUT .= "<br>";
    $OUTPUT .= printrep($bankid);
    # Send the stream
    include "temp.xls.php";
    Stream("Oustanding", $OUTPUT);
}