anchor.diff:  <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
   <%@ page import="com.ecyrd.jspwiki.*" %>
   <%@ page import="com.ecyrd.jspwiki.auth.*" %>
  +<%@ page import="com.ecyrd.jspwiki.ui.progress.*" %>
   <%@ page import="com.ecyrd.jspwiki.auth.permissions.*" %>
   <%@ page import="java.security.Permission" %>
   <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
  
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: <%
    int MAXATTACHNAMELENGTH = 30;
    WikiContext wikiContext = WikiContext.findContext(pageContext);
    String progressId = wikiContext.getEngine().getProgressManager().getNewProgressIdentifier();
  %>
  
  <script language="JavaScript">
  function popUp(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=20,left = 240,top = 502');");
  }
  </script>
  <h3><fmt:message key="attach.add"/></h3>
  <wiki:Permission permission="upload">
    <wiki:Permission permission="upload">
    <form action="<wiki:Link jsp='attach' format='url' absolute='true'><wiki:Param name='progressid' value='<%=progressId%>'/></wiki:Link>"
           class="wikiform"
          method="post"
         enctype="multipart/form-data" accept-charset="<wiki:ContentEncoding/>"
        onsubmit="return Wiki.submitOnce( this );" >
      <input type="hidden" name="page" value="<wiki:Variable var="pagename"/>" />
  