<!-- BEGIN DYNAMIC BLOCK: viewArchivedLink -->
<!-- END DYNAMIC BLOCK: viewArchivedLink -->
<div id="divstaffnotes" style="display:">
<div id="clientNotes">

<table border=0 cellpadding=2 cellspacing=1 width=95% align="center">

      <!-- BEGIN DYNAMIC BLOCK: customerNote -->
      <tr class="columnheader">
        <td width="80">&nbsp;
          [l]Submitted[/l]:
        </td>
        <td style="padding-left:5px;">
            {authorAndDate}
            <!-- BEGIN DYNAMIC BLOCK: assocTicketTypes -->
            <div>({assocTicketTypesList})</div>
            <!-- END DYNAMIC BLOCK: assocTicketTypes -->
        </td>
        <!-- BEGIN DYNAMIC BLOCK: visibleByCustomer -->
        <td align="right" style="color:#008000; font-weight:bold">
            [l]Visible by customer[/l]
        </td>
        <!-- END DYNAMIC BLOCK: visibleByCustomer -->
      </tr>
        <tr>
        <td colspan="2" class="messageBox" style="padding-top:5px;" valign="top">{noteContents}<br><br></td>
      </tr>
        <!-- BEGIN DYNAMIC BLOCK: deleteNote -->
        <div style="text-align:right; margin:5px">
            <a href="#" onclick="deleteNote({noteId},'client')">[l]delete[/l]</a>
        </div>
        <!-- END DYNAMIC BLOCK: deleteNote -->

        <!-- END DYNAMIC BLOCK: customerNote -->

</table>


        <table>
            <tr>
                <!-- BEGIN DYNAMIC BLOCK: addNote -->
                <div style="margin:5px 0; position:relative" name="expandedmenu">
                    <td width="200">
                    </td>
                    <!-- BEGIN DYNAMIC BLOCK: archiveNotes -->
                    <td width="200">
                        <input type="button" onclick="archiveNotes({clientId})" class="button" value="[l]Archive notes[/l]" />
                    </td>
                    <!-- END DYNAMIC BLOCK: archiveNotes -->
                </div>
                <!-- END DYNAMIC BLOCK: addNote -->
                <!-- BEGIN DYNAMIC BLOCK: viewArchivedLink -->
                <td width="200">
                    <input type="button" onclick="javascript:viewAllNotes({clientId})" class="button" value="[l]View Archived[/l]" />
                </td>
                <!-- END DYNAMIC BLOCK: viewArchivedLink -->
            </tr>
        </table>

{groupNotes}

</div> <!-- clientNotes -->
</div> <!-- divstaffnotes -->