Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

644 lines
21 KiB

  1. <HTML XMLNS:helpcenter>
  2. <HEAD>
  3. <!--
  4. Copyright (c) 2000 Microsoft Corporation
  5. -->
  6. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=windows-1252">
  7. <META HTTP-EQUIV=PICS-Label CONTENT='(PICS-1.1 "http://www.rsac.org/ratingsv01.html" l comment "RSACi North America Server" by "[email protected]" r (n 0 s 0 v 0 l 0))'>
  8. <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
  9. <TITLE>Advanced Search Options</TITLE>
  10. <OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
  11. <LINK ID=Stylesheet_Ref0 href="hcp://system/css/shared.css" rel=STYLESHEET type=text/css>
  12. <LINK ID=Stylesheet_Ref1 href="hcp://system/css/Behaviors.css" rel=STYLESHEET type=text/css>
  13. <LINK ID=Stylesheet_Ref2 href="hcp://system/css/Layout.css" rel=STYLESHEET type=text/css>
  14. <STYLE>
  15. BODY
  16. {
  17. margin : 16px;
  18. margin-top : 11px;
  19. }
  20. .AdvSearch-GenParam
  21. {
  22. padding-top : 1em;
  23. padding-bottom : 1em;
  24. padding-left : 6px;
  25. }
  26. .AdvSearch-WrapperDesc
  27. {
  28. padding-left : 23px;
  29. }
  30. .AdvSearch-ResultTable
  31. {
  32. padding-left : 15px;
  33. }
  34. .AdvSearch-Result
  35. {
  36. padding-left : 19px;
  37. padding-top : 0.5em;
  38. }
  39. .AdvSearch-NumResultsInput
  40. {
  41. width : 30px;
  42. }
  43. .AdvSearch-Required
  44. {
  45. padding-left : 4px;
  46. padding-bottom : 1em;
  47. }
  48. .AdvSearch-RequiredText
  49. {
  50. padding-left : 7px;
  51. }
  52. .sys-font-body-gray
  53. {
  54. color : graytext;
  55. }
  56. </STYLE>
  57. </HEAD>
  58. <BODY SCROLL=AUTO class="sys-rhp-bgcolor sys-color-body">
  59. <DIV id=locTitle NOWRAP class='sys-font-heading3 sys-rhp-color-title'>Set search options</DIV><BR>
  60. <DIV id=locDesc class='sys-font-body sys-color-body'>Find help and information from different sources.
  61. To change the scope of your search, select one or more providers from the following list.</DIV>
  62. <DIV class='sys-font-body sys-color-body AdvSearch-GenParam' id=locNumResult>Return up to &nbsp;<INPUT title="Return up to number of results per provider" TABINDEX='1' id=allMaxResults class='sys-toppane-bgcolor sys-color-body AdvSearch-NumResultsInput' TYPE=text MAXLENGTH=3 onblur='NumResultsChange()' VALUE="100"> results per provider.</DIV>
  63. <DIV class='sys-font-body sys-color-body' id=locSearchHighlight title='Specifies whether to highlight occurrences of the search term in the topic.'>
  64. <INPUT title='Specifies whether to highlight occurrences of the search term in the topic.' TABINDEX='0' id=allSearchHighlight class='sys-font-body sys-color-body' TYPE=checkbox onclick='SearchHighlightChange();'>&nbsp;Turn on search highlight.
  65. </DIV>
  66. <!-- Server DCR : Add option to select default wrapper -->
  67. <DIV class='sys-font-body sys-color-body AdvSearch-GenParam' id=locSearchDisplay>
  68. <DIV id=locDefaultProvider class='sys-toppane-bgcolor sys-color-body'>Display results from this provider by default:</DIV>
  69. <SELECT title='Specifies the default search engine to display.' style='margin-top: 1em' class='sys-font-body sys-color-body sys-toppane-bgcolor' ID='allSearchDisplay' SIZE=1 onchange='DisplayListChange();'></SELECT>
  70. </DIV>
  71. <!-- Server DCR : Add option to select default wrapper -->
  72. <DIV id=idSearchWrappers></DIV>
  73. </BODY>
  74. <SCRIPT id=Script_Ref0 SRC="hcp://system/scripts/wrapperparam.js"></SCRIPT>
  75. <SCRIPT LANGUAGE="JavaScript" DEFER>
  76. var L_Required_Text = "Required";
  77. var L_NumUnsignedError_Text = "Value must be a valid integer greater than 0.";
  78. var L_NumIntError_Text = "Value must be a valid integer.";
  79. var L_NumFloatError_Text = "Value must be a valid floating number.";
  80. var L_DateError_Text = "Value must be a valid date.";
  81. var L_NoEngine_Text = "You have unselected all available search providers. You must have at least one search provider selected in order to search Help and Support Center.";
  82. var L_NoDefaultSelected_Text = "No default selected";
  83. var g_NAVBAR = pchealth.UI_NavBar.content.parentWindow;
  84. // Init SEMgr
  85. var g_aParamValue = [];
  86. if(g_NAVBAR.GetWrapperVar( "SEMgrInit" ) != "true")
  87. {
  88. LoadWrapperParams( g_NAVBAR.GetSearchEngineManager() );
  89. g_NAVBAR.SetWrapperVar( "SEMgrInit", "true" );
  90. }
  91. allSearchHighlight.checked = g_NAVBAR.g_SearchHighlight;
  92. function SetParam(itemid, value)
  93. {
  94. // Extract the id and parameter name
  95. var re = new RegExp("___");
  96. var arr = re.exec(itemid);
  97. var wrapperid = RegExp.leftContext;
  98. var paramname = RegExp.rightContext;
  99. // Locate the wrapper
  100. var oWrapper = g_NAVBAR.FindWrapper(wrapperid);
  101. // Set the value
  102. oWrapper.AddParam(paramname, value);
  103. // Save the parameter into the registry
  104. SaveWrapperParams(wrapperid, paramname, value);
  105. }
  106. function NumUnsignedIntChange()
  107. {
  108. // Check the value of the input
  109. var value = parseInt( event.srcElement.value );
  110. var value2 = parseFloat(event.srcElement.value);
  111. // Check to see if it is positive and if it is an integer
  112. if(isNaN( event.srcElement.value ) ||
  113. (value < 0) ||
  114. (value != value2)) // check if integer
  115. {
  116. pchealth.MessageBox( L_NumUnsignedError_Text, "OK" );
  117. event.srcElement.value = pchealth.TextHelpers.QuoteEscape( g_aParamValue[event.srcElement.id], "'" );
  118. return;
  119. }
  120. SetParam(event.srcElement.id, value);
  121. }
  122. function NumSignedIntChange()
  123. {
  124. // Check the value of the input
  125. var value = parseInt( event.srcElement.value );
  126. var value2 = parseFloat(event.srcElement.value);
  127. // Check to see if it is an integer
  128. if(isNaN( event.srcElement.value ) || (value != value2))
  129. {
  130. pchealth.MessageBox( L_NumIntError_Text, "OK" );
  131. event.srcElement.value = pchealth.TextHelpers.QuoteEscape( g_aParamValue[event.srcElement.id], "'" );
  132. return;
  133. }
  134. SetParam(event.srcElement.id, value);
  135. }
  136. function NumFloatChange()
  137. {
  138. // Check to see if it is a number
  139. if(isNaN( event.srcElement.value ))
  140. {
  141. pchealth.MessageBox( L_NumFloatError_Text, "OK" );
  142. event.srcElement.value = pchealth.TextHelpers.QuoteEscape( g_aParamValue[event.srcElement.id], "'" );
  143. return;
  144. }
  145. SetParam(event.srcElement.id, value);
  146. }
  147. function DateChange()
  148. {
  149. var temp = Date.parse(event.srcElement.value);
  150. if(isNaN( temp ))
  151. {
  152. pchealth.MessageBox( L_DateError_Text, "OK" );
  153. event.srcElement.value = pchealth.TextHelpers.QuoteEscape( g_aParamValue[event.srcElement.id], "'" );
  154. return;
  155. }
  156. SetParam(event.srcElement.id, event.srcElement.value);
  157. }
  158. function TextChange()
  159. {
  160. SetParam(event.srcElement.id, event.srcElement.value);
  161. }
  162. function ListChange()
  163. {
  164. var oOptions = event.srcElement.options(event.srcElement.selectedIndex);
  165. SetParam(event.srcElement.id, oOptions.value);
  166. }
  167. function ClickChange()
  168. {
  169. try
  170. {
  171. if(event.srcElement.checked)
  172. {
  173. SetParam(event.srcElement.id, true);
  174. }
  175. else
  176. {
  177. SetParam(event.srcElement.id, false);
  178. }
  179. }
  180. catch(e)
  181. {;}
  182. }
  183. function GenerateList(oWrapper, strXML, strParamName, strDisplay, strDisplay2, strPrevValue)
  184. {
  185. try
  186. {
  187. // Load the xml file
  188. var xmldoc = new ActiveXObject("Microsoft.XMLDOM");
  189. xmldoc.async = false;
  190. xmldoc.loadXML(strXML);
  191. var strHTML = "<SELECT title='" + strDisplay2 + "' style='margin-bottom: 1em' class='sys-font-body sys-color-body sys-toppane-bgcolor' ID='" + strParamName + "' SIZE=1 onchange='ListChange();'>";
  192. // Generate each item
  193. var ElemList = xmldoc.getElementsByTagName("PARAM_VALUE");
  194. for (var i=0; i < ElemList.length; i++)
  195. {
  196. var strItemValue = ElemList.item(i).getAttribute("VALUE");
  197. var strDisplay = pchealth.TextHelpers.HTMLEscape(ElemList.item(i).getElementsByTagName("DISPLAYSTRING").item(0).text);
  198. var strDefault = ElemList.item(i).getAttribute("DEFAULT");
  199. if(strDefault == null) strDefault = "";
  200. strItemValue = pchealth.TextHelpers.HTMLEscape( strItemValue );
  201. // Restore the previous value
  202. if ((!strPrevValue) || (strPrevValue == ""))
  203. {
  204. // Check if default value
  205. if(strDefault.toLowerCase() == "true")
  206. {
  207. strHTML += "<OPTION VALUE='" + strItemValue + "' SELECTED>" + strDisplay;
  208. // set the default value so that the search wrapper gets this value
  209. oWrapper.AddParam( strParamName, strItemValue );
  210. }
  211. else
  212. {
  213. strHTML += "<OPTION VALUE='" + strItemValue + "'>" + strDisplay;
  214. }
  215. }
  216. else
  217. {
  218. if (pchealth.TextHelpers.HTMLEscape( strPrevValue ) == strItemValue)
  219. {
  220. strHTML += "<OPTION VALUE='" + strItemValue + "' SELECTED>" + strDisplay;
  221. }
  222. else
  223. {
  224. strHTML += "<OPTION VALUE='" + strItemValue + "'>" + strDisplay;
  225. }
  226. }
  227. }
  228. strHTML += "</SELECT>";
  229. return strHTML;
  230. }
  231. catch(e)
  232. {
  233. }
  234. return "";
  235. }
  236. function DisplayParam(oWrapper, Type, strDisplay, strParamName, bReq, bstrData)
  237. {
  238. var strHTML = "<TR>";
  239. var strReq = "";
  240. var value = null;
  241. var value2;
  242. var strUIType = "";
  243. var strValue = "";
  244. var strResName = pchealth.TextHelpers.HTMLEscape( oWrapper.ID + "___" + strParamName );
  245. var strParamHTML= "";
  246. var strChecked = "";
  247. var strDisplay2 = pchealth.TextHelpers.HTMLEscape( strDisplay );
  248. strDisplay = pchealth.TextHelpers.HTMLEscape( strDisplay );
  249. // If it is not required, then perform colspan
  250. if (bReq == false)
  251. strHTML += "<TD width=50% id='text" + strResName + "' COLSPAN=2>";
  252. else
  253. strHTML += "<TD width=50% id='text" + strResName + "' >";
  254. // Get the value stored before
  255. try
  256. {
  257. value = oWrapper.GetParam(strParamName);
  258. }
  259. catch(e)
  260. {
  261. // ignore
  262. }
  263. // Decide on the UI
  264. if(Type == pchealth.PARAM_R4 || // float
  265. Type == pchealth.PARAM_R8 ) // double
  266. {
  267. if(value == null) value = 0;
  268. value2 = pchealth.TextHelpers.HTMLEscape( value );
  269. strParamHTML = '<INPUT title="' + strDisplay2 + '" TABINDEX="0" id="' + strResName + '" class="sys-font-body sys-color-body" TYPE=text MAXLENGTH=10 onblur="NumFloatChange();" VALUE="' + value2 + '"></TD>';
  270. g_aParamValue[strResName] = value;
  271. }
  272. if(Type == pchealth.PARAM_UI1 || // Byte
  273. Type == pchealth.PARAM_I2 || // Short
  274. Type == pchealth.PARAM_I4 || // long
  275. Type == pchealth.PARAM_INT ) // int
  276. {
  277. if(value == null) value = 0;
  278. value2 = pchealth.TextHelpers.HTMLEscape( value );
  279. strParamHTML = '<INPUT title="' + strDisplay2 + '" TABINDEX="0" id="' + strResName + '" class="sys-font-body sys-color-body" TYPE=text MAXLENGTH=10 onblur="NumSignedIntChange();" VALUE="' + value2 + '"></TD>';
  280. g_aParamValue[strResName] = value;
  281. }
  282. if(Type == pchealth.PARAM_UI2 || // unsigned short
  283. Type == pchealth.PARAM_UI4 || // unsigned long
  284. Type == pchealth.PARAM_UINT ) // unsigned int
  285. {
  286. if(value == null) value = 0;
  287. value2 = pchealth.TextHelpers.HTMLEscape( value );
  288. strParamHTML = '<INPUT title="' + strDisplay2 + '" TABINDEX="0" id="' + strResName + '" class="sys-font-body sys-color-body" TYPE=text MAXLENGTH=10 onblur="NumUnsignedIntChange();" VALUE="' + value2 + '"></TD>';
  289. g_aParamValue[strResName] = value;
  290. }
  291. if(Type == pchealth.PARAM_DATE)
  292. {
  293. if(value == null) value = "";
  294. value2 = pchealth.TextHelpers.HTMLEscape( value );
  295. strParamHTML = '<INPUT title="' + strDisplay2 + '" TABINDEX="0" id="' + strResName + '" class="sys-font-body sys-color-body" TYPE=text onblur="DateChange();" VALUE="' + value2 + '"></TD>';
  296. g_aParamValue[strResName] = value;
  297. }
  298. if(Type == pchealth.PARAM_BSTR) // BSTR
  299. {
  300. if(value == null) value = "";
  301. value2 = pchealth.TextHelpers.HTMLEscape( value );
  302. strParamHTML = '<INPUT title="' + strDisplay2 + '" TABINDEX="0" id="' + strResName + '" class="sys-font-body sys-color-body" TYPE=text onblur="TextChange();" VALUE="' + value2 + '"></TD>';
  303. g_aParamValue[strResName] = value;
  304. }
  305. if(Type == pchealth.PARAM_I1) // char
  306. {
  307. if(value == null) value = "";
  308. value2 = pchealth.TextHelpers.HTMLEscape( value );
  309. strParamHTML = '<INPUT title="' + strDisplay2 + '" TABINDEX="0" id="' + strResName + '" class="sys-font-body sys-color-body" TYPE=text MAXLENGTH=1 onblur="TextChange();" VALUE="' + value2 + '"></TD>';
  310. g_aParamValue[strResName] = value;
  311. }
  312. if(Type == pchealth.PARAM_BOOL) // VARIANT_BOOL
  313. {
  314. if(value == null) value = false;
  315. if(value == true) strChecked = "CHECKED";
  316. strHTML += '<INPUT title="' + strDisplay2 + '" TABINDEX="0" id="' + strResName + '" class="sys-font-body sys-color-body" TYPE=checkbox onclick="ClickChange();" ' + strChecked + ">&nbsp;" + strDisplay + "</TD>";
  317. if(bReq) strHTML += "<TD width=10% align=right><b>" + L_Required_Text + "</b></TD>";
  318. g_aParamValue[strResName] = value;
  319. }
  320. if(Type == pchealth.PARAM_LIST) // List type
  321. {
  322. strParamHTML = GenerateList( oWrapper, bstrData, strResName, strDisplay, strDisplay2, value );
  323. g_aParamValue[strResName] = value;
  324. }
  325. // Add required message
  326. if(Type != pchealth.PARAM_BOOL)
  327. {
  328. if(bReq == false)
  329. {
  330. strHTML += "<DIV class='AdvSearch-Required'>" + strDisplay + "</DIV></TD></TR><TR><TD colspan=2><DIV class='AdvSearch-RequiredText sys-font-body sys-color-body'>";
  331. strHTML += strParamHTML;
  332. strHTML += "</DIV></TD></TR>";
  333. }
  334. else
  335. {
  336. strHTML += strDisplay + "</TD><TD style='height:1em;'></TD></TR><TR><TD>";
  337. strHTML += strParamHTML + "</TD>";
  338. strHTML += "<TD width=10% align=right><b>" + L_Required_Text + "</b></TD>";
  339. }
  340. }
  341. // End Row
  342. strHTML += "</TR>";
  343. return strHTML;
  344. }
  345. function GenWrapperParams( oSearchEng )
  346. {
  347. var strResultHTML = "";
  348. var bFTSPer = false;
  349. // Bug 174314 : Do not allow Search in Titles only option for personal SKUs
  350. if(oSearchEng.ID == g_NAVBAR.ID_FTS)
  351. {
  352. if(pchealth.UserSettings.CurrentSKU.SKU.match( /^Personal_/ )) bFTSPer = true;
  353. }
  354. // Loop through all the variables
  355. for(var v = new Enumerator(oSearchEng.Param()); !v.atEnd(); v.moveNext())
  356. {
  357. ParamItem = v.item();
  358. // If parameter is not visible, skip
  359. if(ParamItem.Visible == true)
  360. {
  361. // Check to see if the value has changed
  362. strResultHTML += DisplayParam( oSearchEng, ParamItem.Type, ParamItem.Display, ParamItem.Name, ParamItem.Required, ParamItem.Data );
  363. }
  364. }
  365. return strResultHTML;
  366. }
  367. function NumResultsChange()
  368. {
  369. // Check the value of the input
  370. var value = parseInt( event.srcElement.value );
  371. var value2 = parseFloat(event.srcElement.value);
  372. // Check to see if it is an integer
  373. if(isNaN( event.srcElement.value ) || (value != value2) || value <= 0)
  374. {
  375. pchealth.MessageBox( L_NumUnsignedError_Text, "OK" );
  376. try
  377. {
  378. event.srcElement.value = g_NAVBAR.GetSearchEngineManager().NumResult;
  379. }
  380. catch(e)
  381. { ; }
  382. return;
  383. }
  384. try
  385. {
  386. g_NAVBAR.GetSearchEngineManager().NumResult = value;
  387. }
  388. catch(e)
  389. {
  390. return;
  391. }
  392. // Save the parameter into the registry
  393. SaveWrapperParams("", "NumResults", value);
  394. }
  395. function SearchHighlightChange()
  396. {
  397. try
  398. {
  399. g_NAVBAR.g_SearchHighlight = event.srcElement.checked;
  400. SaveWrapperParams( "", "SearchHighlight", g_NAVBAR.g_SearchHighlight );
  401. }
  402. catch(e)
  403. {;}
  404. }
  405. function ClickEnable()
  406. {
  407. // Extract the id and parameter name
  408. var re = new RegExp("___");
  409. var arr = re.exec(event.srcElement.id);
  410. var wrapperid = RegExp.rightContext;
  411. var semgr = g_NAVBAR.GetSearchEngineManager();
  412. var bEnabled = false;
  413. // Locate the wrapper
  414. var oWrapper = g_NAVBAR.FindWrapper(wrapperid);
  415. // Set the value
  416. oWrapper.Enabled = event.srcElement.checked;
  417. // Check if all wrappers have been disabled
  418. for(var e = new Enumerator( semgr.EnumEngine()); !e.atEnd(); e.moveNext())
  419. {
  420. var oSearchEng = e.item();
  421. if (oSearchEng.Enabled)
  422. {
  423. bEnabled = true;
  424. break;
  425. }
  426. }
  427. // Issue warning if all wrappers are disabled
  428. if (bEnabled == false)
  429. {
  430. pchealth.MessageBox( L_NoEngine_Text, "OK" );
  431. }
  432. // Save the parameter into the registry
  433. SaveWrapperParams(oWrapper.ID, "Enabled", event.srcElement.checked);
  434. // Change the param state
  435. ParamState(oWrapper, event.srcElement.checked);
  436. if (oWrapper.ID == g_NAVBAR.ID_KEYWORD)
  437. pchealth.WEB_Context.document.parentWindow.EnableSubsite(event.srcElement.checked);
  438. }
  439. function ParamState(oWrapper, bEnabled)
  440. {
  441. // Loop through all the variables
  442. for(var v = new Enumerator(oWrapper.Param()); !v.atEnd(); v.moveNext())
  443. {
  444. var ParamItem = v.item();
  445. var oParamDiv = idSearchWrappers.all.item(oWrapper.ID + "___" + ParamItem.Name);
  446. var oTextDIV = idSearchWrappers.all.item("text" + oWrapper.ID + "___" + ParamItem.Name);
  447. var oDescDIV = idSearchWrappers.all.item("desc" + oWrapper.ID);
  448. if(oParamDiv) oParamDiv.disabled = bEnabled ? false : true;
  449. if(oTextDIV ) oTextDIV.className = bEnabled ? "AdvSearch-Result sys-font-body sys-color-body" : "AdvSearch-Result sys-font-body sys-font-body-gray";
  450. if(oDescDIV ) oDescDIV.className = bEnabled ? "AdvSearch-WrapperDesc sys-font-body sys-color-body" : "AdvSearch-WrapperDesc sys-font-body sys-font-body-gray";
  451. }
  452. }
  453. //
  454. // Server DCR : Add option to select default wrapper
  455. //
  456. function DisplayListChange()
  457. {
  458. var oOptions = event.srcElement.options(event.srcElement.selectedIndex);
  459. g_NAVBAR.SetDefaultWrapper(oOptions.value);
  460. }
  461. function PopulateVariables()
  462. {
  463. var strResultHTML = "";
  464. var semgr = g_NAVBAR.GetSearchEngineManager();
  465. //
  466. // Server DCR : Add option to select default wrapper
  467. //
  468. var idWrapperDisplay = g_NAVBAR.GetDefaultWrapper();
  469. var oOptionNoDef = document.createElement("OPTION");
  470. oOptionNoDef.text = L_NoDefaultSelected_Text;
  471. oOptionNoDef.value = "none";
  472. if (idWrapperDisplay == "" || idWrapperDisplay == "none")
  473. oOptionNoDef.selected = true;
  474. allSearchDisplay.add(oOptionNoDef);
  475. // Display general parameters
  476. allMaxResults.value = semgr.NumResult; // Max results from search engine
  477. // Loop thru all engines
  478. for(var e = new Enumerator( semgr.EnumEngine()); !e.atEnd(); e.moveNext())
  479. {
  480. var oSearchEng = e.item();
  481. // Add enable input
  482. var strEnable = (oSearchEng.Enabled ? "CHECKED" : "");
  483. strResultHTML += "<HR color='black' size=1>";
  484. strResultHTML += '<DIV class="sys-font-body-bold sys-color-body"><INPUT title="' + pchealth.TextHelpers.HTMLEscape( oSearchEng.Name ) + '" TABINDEX="0" id="enable___' + pchealth.TextHelpers.HTMLEscape( oSearchEng.ID ) + '" class="sys-font-body sys-color-body" TYPE=checkbox onclick="ClickEnable()"';
  485. if(oSearchEng.Enabled) strResultHTML += " CHECKED";
  486. strResultHTML += ">&nbsp;" + pchealth.TextHelpers.HTMLEscape( oSearchEng.Name ) + "</DIV>";
  487. strResultHTML += '<DIV id="desc' + pchealth.TextHelpers.HTMLEscape( oSearchEng.ID ) + '">' + pchealth.TextHelpers.HTMLEscape( oSearchEng.Description ) + '</DIV>';
  488. strResultHTML += "<TABLE border=0 cellpadding=0 cellspacing=0 class='AdvSearch-ResultTable sys-font-body sys-color-body' width=90%>";
  489. strResultHTML += GenWrapperParams( oSearchEng );
  490. strResultHTML += "</TABLE>";
  491. //
  492. // Server DCR : Add option to select default wrapper
  493. //
  494. var oOption = document.createElement("OPTION");
  495. oOption.text = pchealth.TextHelpers.HTMLEscape(oSearchEng.Name);
  496. oOption.value = oSearchEng.ID;
  497. allSearchDisplay.add(oOption);
  498. if (oSearchEng.ID == idWrapperDisplay)
  499. oOption.selected = true;
  500. }
  501. idSearchWrappers.innerHTML = strResultHTML;
  502. // After inserting the HTML, modify the state of the params
  503. for(e.moveFirst(); !e.atEnd(); e.moveNext())
  504. {
  505. var oSearchEng = e.item();
  506. ParamState(oSearchEng, oSearchEng.Enabled);
  507. }
  508. }
  509. PopulateVariables();
  510. </SCRIPT>
  511. </HTML>