<search function="as">
  <name>Acronym Search</name>
  <category>Reference<category>Language</category></category>
  <contributor>Glenn Carr</contributor>
  <link>http://www.acronymsearch.com/</link>
  <email>glenn at glenncarr dot com</email>
  <description>Search for an acronym definition
    <div class="helpboxDescLabels">Switches:</div>
    <table class="helpboxDescTable">
      <tr><td>/reverse_lookup</td><td> - </td><td>Look up an acronym using it definition</td></tr>
    </table>
  </description>
  <form name="asf"
        method="post"
        action="http://www.acronymsearch.com/index.php">
    <input type="hidden" name="act" value="search" />
    <input type="hidden" name="acronym" value="" />
  </form>
  <script><![CDATA[
    function as(q)
    {
      if( nullArgs("as", q) )
        return;

      // Parse switches with parseArgs:

      // parseArgs usage:
      // Arguments:
      //    q                - string from the search function
      //    expectedSwitches - list or array of the expected switch values
      //    expandSwitches   - optional parameter [default = true] used to determine 
      //                       if the switch shortcuts should be expanded (i.e. /f becomes /foo)
      // Returns an object with these properties:
      //    q        - the input string with the switches removed
      //    switches - array of objects with these two properties:
      //                  name:   expanded name of the matched switch (i.e. foo as in /foo:bar)
      //                  value:  value of switch (i.e. bar as in /foo:bar)
      //    switch_val - associative array with the switch name as the key with the switch value 
      //                 as the value. (i.e. switch_val["foo"] = "bar" as in /foo:bar)

      var args = parseArgs(q, "reverse_lookup");
      if ( args.switches.length > 0 )
      {
        switch( args.switches[0].name )
        {
          case "reverse_lookup":
            document.asf.act.value = "reverse";
            break;
          default:
            document.asf.act.value = "search";
            break;
        }
      }

      // FORM variables for asf
      document.asf.acronym.value = q;

      submitForm(asf);
    }
  ]]></script>
  <copyright>
    The following applies if this file is included and distributed with Dave's Quick Search Deskbar:
    Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  </copyright>
  <created_by>
    This search file was initially created on 02/15/07 at 00:05:53
    by Dave's Quick Search Deskbar Search Wizard version 1.3,
    Copyright (c) 2002 Glenn Carr; Distributed under the terms of the GNU General Public License, Version 2
  </created_by>
</search>