window.onerror = doNothing;
function doNothing() { return true; }

function replaceIt(str, find, add) {
  if (typeof find == "string" || typeof find == "number") {
    for (var x=1; x < arguments.length; ) {
      find = "" + arguments[x++]; add = "" + arguments[x++];
      for (var i=0; (i=str.indexOf(find,i)) >= 0; i += add.length)
        str = str.substring(0,i)+add+str.substring(i+find.length);
    }
  } else {
    for (var n=0; n<find.length; n++)
      if (find[n]) {
        find[n] = "" + find[n]; add[n] = "" + add[n];
        for (var i=0; (i=str.indexOf(find[n],i)) >= 0; i += add[n].length)
          str = str.substring(0,i)+add[n]+str.substring(i+find[n].length);
      }
  }
  return str;
}

var HWin = null;          // Global help window object.
function hideHelp() { if (HWin && !HWin.closed) HWin.close(); }
function showHelp(code,msg,title) {
  var opt = 'width=368,height=268,top=50,left=350,dependent,scrollbars';
  var html = '<html><head><Title>${title}</Title><link rel=stylesheet href=ans.css></head><body topMargin=4 bgcolor=white><form method=post><table border=1 cellpadding=8 cellspacing=0 width=100% height=98%><tr><td bgcolor=#4682B4 height=35 valign=middle><font color=white FACE="Verdana,Arial,Helvetica,sans-serif"><big><strong>${title}</strong></big></td></tr><tr><td bgcolor=#FDF5E6 valign=middle><font FACE="Verdana,Arial,Helvetica,sans-serif">${msg}</td><tr><td><center><p><input type=button value=Close onclick="self.close();">';
  if (code) html += '<input type=button value=Home onclick="self.opener.showHelp();">';
  html += '</center> </td> </tr></table></form></body></html>';

  if (code == 1) {
title = "Use attributes";
msg = "<center><table width=95%><tr><td><b>Sort Default</td><td>0 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Default sort order applied to the result set of all Z39.50 searches, specified in the Zserver Sort File.\" border=0 onMouseOver=\"self.opener.status='Default sort order applied to the result set of all Z39.50 searches, specified in the Zserver Sort File.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Personal name</td><td>1</td></tr><tr><td><b>Corporate name</td><td>2</td></tr><tr><td><b>Conference name</td><td>3</td></tr><tr><td><b>Title</td><td>4 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A word, phrase, character, or group of characters, normally appearing in an item, that names the item or the work contained in it. (130, 21X-24X, 440, 490, 730, 740, 830, 840, 400t, 410t, 410t, 600t, 610t, 611t, 700t, 710t, 711t, 800t, 810t, 811t)\" border=0 onMouseOver=\"self.opener.status='A word, phrase, character, or group of characters, normally appearing in an item, that names the item or the work contained in it. (130, 21X-24X, 440, 490, 730, 740, 830, 840, 400t, 410t, 410t, 600t, 610t, 611t, 700t, 710t, 711t, 800t, 810t, 811t)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Title series</td><td>5 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Collective title applying to a group of separate, but related, items. (440, 490, 830, 840, 400t, 410t, 411t, 800t, 810t, 811t)\" border=0 onMouseOver=\"self.opener.status='Collective title applying to a group of separate, but related, items. (440, 490, 830, 840, 400t, 410t, 411t, 800t, 810t, 811t)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Title uniform</td><td>6 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The particular title by which a work is to be identified for cataloging purposes. (130, 240, 730, 700t, 710t, 711t)\" border=0 onMouseOver=\"self.opener.status='The particular title by which a work is to be identified for cataloging purposes. (130, 240, 730, 700t, 710t, 711t)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>ISBN</td><td>7 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"International Standard Book Number -- internationally agreed upon number that identifies a book uniquely. Cf. ANSI/NISO Z39.21 and ISO 2108. (020)\" border=0 onMouseOver=\"self.opener.status='International Standard Book Number -- internationally agreed upon number that identifies a book uniquely. Cf. ANSI/NISO Z39.21 and ISO 2108. (020)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>ISSN</td><td>8 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"International Standard Serial Number -- internationally agreed upon number that identifies a serial uniquely. Cf. ANSI/NISO z39.9 and ISO 3297. (022, 4XXx,7XXx)\" border=0 onMouseOver=\"self.opener.status='International Standard Serial Number -- internationally agreed upon number that identifies a serial uniquely. Cf. ANSI/NISO z39.9 and ISO 3297. (022, 4XXx,7XXx)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>LC card number</td><td>9 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Character string that uniquely identifies a record in the Library of Congress database. (010, 011)\" border=0 onMouseOver=\"self.opener.status='Character string that uniquely identifies a record in the Library of Congress database. (010, 011)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>BNB card number</td><td>10</td></tr><tr><td><b>BGF(sic) number</td><td>11</td></tr><tr><td><b>Local number (Bib Key)</td><td>12 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Character string that uniquely identifies a record in a local system. (001, 035)\" border=0 onMouseOver=\"self.opener.status='Character string that uniquely identifies a record in a local system. (001, 035)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Dewey classification</td><td>13 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A classification number from the Dewey Decimal Classification, developed by Melvyl Dewey. (082)\" border=0 onMouseOver=\"self.opener.status='A classification number from the Dewey Decimal Classification, developed by Melvyl Dewey. (082)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>UDC classification</td><td>14</td></tr><tr><td><b>Bliss classification</td><td>15</td></tr><tr><td><b>LC call number</td><td>16 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A classification number from the US Library of Congress Classification. (050)\" border=0 onMouseOver=\"self.opener.status='A classification number from the US Library of Congress Classification. (050)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>NLM call number</td><td>17</td></tr><tr><td><b>NAL call number</td><td>18</td></tr><tr><td><b>MOS call number</td><td>19</td></tr><tr><td><b>Local classification</td><td>20</td></tr><tr><td><b>Subject heading</td><td>21 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The primary topic on which a work is focused. (600, 610, 611, 630, 650, 651, 653, 654, 655, 656, 657, 69X)\" border=0 onMouseOver=\"self.opener.status='The primary topic on which a work is focused. (600, 610, 611, 630, 650, 651, 653, 654, 655, 656, 657, 69X)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Subject Rameau</td><td>22</td></tr><tr><td><b>BDI index subject</td><td>23</td></tr><tr><td><b>INSPEC subject</td><td>24</td></tr><tr><td><b>MESH subject</td><td>25</td></tr><tr><td><b>PA subject</td><td>26</td></tr><tr><td><b>LC subject heading</td><td>27</td></tr><tr><td><b>RVM subject heading</td><td>28</td></tr><tr><td><b>Local subject index</td><td>29</td></tr><tr><td><b>Date</td><td>30</td></tr><tr><td><b>Date of publication</td><td>31 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The date (usually year) in which a document is published. (008/07-10, 260c, 046, 533d)\" border=0 onMouseOver=\"self.opener.status='The date (usually year) in which a document is published. (008/07-10, 260c, 046, 533d)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Date of acquisition</td><td>32</td></tr><tr><td><b>Title-key</td><td>33 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The unique name assigned to a serial by the International Serials Data System (ISDS). (222)\" border=0 onMouseOver=\"self.opener.status='The unique name assigned to a serial by the International Serials Data System (ISDS). (222)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Title collective</td><td>34</td></tr><tr><td><b>Title parallel</td><td>35</td></tr><tr><td><b>Title cover</td><td>36</td></tr><tr><td><b>Title added-title-page</td><td>37</td></tr><tr><td><b>Title caption</td><td>38</td></tr><tr><td><b>Title running</td><td>39</td></tr><tr><td><b>Title spine</td><td>40</td></tr><tr><td><b>Title other variant</td><td>41</td></tr><tr><td><b>Title former</td><td>42</td></tr><tr><td><b>Title abbreviated</td><td>43</td></tr>";
msg+= "<tr><td><b>Title expanded</td><td>44</td></tr><tr><td><b>Subject PRECIS</td><td>45</td></tr><tr><td><b>Subject RSWK</td><td>46</td></tr><tr><td><b>Subject subdivision</td><td>47</td></tr><tr><td><b>Number natl bibliography</td><td>48</td></tr><tr><td><b>Number legal deposit</td><td>49</td></tr><tr><td><b>Number govt publication</td><td>50 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A classification number assigned to a government document by a government agency at any level (e.g., state, national, international). (086)\" border=0 onMouseOver=\"self.opener.status='A classification number assigned to a government document by a government agency at any level (e.g., state, national, international). (086)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Number publisher for music</td><td>51 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A formatted number assigned by a publisher to a sound recording or to printed music. (028)\" border=0 onMouseOver=\"self.opener.status='A formatted number assigned by a publisher to a sound recording or to printed music. (028)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Number DB</td><td>52</td></tr><tr><td><b>Number local call</td><td>53</td></tr><tr><td><b>Code--language</td><td>54 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A code that indicates the language of the item. The codes are defined by the target. (008/35-37, 041)\" border=0 onMouseOver=\"self.opener.status='A code that indicates the language of the item. The codes are defined by the target. (008/35-37, 041)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Code--geographic area</td><td>55</td></tr><tr><td><b>Code--institution</td><td>56</td></tr><tr><td><b>Name and title</td><td>57</td></tr><tr><td><b>Name geographic</td><td>58</td></tr><tr><td><b>Place publication</td><td>59 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"City or town where an item was published. (008/15-17, 260a)\" border=0 onMouseOver=\"self.opener.status='City or town where an item was published. (008/15-17, 260a)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>CODEN</td><td>60 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A six-character, unique, alphanumeric code assigned to serial and monographic publications by the CODEN section of the Chemical Abstracts Service. (030)\" border=0 onMouseOver=\"self.opener.status='A six-character, unique, alphanumeric code assigned to serial and monographic publications by the CODEN section of the Chemical Abstracts Service. (030)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Microform generation</td><td>61</td></tr><tr><td><b>Abstract</td><td>62 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"An abbreviated, accurate representation of a work, usually without added interpretation or criticism. (520)\" border=0 onMouseOver=\"self.opener.status='An abbreviated, accurate representation of a work, usually without added interpretation or criticism. (520)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Note</td><td>63 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A concise statement in which such information as extended physical description, relationship to other works, or contents may be recorded. (5XX)\" border=0 onMouseOver=\"self.opener.status='A concise statement in which such information as extended physical description, relationship to other works, or contents may be recorded. (5XX)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Series-key</td><td>105</td></tr><tr><td><b>Subject-key</td><td>121</td></tr><tr><td><b>Serial-key</td><td>200</td></tr><tr><td><b>Serial-title</td><td>201</td></tr><tr><td><b>Journal/Newspaper</td><td>202</td></tr><tr><td><b>Music-title</td><td>203</td></tr><tr><td><b>Score-title</td><td>204</td></tr><tr><td><b>Software-title</td><td>205</td></tr><tr><td><b>Video-title</td><td>206</td></tr><tr><td><b>SUDOC Classification</td><td>207</td></tr><tr><td><b>Control Number (001)</td><td>208</td></tr><tr><td><b>Utility Number (035)</td><td>209</td></tr><tr><td><b>Universal Product Code (UPC)</td><td>210</td></tr><tr><td><b>EBSCO Number</td><td>211</td></tr><tr><td><b>Journal-title</td><td>504</td></tr><tr><td><b>Author-title</td><td>1000</td></tr><tr><td><b>Record type</td><td>1001</td></tr><tr><td><b>Name</td><td>1002</td></tr><tr><td><b>Author</td><td>1003 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A personal or corporate author, or a conference or meeting name. (100, 110, 111, 40, 0410, 411, 700, 710, 711, 800, 810, 811)\" border=0 onMouseOver=\"self.opener.status='A personal or corporate author, or a conference or meeting name. (100, 110, 111, 40, 0410, 411, 700, 710, 711, 800, 810, 811)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Author-name personal</td><td>1004</td></tr><tr><td><b>Author-name corporate</td><td>1005</td></tr><tr><td><b>Author-name conference</td><td>1006</td></tr><tr><td><b>Identifier--standard</td><td>1007</td></tr><tr><td><b>Subject--LC children's</td><td>1008</td></tr><tr><td><b>Subject name--personal</td><td>1009</td></tr><tr><td><b>Body of text</td><td>1010</td></tr><tr><td><b>Date/time added to database</td><td>1011</td></tr><tr><td><b>Date/time last modified</td><td>1012</td></tr>";
msg+= "<tr><td><b>Authority/format identifier</td><td>1013</td></tr><tr><td><b>Any</td><td>1016 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The record is selected if there exists a Use attribute that the target supports (and considers appropriate - see note 1) such that the record would be selected if the target were to substitute that attribute.\" border=0 onMouseOver=\"self.opener.status='The record is selected if there exists a Use attribute that the target supports (and considers appropriate - see note 1) such that the record would be selected if the target were to substitute that attribute.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Server choice</td><td>1017</td></tr><tr><td><b>Publisher</td><td>1018 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The organization responsible for the publication of the item. (260b)\" border=0 onMouseOver=\"self.opener.status='The organization responsible for the publication of the item. (260b)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Record source</td><td>1019</td></tr><tr><td><b>Editor</td><td>1020</td></tr><tr><td><b>Bib-level</td><td>1021</td></tr><tr><td><b>Geographic class</td><td>1022</td></tr><tr><td><b>Indexed by</td><td>1023</td></tr><tr><td><b>Map scale</td><td>1024</td></tr><tr><td><b>Music key</td><td>1025</td></tr><tr><td><b>Related periodical</td><td>1026</td></tr><tr><td><b>Report number</td><td>1027</td></tr><tr><td><b>Stock number</td><td>1028</td></tr><tr><td><b>Thematic number</td><td>1030</td></tr><tr><td><b>Material type</td><td>1031</td></tr><tr><td><b>Doc ID</td><td>1032</td></tr><tr><td><b>Host item</td><td>1033 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The title of the item containing the part described in the record, for example, a journal title when the record describes an article in the journal. (773t)\" border=0 onMouseOver=\"self.opener.status='The title of the item containing the part described in the record, for example, a journal title when the record describes an article in the journal. (773t)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Content type</td><td>1034</td></tr><tr><td><b>Anywhere</td><td>1035 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The record is selected if the term value (as qualified by the other attributes) occurs anywhere in the record.\" border=0 onMouseOver=\"self.opener.status='The record is selected if the term value (as qualified by the other attributes) occurs anywhere in the record.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Author-Title-Subject</td><td>1036</td></tr><td colspan=2><b>Reserved Extensions</b> (1037-2000)</td></tr><tr><td><b>Code--collection</td><td>2002</td></tr><tr><td><b>Code--location</td><td>3008</td></tr><tr><td><b>General Restriction</td><td>9900 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Predefined item or copy table based restriction equivalent to the /r argument to the Zserver program.\" border=0 onMouseOver=\"self.opener.status='Predefined item or copy table based restriction equivalent to the /r argument to the Zserver program.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Item Restriction</td><td>9901 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Item table based restriction similar to 9900. During searches, 9900 and 9901 restrictions are ANDed together, providing more selective WHERE clause specification without default restriction conflicts.\" border=0 onMouseOver=\"self.opener.status='Item table based restriction similar to 9900. During searches, 9900 and 9901 restrictions are ANDed together, providing more selective WHERE clause specification without default restriction conflicts.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Sort Selection</td><td>9990 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Sort order result set override, combined with sort definitions in the Zserver Sort File.\" border=0 onMouseOver=\"self.opener.status='Sort order result set override, combined with sort definitions in the Zserver Sort File.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td colspan=2><b>Unused-safe</b> (550-850 and 5500-8500)</td></tr></table>";

  } else if (code == 2) {
title = title || "Relation attributes";
msg = msg || "<center><table width=95%><tr><td><b>Less than (LT)</td><td>1</td></tr><tr><td><b>Less than or equal (LE)</td><td>2</td></tr><tr><td><b>Equal (EQ)</td><td>3</td></tr><tr><td><b>Greater or equal (GE)</td><td>4</td></tr><tr><td><b>Greater than (GT)</td><td>5</td></tr><tr><td><b>Not equal (NE)</td><td>6</td></tr><tr><td><b>Phonetic</td><td>100 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A match based on aural similarity such as Soundex.\" border=0 onMouseOver=\"self.opener.status='A match based on aural similarity such as Soundex.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Stem</td><td>101 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A lexical or linguistic match; the term is to be compared with words in a record to find those with the same stem.\" border=0 onMouseOver=\"self.opener.status='A lexical or linguistic match; the term is to be compared with words in a record to find those with the same stem.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Relevance</td><td>102 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Select records that are relevant to the term. The relevance algorithm is defined by the target.\" border=0 onMouseOver=\"self.opener.status='Select records that are relevant to the term. The relevance algorithm is defined by the target.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>AlwaysMatches</td><td>103 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"If the Use attribute is Any or Anywhere, all records are selected. Otherwise, all records are selected for which the access point corresponding to the supplied Use attribute is meaningful.  (For example: if the Use attribute is Title, all records that have a title field are selected.)\" border=0 onMouseOver=\"self.opener.status='If the Use attribute is Any or Anywhere, all records are selected. Otherwise, all records are selected for which the access point corresponding to the supplied Use attribute is meaningful.  (For example: if the Use attribute is Title, all records that have a title field are selected.)'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Within</td><td>104 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Select records where the value of the access point, as determined by the Use attribute, is within the bounds specified by the term (where the term itself may be composed of several terms).\" border=0 onMouseOver=\"self.opener.status='Select records where the value of the access point, as determined by the Use attribute, is within the bounds specified by the term (where the term itself may be composed of several terms).'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr></table>";

  } else if (code == 3) {
title = title || "Position attributes";
msg = msg || "<center><table width=95%><tr><td><b>Not applicable</td><td>0 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"No special position processing performed.\" border=0 onMouseOver=\"self.opener.status='No special position processing performed.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>First in field</td><td>1 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Search term must be the first data in the field.\" border=0 onMouseOver=\"self.opener.status='Search term must be the first data in the field.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>First in subfield</td><td>2 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Search term may appear in any subfield but must be the first data in the subfield in which it appears.\" border=0 onMouseOver=\"self.opener.status='Search term may appear in any subfield but must be the first data in the subfield in which it appears.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Any position in field</td><td>3 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Search term may appear any place in the field.\" border=0 onMouseOver=\"self.opener.status='Search term may appear any place in the field.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr></table>";

  } else if (code == 4) {
title = title || "Structure attributes";
msg = msg || "<center><table width=95%><tr><td><b>Phrase (<font color=red>Horizon List Index)</td><td>1 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A phrase consisting of one or more groups of characters separated by blanks, corresponding to a Horizon list index (1=alphabetical, 2=inverted, 4=multi-source).  The value to search for is consistent with respect to order and adjacency.  Word(s) may be explicitly truncated and the completeness attribute may be used to indicate that additional words may appear.\" border=0 onMouseOver=\"self.opener.status='A phrase consisting of one or more groups of characters separated by blanks, corresponding to a Horizon list index (1=alphabetical, 2=inverted, 4=multi-source).  The value to search for is consistent with respect to order and adjacency.  Word(s) may be explicitly truncated and the completeness attribute may be used to indicate that additional words may appear.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Word (<font color=red>Horizon Keyword Index)</td><td>2 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A word search consisting of non-blank characters corresponding to a Horizon keyword index (0).  It specifies the exact text of the value to be searched, unless the word is explicitly truncated.\" border=0 onMouseOver=\"self.opener.status='A word search consisting of non-blank characters corresponding to a Horizon keyword index (0).  It specifies the exact text of the value to be searched, unless the word is explicitly truncated.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Key (<font color=red>Horizon Call# Index)</td><td>3 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"A sequence of characters, corresponding to a Horizon call number index (3), extracted from those characters contained in an indexed word but not necessarily representing complete words.\" border=0 onMouseOver=\"self.opener.status='A sequence of characters, corresponding to a Horizon call number index (3), extracted from those characters contained in an indexed word but not necessarily representing complete words.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Year</td><td>4</td></tr><tr><td><b>Date (normalized)</td><td>5</td></tr><tr><td><b>Word list</td><td>6</td></tr><tr><td><b>Date (un-normalized)</td><td>100</td></tr><tr><td><b>Name (normalized)</td><td>101</td></tr><tr><td><b>Name (un-normalized)</td><td>102</td></tr><tr><td><b>Structure</td><td>103</td></tr><tr><td><b>Urx</td><td>104</td></tr><tr><td><b>Free-form-text</td><td>105</td></tr><tr><td><b>Document-text</td><td>106</td></tr><tr><td><b>Local-number</td><td>107</td></tr><tr><td><b>String</td><td>108</td></tr><tr><td><b>Numeric string</td><td>109</td></tr><tr><td colspan=2>&nbsp;<br>An invalid Structure attribute or match against the wrong Horizon index type will return <b><font color=#FF0000>error 114 (Unsupported Use Attribute)</b>.</td></tr></table>";

  } else if (code == 5) {
title = title || "Truncation attributes";
msg = msg || "<center><table><tr><td><b>Right truncation</td><td>1</td></tr><tr><td><b>Left truncation</td><td>2</td></tr><tr><td><b>Left and right truncation</td><td>3</td></tr><tr><td><b>Do not truncate</td><td>100</td></tr><tr><td><b>Process # in search term</td><td>101 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The search term contains the symbol &quot;#&quot; (ASCII hex &quot;23&quot;) to show where truncation will take place (e.g., &quot;National H# Institute&quot;, or &quot;d#on&quot;).\" border=0 onMouseOver=\"self.opener.status='The search term contains the symbol &quot;#&quot; (ASCII hex &quot;23&quot;) to show where truncation will take place (e.g., &quot;National H# Institute&quot;, or &quot;d#on&quot;).'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>RegExpr-1</td><td>102 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The term is in the form of a regular expression as prescribed by IEEE 1003.2 Volume 1, Section 2.8 &quot;Regular Expression Notation&quot;.\" border=0 onMouseOver=\"self.opener.status='The term is in the form of a regular expression as prescribed by IEEE 1003.2 Volume 1, Section 2.8 &quot;Regular Expression Notation&quot;.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>RegExpr-2</td><td>103 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The term is in the form of a regular expression whose format is target-defined.\" border=0 onMouseOver=\"self.opener.status='The term is in the form of a regular expression whose format is target-defined.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Character Masking</td><td>104 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"The character &quot;?&quot; (question mark) masks a variable number of characters, from zero up to an optional following positive integer or system defined limit. The character &quot;#&quot; (pound or number sign) masks a single character.\" border=0 onMouseOver=\"self.opener.status='The character &quot;?&quot; (question mark) masks a variable number of characters, from zero up to an optional following positive integer or system defined limit. The character &quot;#&quot; (pound or number sign) masks a single character.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr></table>";

  } else if (code == 6) {
title = title || "Completeness attributes";
msg = msg || "<center><table width=95%><tr><td><b>Not applicable</td><td>0 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"No special completeness processing performed.\" border=0 onMouseOver=\"self.opener.status='No special completeness processing performed.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Incomplete subfield</td><td>1 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"Words other than those in the search term may appear in the subfield or field in which the term appears.\" border=0 onMouseOver=\"self.opener.status='Words other than those in the search term may appear in the subfield or field in which the term appears.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Complete subfield</td><td>2 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"No words other than those in the search term should appear in the entire subfield in which the term appears, but additional words may appear in other subfields in the field.\" border=0 onMouseOver=\"self.opener.status='No words other than those in the search term should appear in the entire subfield in which the term appears, but additional words may appear in other subfields in the field.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr><tr><td><b>Complete field</td><td>3 <img src=images/questionmrk.gif width=15 height=15 align=absmiddle alt=\"No words other than those in the search term should appear in the entire field in which the term appears.\" border=0 onMouseOver=\"self.opener.status='No words other than those in the search term should appear in the entire field in which the term appears.'; return true\" onMouseOut=\"self.opener.status=' ';return true;\"></td></tr></table>";

  } else {
title = title || "Types of Attributes";
msg = msg || "<center><table><tr><td><b><a href=\"javascript:void self.opener.showHelp(1)\">Use attributes</a></td><td>(type = 1)</td></tr><tr><td><b><a href=\"javascript:void self.opener.showHelp(2)\">Relation attributes</a></td><td>(type = 2)</td></tr><tr><td><b><a href=\"javascript:void self.opener.showHelp(3)\">Position attributes</a></td><td>(type = 3)</td></tr><tr><td><b><a href=\"javascript:void self.opener.showHelp(4)\">Structure attributes</a></td><td>(type = 4)</td></tr>    <tr><td><b><a href=\"javascript:void self.opener.showHelp(5)\">Truncation attributes</a></td><td>(type = 5)</td></tr><tr><td><b><a href=\"javascript:void self.opener.showHelp(6)\">Completeness attributes</a></td><td>(type = 6)</td></tr></table>";
}

  HWin = window.open("", "help", opt);
  if (HWin.opener == null) HWin.opener = self;
  self.name = "MWin";
  if (HWin.focus) HWin.focus();
  
  HWin.document.open();
  HWin.document.write(replaceIt(html,'${title}',title,'${msg}',msg));
  HWin.document.close();
}
