anchor.diff:  						</thead>
         <% for( int i=0; i < alarms.length; i++ ) { %>        
           <tr class="<%=AlarmUtil.getSeverityLabel(alarms[i].getSeverity())%>">
  -          <td class="divider" valign="top" rowspan="3">
  -            <nobr>
  -              <input type="checkbox" name="alarm" value="<%=alarms[i].getId()%>" /> 
  -            </nobr>
  -          </td>
  +          <% if( !(request.isUserInRole( Authentication.READONLY_ROLE ))) { %>
  +              <td class="divider" valign="top" rowspan="3">
  +                <nobr>
  +                  <input type="checkbox" name="alarm" value="<%=alarms[i].getId()%>" /> 
  +                </nobr>
  +              </td>
  +          <% } else { %>
  +            <td valign="top" rowspan="3" class="divider">&nbsp;</td>
  +          <% } %>
  +
             <td class="divider" valign="top" rowspan="3">
               <a href="alarm/detail.jsp?id=<%=alarms[i].getId()%>"><%=alarms[i].getId()%></a>
             </td>
  
positive.code:               </p>           
              <% } %>
  
      <form action="alarm/acknowledge" method="POST" name="acknowledge_form">
        <input type="hidden" name="redirectParms" value="<%=request.getQueryString()%>" />
        <input type="hidden" name="action" value="<%=action%>" />
        <%=org.opennms.web.Util.makeHiddenTags(request)%>
  			<jsp:include page="/includes/key.jsp" flush="false" />
        <table>
  				<thead>
  					<tr>
  						<% if ( parms.ackType == AlarmFactory.AcknowledgeType.UNACKNOWLEDGED ) { %>
  							<th width="1%">Ack</th>
  							<% } else { %>
  								<th width="1%">UnAck</th>
  								<% } %>
  								<th width="1%"> <%=this.makeSortLink( parms, AlarmFactory.SortStyle.ID,        AlarmFactory.SortStyle.REVERSE_ID,        "id",        "ID" )%></th>
  								<th width="10%"><%=this.makeSortLink( parms, AlarmFactory.SortStyle.SEVERITY,  AlarmFactory.SortStyle.REVERSE_SEVERITY,  "severity",  "Severity"  )%></th>
  								<th width="22%"><%=this.makeSortLink( parms, AlarmFactory.SortStyle.NODE,      AlarmFactory.SortStyle.REVERSE_NODE,      "node",      "Node"      )%></th>
  
negative.code:           <input TYPE="button" VALUE="Select All" onClick="checkAllCheckboxes()"/>
            <input type="button" value="Unacknowledge Alarms" onClick="submitForm('unacknowledge')"/>
          <% } %>
        <% } %>
          </p>
        </form>
  
  