anchor.diff:          <input type="button" value="Unselect All" onclick="selectAll('resourceId', false)" />
         </form>
         
  +      <script language="Javascript" type="text/javascript">
  +          selectIfOnlyOneResource("resourceId");
  +      </script>
  +      
   	</c:otherwise>
     </c:choose>
     
  
positive.code:           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>
  
negative.code:           if (isSomethingSelected(selectNode)) {
                formNode.submit();
            } else {
                alert("Please select at least one " + itemName);
            }
        }
        
  