<search function="alm">
  <name>All Music Guide (AMG)</name>
  <description>
    Search the AMG for album reviews, track listings, artist discographies and more. Searches for artists by default.<br/>
    <div class="helpboxDescLabels">Switches:</div>
  	<table class="helpboxDescTable">
  		<tr><td>/song</td><td> - </td><td>Search for a specific song.</td></tr>
  		<tr><td>/album</td><td> - </td><td>Search for a specific album.</td></tr>
  		<tr><td>/style</td><td> - </td><td>Lookup the history of a particular music style.</td></tr>
  		<tr><td>/label</td><td> - </td><td>Lookup information on a major record label.</td></tr>
  	</table>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
  		<tr><td>alm The Beatles</td></tr>
  		<tr><td>alm Revolver /album</td></tr>
  	</table>
  </description>
  <category>Entertainment</category>
  <link>http://www.allmusic.com/</link>
  <contributor>Peter Risser, Ryan Edwards</contributor>
  
  <form name="almf"
        action="http://www.allmusic.com/cg/amg.dll"
        method="post">
    <input type="hidden" name="P" value="amg"/>
    <input type="hidden" name="uid" value="SEARCH"/>
    <input type="hidden" name="opt1"/>
    <input type="hidden" name="sql"/>
  </form>
  
  <script><![CDATA[
    function alm(q)
    {
      var args = parseArgs(q, "album, song, style, label");
      
      if( nullArgs("alm", q) )
         return false;
      else if( args.switches.length == 1 )
      {
        switch( args.switches[0].name )
        {
          case "album": 
            document.almf.opt1.value="2"; 
            break;
          case "song":
            document.almf.opt1.value="3";
            break;
          case "label":
            document.almf.opt1.value="4"; 
            break;
          case "style":
            document.almf.opt1.value="5"; 
            break;
        }
        document.almf.sql.value = args.q;
        submitForm(almf);
      }
      else if( args.switches.length > 1 )
        nullArgs("alm","?");
      else
      {
        document.almf.opt1.value="1";
        document.almf.sql.value = args.q;
        submitForm(almf);
      }
    }
  ]]></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>

