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