anchor.diff:  //
   // Modifications:
   //
  +// 2007 Aug 15: combined node and domain reports into resource reports
  +// 2006 Mar 08: added standard and custom domain reports
   // 2003 Feb 07: Fixed URLEncoder issues.
   // 2002 Nov 26: Fixed breadcrumbs issue.
   // 
  
positive.code: 
        if (!isChecked)
        {
            alert("Please check the node that you would like to report on.");
        }
        return isChecked;
    }
  
    function validateDomain()
    {
        var isChecked = false
        for( i = 0; i < document.choose_domain.parentResource.length; i++ )
        {
           //make sure something is checked before proceeding
           if (document.choose_domain.parentResource[i].selected)
           {
              isChecked=true;
           }
        }
  
        if (!isChecked)
        {
            alert("Please check the domain that you would like to report on.");
        }
        return isChecked;
    }
  
    function validateDomainAdhoc()
    {
        var isChecked = false
        for( i = 0; i < document.choose_domain_adhoc.parentResource.length; i++ )
        {
           //make sure something is checked before proceeding
           if (document.choose_domain_adhoc.parentResource[i].selected)
           {
              isChecked=true;
           }
        }
  
        if (!isChecked)
        {
            alert("Please check the domain that you would like to report on.");
        }
        return isChecked;
    }
  
    function submitNodeForm()
    {
        if (validateNode())
        {
            document.choose_node.submit();
        }
    }
  
    function submitNodeFormAdhoc()
    {
        if (validateNodeAdhoc())
        {
            document.choose_node_adhoc.submit();
        }
    }
  
    function submitDomainForm()
    {
        if (validateDomain())
        {
            document.choose_domain.submit();
        }
    }
  
    function submitDomainFormAdhoc()
    {
        if (validateDomainAdhoc())
        {
            document.choose_domain_adhoc.submit();
        }
    }
  </script>
  
  <div style="width: 30%; float: left;">
    <h3>Standard Node<br>Performance Reports</h3>
  
    <p>
      Choose a node for a standard performance report.
    </p>
  
    <form method="get" name="choose_node" action="graph/chooseresource.htm">
      <input type="hidden" name="reports" value="all" />
      <input type="hidden" name="parentResourceType" value="node" />
  
      <select name="parentResource" size="10">
        <c:forEach var="resource" items="${nodeResources}">
          <option value="${resource.name}">${resource.label}</option>
        </c:forEach>
      </select>
  
      <br/>
      <br/>
  
      <input type="button" value="Start" onclick="submitNodeForm()"/>
    </form>
  
    <h3>Custom Node<br>Performance Reports</h3>
  
    <p>
      Choose a node for a custom performance report.
    </p>
  
    <form method="get" name="choose_node_adhoc" action="graph/chooseresource.htm">
      <input type="hidden" name="endUrl" value="graph/adhoc2.jsp"/>
      <input type="hidden" name="parentResourceType" value="node"/>
      <select name="parentResource" size="10">
        <c:forEach var="resource" items="${nodeResources}">
          <option value="${resource.name}">${resource.label}</option>
        </c:forEach>
      </select>
  
      <br/>
      <br/>
  
      <input type="button" value="Start" onclick="submitNodeFormAdhoc()"/>
    </form>
  </div>
  
  <div style="width: 30%; float: left;">
    <c:choose>
      <c:when test="${empty domainResources}">
        <!--  No domain resources -->
      </c:when>
      
      <c:otherwise>
        <h3>Standard Domain<br>Performance Reports</h3>
  
        <p>Choose a domain for a standard performance report.</p>
  
        <form method="get" name="choose_domain" action="graph/chooseresource.htm">
          <input type="hidden" name="reports" value="all" />
          <input type="hidden" name="parentResourceType" value="domain" />
  
          <select name="parentResource" size="10">
            <c:forEach var="resource" items="${domainResources}">
              <option value="${resource.name}">${resource.label}</option>
            </c:forEach>
          </select>
  
          <br/>
          <br/>
  
          <input type="button" value="Start" onclick="submitDomainForm()"/>
        </form>
  
        <h3>Custom Domain<br>Performance Reports</h3>
  
        <p>Choose a domain for a custom performance report.</p>
  
        <form method="get" name="choose_domain_adhoc" action="graph/chooseresource.htm">
          <input type="hidden" name="endUrl" value="graph/adhoc2.jsp"/>
          <input type="hidden" name="parentResourceType" value="domain"/>
  
          <select name="parentResource" size="10">
            <c:forEach var="resource" items="${domainResources}">
              <option value="${resource.name}">${resource.label}</option>
            </c:forEach>
          </select>
  
          <br/>
          <br/>
  
          <input type="button" value="Start" onclick="submitDomainFormAdhoc()"/>
        </form>
      </c:otherwise>
    </c:choose>
  </div>
  
  <div style="width: 40%; float: right;">
    <h3 align=center>Network Performance Data</h3>
  
    <p>
      The <strong>Standard Performance Reports</strong> provide a stock way to
      easily visualize the critical SNMP data collected from managed nodes
      throughout your network.
    <p>
  
    <p>
      <strong>Custom Performance Reports</strong> can be used to produce a
      single graph that contains the data of your choice from a single
      interface or node.  You can select the timeframe, line colors, line
       styles, and title of the graph and you can bookmark the results.
    </p>
  </div>
  
  <jsp:include page="/includes/footer.jsp" flush="false"/>
  
negative.code: 
        if (!isChecked)
        {
            alert("Please check the resource that you would like to report on.");
        }
        return isChecked;
    }
  
    function validateResourceAdhoc()
    {
        var isChecked = false
        for( i = 0; i < document.choose_resource_adhoc.parentResourceId.length; i++ )
        {
           //make sure something is checked before proceeding
           if (document.choose_resource_adhoc.parentResourceId[i].selected)
           {
              isChecked=true;
           }
  