<script type="text/javascript">
    var gridsavedstate = '{GRIDSAVEDSTATE}';
    
    if(gridsavedstate != ""){
        gridsavedstate = Ext.util.JSON.decode(gridsavedstate);
    }else{
        //set default settings
        gridsavedstate = Ext.util.JSON.decode('{"columnorder":["billdate","linkid","customername","billappliesto","paymentprocessor","billbalancedue","status"],"sortinfo":{field : "billdate",dir: "desc"},"displaysize":"25","invoicefilter":"0"}');
    }
</script>

<style type="text/css">
    .invoicelink{
        position:       relative !important;
        top:            -4px !important;
        padding-right:  5px !important;
    }
</style>

<span class="grid-meta" id="invoicelistlabel"></span>

<div id="gridheader" class="blue-box" style="padding:4px !important;">
    <table class="automation" border="0">
        <tbody>
            <tr>
                <td>
                    <div style="display:none;" id="addchargebutton"></div>
                </td>
                <td align="right">
                        <table>
                        <tbody>
                        <tr>
                            <td>&nbsp;&nbsp;&nbsp;[l]Filter Type[/l]:&nbsp;&nbsp;</td>
                            <td><input type="text" id="invoicetype"/></td>
                            <td>&nbsp;&nbsp;
                                <!-- BEGIN DYNAMIC BLOCK: pricetype -->
                                <span style="float:left;margin-right:2px;padding-top:2px;">
                                    &nbsp;&nbsp;&nbsp;
                                    [l]Price[/l]:
                                </span>
                                <input type="text" id="pricetype"/>
                                &nbsp;&nbsp;
                                <!-- END DYNAMIC BLOCK: pricetype -->
                            </td>
                            <td><input type="text" id="numlistfilter"/></td>
                        </tr>
                        </tbody>
                        </table>
                </td>
            </tr>
        </tbody>
    </table>
</div>

<div id="invoices-grid"></div>
<div id="invoicesdetails-totals" align="right" style="float:right;padding-top:6px;padding-right:5px;font-size:14px;font-weight:bold;color:#666666;"></div>
<div id="invoice"></div>