<%@ language = "JavaScript" %>
<% /*
     $Revision$
     $Id$

    File:        prodsearch2.asp
    Description: Toont zoekveld als widget en opent voor resultaat een nieuw tabblad (met zoekveld).
    Parameters:  s: zoekstring
    Context:     Te gebruiken als widget in portal.
    Requires:
    Note:
*/ %>
<!--#include file="../Shared/common.inc" -->
<%
FCLTHeader.Requires({ plugins: ["jQuery"] })
%>
<html>
  <head>
<% FCLTHeader.Generate() %>
<%
var filter = {  s:            { val: getQParam("s",""),       lcl: L("lcl_search") } };
%>
    <script  type="text/javascript" >
      function showSearchResult()
      {
          var v_title = L("lcl_srch_zoeker") + " " + $("#searchText").val();
          var v_url = "appl/fac/prodsearch.asp?s="
                    + $("#searchText").val();
          FcltMgr.openDetail(v_url, v_title);
      }
    </script>
  </head>
  <body id="listbody">
    <table id="container" width="100%">
      <tr>
        <td id="searchBox" colspan="2">
          <form id="srch" onsubmit="showSearchResult(); return false;">
            <%=L("lcl_srch_zoeker")%>
            <input type="text" value="<%=safe.htmlattr(filter.s.val)%>" id="searchText">
            <input type="submit" class="button" value="<%=L("lcl_srch_zoeker_alt")%>" id="prodsearchsearch">
          </form>
        </td>
      </tr>
    </table>
  </body>
</html>
