anchor.diff:                <b>Results <%=istart_str%>-<%=iend_str%> of&nbsp;<%=match_size%> for: <%=matchText%></b>
                 <%
                 }
  +              String ontologiesToSearchOnStr = (String) request.getSession().getAttribute("ontologiesToSearchOn");
  +              String tooltip_str = "";
  +              if (ontologiesToSearchOnStr != null) {
  +                Vector ontologies_to_search_on = DataUtils.parseData(ontologiesToSearchOnStr);
  +                for (int k=0; k<ontologies_to_search_on.size(); k++) {
  +                  String s = (String) ontologies_to_search_on.elementAt(k);
  +                  tooltip_str = tooltip_str + s + "<br/>";
  +                }
  +              }
  +              HashMap name_hmap = new HashMap();
                 %>
  -
  -<%
  -String ontologiesToSearchOnStr = (String) request.getSession().getAttribute("ontologiesToSearchOn");
  -String tooltip_str = "";
  -if (ontologiesToSearchOnStr != null) {
  -  Vector ontologies_to_search_on = DataUtils.parseData(ontologiesToSearchOnStr);
  -  for (int k=0; k<ontologies_to_search_on.size(); k++) {
  -    String s = (String) ontologies_to_search_on.elementAt(k);
  -    tooltip_str = tooltip_str + s + "<br/>";
  -  }
  -}
  -
  -
  -HashMap name_hmap = new HashMap();
  -
  -%>
  -from <a href="#" onmouseover="Tip('<%=tooltip_str%>')" onmouseout="UnTip()">selected vocabularies</a>.
  +              from <a href="#" onmouseover="Tip('<%=tooltip_str%>')" onmouseout="UnTip()">selected vocabularies</a>.
               </td>
             </tr>
             <tr>
               <td class="textbody">
                 <table class="dataTable" summary="" cellpadding="3" cellspacing="0" border="0" width="100%">
  -
  -          <th class="dataTableHeader" scope="col" align="left">Concept</th>
  -          <th class="dataTableHeader" scope="col" align="left">Vocabulary</th>
  -
  +                <th class="dataTableHeader" scope="col" align="left">Concept</th>
  +                <th class="dataTableHeader" scope="col" align="left">Vocabulary</th>
                   <%
                     List list = iteratorBean.getData(istart, iend);
                     for (int i=0; i<list.size(); i++) {
  
positive.code:      else
         check_c = "checked";
  
  
    String searchTarget = (String) request.getSession().getAttribute("searchTarget");
    String check_n = "", check_p = "" , check_r ="";
    if (searchTarget == null || searchTarget.compareTo("names") == 0)
      check_n = "checked";
    else if (searchTarget.compareTo("properties") == 0)
      check_p= "checked";
    else
      check_r = "checked";
  
              
  %>
        
  
  <!-- Thesaurus, banner search area -->
  <div class="bannerarea">
      <div class="banner"><a href="<%=basePath%>/start.jsf"><img src="<%=basePath%>/images/evs_termsbrowser_logo.gif" width="383" height="97" alt="Thesaurus Browser Logo" border="0"/></a></div>
      <div class="search-globalnav">
          <!-- Search box -->
          <div class="searchbox-top"><img src="<%=basePath%>/images/searchbox-top.gif" width="352" height="2" alt="SearchBox Top" /></div>
  
  
    <div class="search-form">
  
  <!--  
  <form name="searchTerm" method="post" class="search-form-main-area">
  -->
  
  <form>
    
  <input CLASS="searchbox-input" name="matchText" type="text" value="<%=match_text%>" />
  
  <!--
  
    <input CLASS="searchbox-input"
      name="matchText"
      value="<%=match_text%>"
      onFocus="active = true"
      onBlur="active = false"
      onkeypress="return submitEnter('search',event)"
    />
  -->  
    
    <h:commandButton
      id="search"
      value="Search"
      action="#{userSessionBean.multipleSearchAction}"
      image="#{facesContext.externalContext.requestContextPath}/images/search.gif"
      alt="Search">
    </h:commandButton>
    
    <h:outputLink
      value="#{facesContext.externalContext.requestContextPath}/pages/help.jsf#searchhelp">
      <h:graphicImage value="/images/search-help.gif"
      style="border-width:0;" />
    </h:outputLink>
  
    <table border="0" cellspacing="0" cellpadding="0">
      <tr valign="top" align="left">
        <td align="left" class="textbody">
          <input type="radio" name="algorithm" value="exactMatch" alt="Exact Match" <%=check_e%>>Exact Match&nbsp;
          <input type="radio" name="algorithm" value="startsWith" alt="Begins With" <%=check_s%>>Begins With&nbsp;
          <input type="radio" name="algorithm" value="contains" alt="Containts" <%=check_c%>>Contains&nbsp;
        </td>
      </tr>
      <tr align="left">
        <td height="1px" bgcolor="#2F2F5F"></td>
      </tr>
      <tr valign="top" align="left">
        <td align="left" class="textbody">
          <input type="radio" name="searchTarget" value="names" alt="Names" <%=check_n%>>Name/Code&nbsp;
          <input type="radio" name="searchTarget" value="properties" alt="Properties" <%=check_p%>>Property&nbsp;
          <input type="radio" name="searchTarget" value="relationships" alt="Relationships" <%=check_r%>>Relationship&nbsp;
        </td>
      </tr>
    </table>
  </div>
  
        
  </form>          
          
          <div class="searchbox-bottom"><img src="<%=basePath%>/images/searchbox-bottom.gif" width="352" height="2" alt="SearchBox Bottom" /></div>
          <!-- end Search box -->
          <!-- Global Navigation -->
          
          
          
              <%@ include file="/pages/templates/menuBar-termbrowser.jsp" %>
              
              
              
          <!-- end Global Navigation -->
      </div>
  </div>
  <!-- end Thesaurus, banner search area -->
  <!-- Quick links bar -->
  <%@ include file="/pages/templates/quickLink.jsp" %>
  <!-- end Quick links bar -->
  
          
        
        <!-- Page content -->
        <div class="pagecontent">
          <%
            request.getSession().removeAttribute("dictionary");
  
            HashMap hmap = DataUtils.getNamespaceId2CodingSchemeFormalNameMapping();
  
            IteratorBean iteratorBean = (IteratorBean) FacesContext.getCurrentInstance().getExternalContext()
                  .getSessionMap().get("iteratorBean");
  
            String matchText = HTTPUtils.cleanXSS((String) request.getSession().getAttribute("matchText"));
            String match_size = HTTPUtils.cleanXSS((String) request.getSession().getAttribute("match_size"));
            String page_string = HTTPUtils.cleanXSS((String) request.getSession().getAttribute("page_string"));
            Boolean new_search = (Boolean) request.getSession().getAttribute("new_search");
            
   System.out.println("(*) multiple_search_results.jsp new_search: " + new_search);        
            
            
            String page_number = HTTPUtils.cleanXSS((String) request.getParameter("page_number"));
            String selectedResultsPerPage = HTTPUtils.cleanXSS((String) request.getSession().getAttribute("selectedResultsPerPage"));
            String contains_warning_msg = HTTPUtils.cleanXSS((String) request.getSession().getAttribute("contains_warning_msg"));
  
            if (page_number != null && new_search == Boolean.FALSE)
            {
                page_string = page_number;
            }
            request.getSession().setAttribute("new_search", Boolean.FALSE);
            
            int page_num = Integer.parseInt(page_string);
            int next_page_num = page_num + 1;
            int prev_page_num = page_num - 1;
            int page_size = 50;
            if (selectedResultsPerPage != null)
            {
                page_size = Integer.parseInt(selectedResultsPerPage);
            }
            int iend = page_num * page_size;
            int istart = iend - page_size;
            int size = iteratorBean.getSize();
  
            if (iend > size) iend = size;
            int num_pages = size / page_size;
            if (num_pages * page_size < size) num_pages++;
            String istart_str = Integer.toString(istart+1);
            String iend_str = Integer.toString(iend);
            String prev_page_num_str = Integer.toString(prev_page_num);
            String next_page_num_str = Integer.toString(next_page_num);
          %>
          <table width="700px">
            <tr>
              <table>
                <tr>
                  <td class="texttitle-blue">Result for:</td>
                  <td class="texttitle-gray"><%=matchText%></td>
                </tr>
              </table>
            </tr>
            <tr>
              <td><hr></td>
  
negative.code: <%@ page import="org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference" %>
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  <html>
    <head>
      <title>NCI Term Browser</title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/css/styleSheet.css" />
      <script type="text/javascript" src="<%= request.getContextPath() %>/js/script.js"></script>
      <script type="text/javascript" src="<%= request.getContextPath() %>/js/search.js"></script>
      <script type="text/javascript" src="<%= request.getContextPath() %>/js/dropdown.js"></script>
    </head>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
      <script type="text/javascript" src="<%= request.getContextPath() %>/js/wz_tooltip.js"></script>
      <script type="text/javascript" src="<%= request.getContextPath() %>/js/tip_centerwindow.js"></script>
      <script type="text/javascript" src="<%= request.getContextPath() %>/js/tip_followscroll.js"></script>
    <f:view>
      <%@ include file="/pages/templates/header.jsp" %>
      <div class="center-page">
        <%@ include file="/pages/templates/sub-header.jsp" %>
        <!-- Main box -->
        <div id="main-area">
   <%
       //String match_text = gov.nih.nci.evs.browser.utils.HTTPUtils
       //  .cleanXSS((String) request.getSession().getAttribute("matchText"));
       String match_text = (String) request.getSession().getAttribute("matchText"); 
      
       if (match_text == null) match_text = "";
       
       System.out.println("(***) multiple_search_results.jsp match_text : " + match_text);
      
       String algorithm = (String) request.getSession().getAttribute("algorithm");
      
       String check_e = "", check_s = "" , check_c ="";
       if (algorithm == null || algorithm.compareTo("exactMatch") == 0)
         check_e = "checked";
  