anchor.diff:          check__b= "checked";
       else
           check__c = "checked";
  +
  +    String check_n2 = "", check_c2 = "", check_p2 = "" , check_r2 ="";
  +    if (selectSearchOption == null || selectSearchOption.compareTo("Name") == 0)
  +      check_n2 = "checked";
  +    else if (selectSearchOption.compareTo("Code") == 0)
  +        check_c2 = "checked";
  +    else if (selectSearchOption.compareTo("Property") == 0)
  +      check_p2 = "checked";
  +    else if (selectSearchOption.compareTo("Relationship") == 0)
  +      check_r2 = "checked";
  +    else check_n2 = "checked";
   %>
   
           <div class="pagecontent">
  
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:   <script type="text/javascript"
      src="<%=request.getContextPath()%>/js/tip_followscroll.js"></script>
    <script type="text/javascript">
      function refresh(selectSearchOption) {
        var text = document.forms["advancedSearchForm"].matchText.value;
        algorithm = "exactMatch";
        var algorithmObj = document.forms["advancedSearchForm"].adv_search_algorithm;
        for (var i=0; i<algorithmObj.length; i++) {
  