3 <title>Search Form</title>
\r
5 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
\r
6 <meta name="description" content="WebHelp 5.50">
\r
13 <body bgcolor="#c0c0c0">
\r
14 <script language="javascript" src="whver.js"></script>
\r
15 <script language="javascript1.2" src="whmsg.js"></script>
\r
16 <script language="javascript1.2" src="whproxy.js"></script>
\r
17 <script language="javascript1.2" src="whutils.js"></script>
\r
18 <script language="javascript1.2" src="whform.js"></script>
\r
19 <script language="javascript1.2">
\r
22 function ftsLookup(bCR)
\r
26 var strInput = document.FtsInputForm.keywordField.value.toUpperCase();
\r
27 if (strInput != "") {
\r
28 var oMsg = new whMessage(WH_MSG_SEARCHFTSKEY, this, 1, strInput);
\r
29 if (!SendMessage(oMsg))
\r
31 gstrInput = strInput;
\r
38 document.FtsInputForm.keywordField.focus();
\r
44 function beforeInit()
\r
46 var oParam = new Object();
\r
48 var oMsg = new whMessage(WH_MSG_GETSEARCHS, this, 1, oParam);
\r
49 if (SendMessage(oMsg))
\r
51 if (oParam.sValue != "" && oParam.sValue != "- Search -")
\r
53 document.FtsInputForm.keywordField.value = oParam.sValue;
\r
60 function window_unload()
\r
62 UnRegisterListener2(this, WH_MSG_SHOWTOC);
\r
63 UnRegisterListener2(this, WH_MSG_SHOWIDX);
\r
64 UnRegisterListener2(this, WH_MSG_SHOWFTS);
\r
65 UnRegisterListener2(this, WH_MSG_SHOWGLO);
\r
66 UnRegisterListener2(this, WH_MSG_SEARCHTHIS);
\r
67 UnRegisterListener2(this, WH_MSG_BACKUPSEARCH);
\r
70 function onSendMessage(oMsg)
\r
72 if (oMsg.nMessageId == WH_MSG_SHOWFTS)
\r
74 document.FtsInputForm.keywordField.focus();
\r
76 else if (oMsg.nMessageId == WH_MSG_SHOWIDX ||
\r
77 oMsg.nMessageId == WH_MSG_SHOWTOC ||
\r
78 oMsg.nMessageId == WH_MSG_SHOWGLO)
\r
80 document.FtsInputForm.keywordField.blur();
\r
82 else if (oMsg.nMessageId == WH_MSG_SEARCHTHIS)
\r
84 if (oMsg.oParam != "- Search -")
\r
86 document.FtsInputForm.keywordField.value = oMsg.oParam;
\r
90 else if (oMsg.nMessageId == WH_MSG_BACKUPSEARCH)
\r
94 oMsg.oParam = gstrInput;
\r
102 if (window.gbWhForm)
\r
104 RegisterListener2(this, WH_MSG_SHOWTOC);
\r
105 RegisterListener2(this, WH_MSG_SHOWIDX);
\r
106 RegisterListener2(this, WH_MSG_SHOWFTS);
\r
107 RegisterListener2(this, WH_MSG_SHOWGLO);
\r
108 RegisterListener2(this, WH_MSG_SEARCHTHIS);
\r
109 RegisterListener2(this, WH_MSG_BACKUPSEARCH);
\r
110 gfunLookUp = ftsLookup;
\r
112 gstrFormName = "FtsInputForm"
\r
113 gsTitle = "Type in the word(s) to search for:";
\r
114 gsTitle = "Type in the word(s) to search for:";
\r
123 setFont("Title", "Arial","9pt","#000000","normal","normal","none");
\r
126 document.write(getFormHTML());
\r
128 window.onload = beforeInit;
\r
129 window.onunload=window_unload;
\r
132 document.location.reload();
\r