home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / searches / chap.xml < prev    next >
Text File  |  2003-04-20  |  3KB  |  74 lines

  1. <search function="chap">
  2.   <name>Chapters</name>
  3.   <category>Shopping</category>
  4.   <contributor>Sarah Sweeney</contributor>
  5.   <link>http://www.chapters.indigo.ca/search/default.asp</link>
  6.   <email>poohbear@designshift.com</email>
  7.   <description>
  8.      Search books, videos, DVDs at Chapters.Indigo.ca. Switches:<br/>
  9.     <table class="helpboxDescTable">
  10.       <tr><td>/Books</td><td> - </td><td>Books</td></tr>
  11.       <tr><td>/DVD</td><td> - </td><td>DVDs</td></tr>
  12.       <tr><td>/Video</td><td> - </td><td>VHS Videos</td></tr>
  13.       <tr><td>/Gifts</td><td> - </td><td>Gifts</td></tr>
  14.     </table>
  15.     <div class="helpboxDescLabels">Examples:</div>
  16.     <table class="helpboxDescTable">
  17.       <tr><td>chap ender's game</td></tr>
  18.       <tr><td>chap the matrix /dvd</td></tr>
  19.     </table>
  20.   </description>
  21.   <form name="chapf"
  22.         method="post"
  23.         action="http://www.chapters.indigo.ca/search/default.asp?Section=home&Lang=en&mscssid=4T526RGNNLHT8JWXBS1AP6B17WGEDLK7&WSID=1101A8E64229AA0F435795D4AEA3AC3A5A2A2620">
  24.     <input type="hidden" name="Search_Method" value="QuickSearch" />
  25.     <input type="hidden" name="Search_Phrase_QuickSearch" />
  26.     <input type="hidden" name="Search_Modifier_QuickSearch" value="QuickSearch" />
  27.     <input type="hidden" name="Search_Catalog" value="Books" />
  28.   </form>
  29.   <script><![CDATA[
  30.     function chap(q)
  31.     {
  32.       if( nullArgs("chap", q) )
  33.         return;
  34.  
  35.       var args = parseArgs(q, "books, dvd, video, gifts, all");
  36.       if ( args.switches.length > 0 )
  37.       {
  38.         switch( args.switches[0].name )
  39.         {
  40.           case "books":
  41.             document.chapf.Search_Catalog.value = "Books";
  42.             break;
  43.           case "dvd":
  44.             document.chapf.Search_Catalog.value = "DVD";
  45.             break;
  46.           case "video":
  47.             document.chapf.Search_Catalog.value = "Video";
  48.             break;
  49.           case "gifts":
  50.             document.chapf.Search_Catalog.value = "Gifts";
  51.             break;
  52.           case "all":
  53.             document.chapf.Search_Catalog.value = "Books,Video,DVD,Gifts";
  54.             break;
  55.           default:
  56.             document.chapf.Search_Catalog.value = "Books";
  57.             break;
  58.         }
  59.       }
  60.       document.chapf.Search_Phrase_QuickSearch.value = args.q;
  61.  
  62.       submitForm(chapf);
  63.     }
  64.   ]]></script>
  65.   <copyright>
  66.     The following applies if this file is included and distributed with Dave's Quick Search Deskbar:
  67.     Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  68.   </copyright>
  69.   <created_by>
  70.     This search file was initially created on 01/20/03 at 12:42:17
  71.     by Dave's Quick Search Deskbar Search Wizard version 1.0.1 ,
  72.     Copyright (c) 2002 Glenn Carr; Distributed under the terms of the GNU General Public License, Version 2
  73.   </created_by>
  74. </search>