<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html >
    <head >
        <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
        <style type="text/css">
           <!--
            body {
                font-family:Tahoma;
            }

            img {
                border:0;
            }

            #page {
                width: 700px;
                margin:0 auto;

            }

            #logo {
                float:left;
                margin:0;
            }

            #address {
                height:181px;

            }

            table {
                width:100%;
            }

            td {
                padding:5px;
            }

            tr.odd {
                background:#e1ffe1;
            }
            -->
        </style>
    </head>
    <body>
        <div id="page"  style="width: 100%;">
                <table cellpadding="5" align="right"  cellspacing="0"
                       width="100%" style="background-color:#CCCCCC;">
                    <tr style="width: 100%">
                        <td width="100%" height="30px" valign="middle" style="font-size: larger" >
                            <b>{invoice}  #{invoiceNum}</b>&nbsp;&nbsp;
                        </td>
                    </tr>
                </table>
                <table cellpadding="0" cellspacing="0">
                    <tr><td width="50%">
                            <div align="left" ><br/>
                            <img alt="logo"  border="0" src="{invoicelogo}" />
                </div>
                        </td>
                        <td width="50%">
                            <div align="right" style="width: 100%"><br/>
                                <table cellpadding="0" cellspacing="0"><tr><td>
                                            <b>{dueDateLabel} : </b> {duedate}</td></tr>
                    <tr><td><b>{paidLabel}</b> {paidDate}</td></tr>
                    <tr><td><b>{pmtRefLabel}</b> {pmtRef}</td></tr></table>
                </div>
                        </td>
                    </tr></table>
            <table cellpadding="0" cellspacing="0" width="99%">
                <tr style="width: 100%">
                    <td width="35%">
                        <div style="width: 100%">
                            <table cellpadding="0" cellspacing="0"  >
                                <tr><td ><b>Bill To:</b></td></tr>
                                {customerOrg}
                                <tr><td >{customerName}</td></tr>
                                <tr><td >{customerAddress}</td></tr>
                                <tr><td >{customerPhone}</td></tr>
                                <tr><td >{customerEmail}</td></tr>
                                </table>
                        </div>
                    </td>
                    <td width="35%">
                        <div >
                           <img alt="status"  border="0" src="{imgurl}" />
                        </div>

                    </td>
                    <td width="30%" align="right">
                        <div align="right">
                            <table cellpadding="0" cellspacing="0"  align="right">
                                <tr><td align="right"></td></tr>
                                <tr><td align="right">{companyName}</td></tr>
                                {companyAddress}
                                <tr><td align="right"><a href="mailto:{companyEmail}" >{companyEmail}</a></td></tr>
                            </table>
                                
                        </div>
                    </td>
                </tr>
            </table>
            <div id="content">
                <table  border="3" width="99%">
                    <tr style="width: 100%" >
                        <!-- BEGIN DYNAMIC BLOCK: invoiceheaders -->
                        <td width="{width}" align="{align}" style="background-color: #CCCCCC;font-size: medium;height: 25px;">

                            <strong>{invoiceheader}</strong>

                        </td>
                        <!-- END DYNAMIC BLOCK: invoiceheaders -->
                    </tr>
                    <!-- BEGIN DYNAMIC BLOCK: invoiceentries -->
                    <tr style="width: 100%">
                        <!-- BEGIN DYNAMIC BLOCK: invoicedatas -->
                        <td width="{width}" align="{align}">
                            {data}
                        </td>
                        <!-- END DYNAMIC BLOCK: invoicedatas -->
                    </tr> 
                    <!-- END DYNAMIC BLOCK: invoiceentries -->
                </table>
                <table width="99%">
                    <!-- BEGIN DYNAMIC BLOCK: totalentries -->
                    <tr style="width: 100%">
                        <td  align="right" width="{totalwidth}">
                            <b>{totalLabel}</b>
                        </td>
                        <td align="right" width="{pricewidth}" {colspan}>
                            <b>{totalPrice}</b>
                    </td>
                </tr>
                <!-- END DYNAMIC BLOCK: totalentries -->
            </table>

            <p>
                {additionalnotes}
            </p>

            <p>
                Thank you for your order!  This transaction will appear on your billing statement as "{companyName}".<br />
                If you have any questions, please feel free to contact us at <a href="mailto:{companyEmail}">{companyEmail}</a>.
            </p>

            <hr>

            <center><small>This communication is for the exclusive use of the addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient any use, copying, disclosure, dissemination or distribution is strictly prohibited.
                    <br /><br />
                    &copy; {companyName} All Rights Reserved
                </small></center>

        </div><!--end content-->
    </div><!--end page-->
</body> 

</html>