home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / searches / cheapcd.xml < prev    next >
Text File  |  2002-10-10  |  2KB  |  71 lines

  1. <search function="cheapcd">
  2.   <name>cheap-cds.com</name>
  3.   <description>Buy Cheap CDs Online at Wholesale Cost, $5 under Retail.<br/>
  4.     <div class="helpboxDescLabels">Switches:</div>
  5.     <table class="helpboxDescTable">
  6.       <tr><td>/title</td><td> - </td><td>Title search (default)</td></tr>
  7.       <tr><td>/artist</td><td> - </td><td>Artist search</td></tr>
  8.       <tr><td>/song</td><td> - </td><td>Song title search</td></tr>
  9.       <tr><td>/catnum</td><td> - </td><td>Catalog number search</td></tr>
  10.     </table>
  11.     <div class="helpboxDescLabels">Examples:</div>
  12.     <table class="helpboxDescTable">
  13.       <tr><td>cheapcd rolling stones /artist</td></tr>
  14.       <tr><td>cheapcd out of control /song</td></tr>
  15.     </table>
  16.   </description>
  17.   <category>Shopping</category>
  18.   <link>http://www.cheap-cds.com/</link>
  19.   <contributor>Steven J. Heil</contributor>
  20.   <email>sjheil_at_hotmail_dot_com</email>
  21.   <form name="cheapcdf"
  22.         action="http://www.cheap-cds.com/surf/finds1"
  23.         method="post">
  24.     <input type="hidden" name="by" value="t"/>
  25.     <input type="hidden" name="artist" value=""/>
  26.   </form>
  27.   <script><![CDATA[
  28.     function cheapcd(q)
  29.     {
  30.       if( nullArgs("cheapcd", q) )
  31.         return false;
  32.  
  33.       var args = parseArgs(q, "title, artist, song, catnum");
  34.  
  35.       if( q == "" )
  36.         openSearchWindow("http://www.cheap-cds.com/");
  37.  
  38.       else if( args.switches.length == 1 )
  39.       {
  40.         switch( args.switches[0].name )
  41.         {
  42.           case "artist":
  43.             document.cheapcdf.by.value = "a"; break;
  44.           case "song":
  45.             document.cheapcdf.by.value = "s"; break;
  46.           case "catnum":
  47.             document.cheapcdf.by.value = "c"; break;
  48.           case "title":
  49.           default:
  50.             document.cheapcdf.by.value = "t"; break;
  51.         }
  52.         document.cheapcdf.artist.value = args.q;
  53.         submitForm(cheapcdf);
  54.       }
  55.       else if( args.switches.length > 1 )
  56.         nullArgs("cheapcd","?");
  57.       else
  58.       {
  59.         document.cheapcdf.artist.value = q;
  60.         submitForm(cheapcdf);
  61.       }
  62.     }
  63.   ]]></script>
  64.   <copyright>
  65.     Copyright (c) 2002 David Bau
  66.     Distributed under the terms of the
  67.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  68.   </copyright>
  69. </search>
  70.  
  71.