<search function="bn">
  <name>Borland Newsgroups</name>
  <description>
    Search the Borland Newsgroup Database. Results are sorted by rank and article.<br/>
    <div class="helpboxDescLabels">Switches:</div>
  	<table class="helpboxDescTable">
  		<tr><td>/thread</td><td> - </td><td>Sort results by thread instead of by article.</td></tr>
  		<tr><td>/date</td><td> - </td><td>Sort results by date instead of by rank.</td></tr>
   	</table>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
  		<tr><td>bn delphi 7</td></tr>
      <tr><td>bn jbuilder linux kde /date /thread</td></tr>
  	</table>
  </description>
  <category>Computers<category>Reference</category></category>
  <link>http://www.tamaracka.com/search.htm</link>
  <contributor>Tom Corcoran, Ryan Edwards</contributor>
  
  <form name="bnf"
        action="http://216.101.185.148/scripts/isapi.dll/execute"
        method="post">
    <input type="hidden" name="SearchFor" value=""/>
    <input type="hidden" name="Display" value=""/>
    <input type="hidden" name="Sort" value=""/>
  </form>
  
  <script><![CDATA[
    function bn(q)
    {
      var args = parseArgs(q, "thread, date");
      document.bnf.Sort.value = "Rank";
      document.bnf.Display.value = "Article";
        
      if( nullArgs("bn", q) )
        return false;
      else if( args.switches.length > 0 )
      {
        for (var j = 0; j < args.switches.length; j++)
		      switch( args.switches[j].name )
          {
            case "thread":
              document.bnf.Display.value = "Thread";
              break;
              
            case "date":
              document.bnf.Sort.value = "Date";
              break;
          }
          
        document.bnf.SearchFor.value = args.q;
        submitForm(bnf);
		  }
      else
      {
        document.bnf.SearchFor.value = args.q;
        submitForm(bnf);
      }
    }
  ]]></script>

  <copyright>
	Copyright (c) 2002 David Bau
	Distributed under the terms of the
	GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  </copyright>
</search>
