<!-- BEGIN addressbook_header -->
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
  function onclick_allcheck()
  {
	for (i=0; i<document.mainfrm.elements.length; i++) {
		if (document.mainfrm.elements[i].type == "checkbox") {
			if (document.mainfrm.elements[i].checked) {
				document.mainfrm.elements[i].checked = false;
			} else {
				document.mainfrm.elements[i].checked = true;
			}
		} 
	}  
  }
  function onclick_delete()
  {
 	for (i=0; i<document.mainfrm.elements.length; i++) {
		if (document.mainfrm.elements[i].type == "checkbox") {
			if (document.mainfrm.elements[i].checked) {
				return true;
			}
		}
	}
	return false; 
  }
</SCRIPT>
  <table class="basic" align="left">
    <tr>
      {principal_tabs_inc}
    </tr>
  </table>
  <br /><br /><br />
  <div align="center">
  {lang_showing}<br />
  {searchreturn}
  {search_filter}
  </div>

  <form action="{delete_url}" method="post" name="mainfrm">
  <table class="padding" align="center" style="border: 2px solid #FFFFFF">
      <tr class="header">
        {cols}
        <td></td>
        <td></td>
        <td></td>
        <td align="right"><input type="checkbox" name="allcheck" onclick="onclick_allcheck()"></td>
        <!--<td><img src="addressbook/templates/probusiness/images/single.png" title="{lang_owner}" /></td>-->
      </tr>
<!-- END addressbook_header -->

<!-- BEGIN column -->
			<td class="bg_color1">{col_data}</td>
<!-- END column -->

<!-- BEGIN row -->
      <tr class="bg_view">
        {columns}
        <td class="bg_color2"><a href="{row_view_link}"><img src="phpgwapi/templates/default/images/view.png" title="{lang_view}" /></a></td>
        <td class="bg_color2"><a href="{row_vcard_link}"><img src="addressbook/templates/probusiness/images/newcntc.png" title="{lang_vcard}" /></a></td>
        <td class="bg_color2">{row_edit}</td>
        <td class="bg_color2" nowrap>{row_delete}</td>
        <!--<td class="bg_color2"><img src="addressbook/templates/probusiness/images/single.png" title="{row_owner}" /></td>-->
      </tr>
<!-- END row -->

<!-- BEGIN addressbook_footer -->
  </table>
	<br />
  <table class="padding" align="center" style="border: 2px">
    <tr>
	  <td width="50%"><input type="button" name="Add" value="{lang_add}" onclick="javascript:location.href='{add_url}'"></td>
	  <td width="50%" align="right"><input type="submit" name="Delete" value="{lang_delete}" onclick="return onclick_delete()"></td>
	</tr>
  </table>
  </form>
<!-- END addressbook_footer -->

