anchor.diff:  <h3><fmt:message key="attach.list"/></h3>
   
     <%--<small><fmt:message key="attach.listsubtitle"/></small>--%>
  -    
  -  <wiki:Permission permission="delete"> 
  +
  +  <wiki:Permission permission="delete">
       <%-- hidden delete form --%>
  -    <form action="tbd" 
  +    <form action="tbd"
              class="wikiform"
  -            name="deleteForm" id="deleteForm" style="display:none;"              
  -          method="post" accept-charset="<wiki:ContentEncoding />" 
  +            name="deleteForm" id="deleteForm" style="display:none;"
  +          method="post" accept-charset="<wiki:ContentEncoding />"
           onsubmit="return(confirm('<fmt:message key="attach.deleteconfirm"/>') && Wiki.submitOnce(this) );" >
   
         <input id="delete-all" name="delete-all" type="submit" value="Delete" />
  
positive.code:       <wiki:Permission permission="delete"><th><fmt:message key="info.actions"/></th></wiki:Permission>
        <th width="30%"><fmt:message key="info.changenote"/></th>
      </tr>
      
      <wiki:AttachmentsIterator id="att">
      <%
        String name = att.getFileName();
        int dot = name.lastIndexOf(".");
        String attachtype = ( dot != -1 ) ? name.substring(dot+1) : "";
        
        String sname = name;
        if( sname.length() > MAXATTACHNAMELENGTH ) sname = sname.substring(0,MAXATTACHNAMELENGTH) + "...";      
      %>
      <tr>
        <td><div id="attach-<%= attachtype %>" class="attachtype"><%= attachtype %></div></td>
  
negative.code:       <td style="text-align:right;">
          <fmt:formatNumber value='<%=((float)att.getSize())/1000 %>' groupingUsed='false' maxFractionDigits='1' minFractionDigits='1'/>&nbsp;Kb
        </td>
        <td style="text-align:center;"><wiki:PageVersion />
          <span style="font-size:90%">
          <wiki:PageInfoLink><fmt:message key="common.more"/></wiki:PageInfoLink>
          </span>
        </td>
  	  <td><fmt:formatDate value="<%= att.getLastModified() %>" pattern="${prefDateFormat}" /></td>
        <td><wiki:Author /></td>
        <wiki:Permission permission="delete">
        <td>
            <input type="button"
                  value="<fmt:message key='attach.delete'/>"
                    src="<wiki:Link format='url' context='<%=WikiContext.DELETE%>' />"
                onclick="alert(this.src);$('deleteForm').setAttribute('action', this.src); $('delete-all').click();" />
  