anchor.diff:    <script type="text/javascript"
       src="<%=request.getContextPath()%>/js/tip_followscroll.js"></script>
     <script type="text/javascript">
  -    function refresh() {
  +    function refresh(selectSearchOption) {
         var text = document.forms["advancedSearchForm"].matchText.value;
  -      var selectSearchOption = document.forms["advancedSearchForm"].selectSearchOption.value;
         algorithm = "exactMatch";
         var algorithmObj = document.forms["advancedSearchForm"].adv_search_algorithm;
         for (var i=0; i<algorithmObj.length; i++) {
  
positive.code:                   &nbsp;&nbsp;
                  </td></tr>
  
                  <tr><td>
                    <h:outputLabel id="searchOptionLabel" value="Search By" styleClass="textbody">
                      <select id="selectSearchOption" name="selectSearchOption" size="1" onchange="javascript:refresh()" >
                      if (selectSearchOption == null) selectSearchOption = "Property";
                      <% if (selectSearchOption.compareTo("Property") == 0) { %>
                          <option value="Property" selected>Property</option>
                          <option value="Relationship" >Relationship</option>
                      <% } else { %>
                          <option value="Property" >Property</option>
                          <option value="Relationship" selected >Relationship</option>
                      <% } %>
                      </select>
                    </h:outputLabel>
                  </td></tr>
  
                  <tr><td>
                    <table>
                    <% if (selectSearchOption.compareTo("Property") == 0) { %>
                      <input type="hidden" name="rel_search_association" id="rel_search_association" value="<%=rel_search_association%>">
                      <input type="hidden" name="rel_search_rela" id="rel_search_rela" value="<%=rel_search_rela%>">
                      <tr>
  
negative.code:       var rel_search_association = document.forms["advancedSearchForm"].rel_search_association.value;
        var rel_search_rela = document.forms["advancedSearchForm"].rel_search_rela.value;
        var selectProperty = document.forms["advancedSearchForm"].selectProperty.value;
        window.location.href="/ncimbrowser/pages/advanced_search.jsf?refresh=1"
            + "&opt="+ selectSearchOption
            + "&text="+ text
            + "&algorithm="+ algorithm
            + "&sab="+ adv_search_source
            + "&prop="+ selectProperty
            + "&rel="+ rel_search_association
            + "&rela="+ rel_search_rela;
      }
    </script>
  
  