anchor.diff:        <form method="GET" name="report" action="${model.endUrl}">
           <%=Util.makeHiddenTags(request, new String[] { "parentResourceType", "parentResource", "endUrl"})%>
     
  +        <c:set var="num" value="0"/>
           <c:forEach var="resourceType" items="${model.resourceTypes}">
  -      
             <h3>${resourceType.key.label}</h3>
   
             <c:choose>
  
positive.code:             </c:forEach>
            </select>
          
          </c:forEach>
        
          <br/>
          <br/>
  <!--      <input type="button" value="Submit" onclick="submitForm()" /> -->
          <input type="submit" value="Submit"/>
        </form>
        
  	</c:otherwise>
  
negative.code: </jsp:include>
  
    <script language="Javascript" type="text/javascript" >
        function isSomethingSelected(node) {
           return recursiveIsSomethingSelected(node, 5);
        }
        
        function recursiveIsSomethingSelected(node, depth) {
            for (var i = 0; i < node.length; i++) {
                if (node[i].length != null) {
                    if (depth == 0) {
                        alert("Max depth encountered while checking to see if something is selected... report this a bug");
                    } else if (recursiveIsSomethingSelected(node[i], depth - 1)) {
                        return true;
                    }
                } else {
                    if (node[i].selected) {
                        return true;
                    }
                }
            }
            
            return false;
        }
    
        function submitForm(selectNode, formNode, itemName) {
            if (isSomethingSelected(selectNode)) {
                formNode.submit();
            } else {
                alert("Please check at least one " + itemName);
            }
        }
        
        function selectAll(name, selected) {
            recursiveSelectAll(document.getElementsByName(name), selected, 5);
        }
        
        function recursiveSelectAll(node, selected, depth) {
            for (var i = 0; i < node.length; i++) {
                if (node[i].length != null) {
                    if (depth == 0) {
                        alert("Max depth encountered while setting item selection to " + selected + "... report this a bug");
                    } else {
                        recursiveSelectAll(node[i], selected, depth - 1);
                    }
                } else {
                    node[i].selected = selected;
                }
            }
        }
    </script>
  