anchor.diff:      </c:forEach>
   
   </div> <!-- graph-results -->
  +
  +<script type="text/javascript">
  +var graphDiv = document.getElementById("graph-results");
  +var defaultGraphWidth = Math.round(graphDiv.scrollWidth * 0.75);
  +var defaultGraphHeight = Math.round(defaultGraphWidth * 0.25);
  +var graphImgs = graphDiv.getElementsByClassName("graphImg");
  +for (var imgIndex = 0; imgIndex < graphImgs.length; imgIndex++) {
  +    var graphImg = graphImgs[imgIndex];
  +    if (graphImg.dataset["imgsrc"].contains("width=") || graphImg.dataset["imgsrc"].contains("height=")) {
  +        graphImg.src = graphImg.dataset["imgsrc"];
  +    } else {
  +        graphImg.src = graphImg.dataset["imgsrc"] + "&width=" + defaultGraphWidth + "&height=" + defaultGraphHeight;
  +    }
  +}
  +</script>
   
   <c:url var="relativeTimeReloadUrl" value="${requestScope.relativeRequestPath}">
       <c:forEach var="resultSet" items="${results.graphResultSets}">
  
positive.code:                                             <input type="submit" name="nrt" value="NRT Graph"/>
                                          </form>
                      -->
                      <a href="${zoomUrl}"><img src="${graphUrl}" alt="Resource graph: ${graph.title} (click to zoom)" /></a>
                      <opennms-addKscReport id="${resultSet.resource.id}.${graph.name}" reportName="${graph.name}" resourceId="${resultSet.resource.id}" graphTitle="${graph.title}" timespan="${results.relativeTime}"></opennms-addKscReport>
                      <br/>
                      <br/>
  
negative.code:                                             <input type="submit" name="nrt" value="NRT Graph"/>
                                          </form>
                      -->
                      <img id="zoomImage" class="graphImg" data-imgsrc="${graphUrl}" src="#" alt="Resource graph: ${resultSet.graphs[0].title} (drag to zoom)" />
                      <opennms-addKscReport id="${resultSet.resource.id}.${resultSet.graphs[0].name}" reportName="${resultSet.graphs[0].name}" resourceId="${resultSet.resource.id}" graphTitle="${resultSet.graphs[0].title}" timespan="${results.relativeTime}"></opennms-addKscReport>
                  </div>
              </c:when>
  