anchor.diff:              </c:forEach>
             </select>
           
  +          <c:set var="num" value="${num + 1}"/>
           </c:forEach>
         
           <br/>
           <br/>
  -<!--      <input type="button" value="Submit" onclick="submitForm()" /> -->
  -        <input type="submit" value="Submit"/>
  +        <input type="button" value="Submit" onclick="submitForm(document.report.resourceId, document.report, 'resource')" />
  +        <input type="button" value="Select All" onclick="selectAll('resourceId', true)" />
  +        <input type="button" value="Unselect All" onclick="selectAll('resourceId', false)" />
         </form>
         
   	</c:otherwise>
  
positive.code: </jsp:include>
  
    <script language="Javascript" type="text/javascript" >
        function validateRRD() {
            var isChecked = false
            for( i = 0; i < document.report.resource.length; i++ ) {
                // make sure something is checked before proceeding
                if (document.report.resource[i].selected) {
                    isChecked=true;
                }
            }
    
            if (!isChecked){
                alert("Please check the resources that you would like to report on.");
            }
            return isChecked;
        }
    
        function submitForm() {
            if (validateRRD()) {
                document.report.submit();
            }
        }
    </script>
  
negative.code:             </c:otherwise>
            </c:choose>
          
            <select name="resourceId" id="resource-select-${num}" size="${selectSize}" multiple>
              <c:forEach var="resource" items="${resourceType.value}">
                <option value="${resource.resourceId}">
                  ${resource.label}
  