
function submitSearch(srchForm) {
  var srchType = 'docselab';

  if (srchForm.queryText.value == '') {
    alert ('Please enter a search term.');
    return false;
  }

  //---  alert ('Search term entered is '+ srchForm.queryText.value ); ---//

  //--- set the form variables based on the selected search type ---//
  for (i = 0; i < srchForm.radiobutton.length; i++) {
    if (srchForm.radiobutton[i].checked) {
      srchType = srchForm.radiobutton[i].value;
    }
  }

  var modQuery = srchForm.queryText.value;


  if (srchType == "thissite" || srchType=="docs" || srchType == "docselab") 
  {
    srchForm.action = "/nlapps/docs/documents_f.asp";
  }
  else if (srchType == "edsweb") 
  {
    srchForm.action = "http://www.search.eds.com/scgi-bin/infoproxy/custom/ic/query.html";
    srchForm.qt.value = modQuery;
    srchForm.qp.value = "";
  }
  else if (srchType == "people") 
  {
    srchForm.action = "/nlapps/comp/peoplesearch.asp";
    fname = "queryText";
  }
  else if (srchType == "keyword") 
  {
    srchForm.action = "http://keyword.infocentre.eds.com/kw/goto.jsp";
    srchForm.keyword.value = srchForm.queryText.value;
  }

  //--- set the form variables based on the selected search type ---//
  else if (srchType == "Glossary")
  {
    srchForm.action = "http://www.glossary.standards.eds.com/SearchResult_f.asp?LoadFromQueryString=1&Abbreviation="+srchForm.queryText.value+"&Language=0&ReferrerSiteName=UK+North+West+SC";
    srchForm.method = "post";
    srchForm.qt.value = srchForm.queryText.value;
    srchForm.rq.value = "0";
  }
  else if (srchType == "peopleinthissite")
  {
    srchForm.action = "/nlapps/org/employees_f.asp";
  }
}

/* Start My Page Header JavaScript */

info='' +
'<!-- ------------------------------------------------------------ -->' +
'<!--                                                              -->' +
'<!-- infoCentre customized initial Search Form for home pages     -->' +
'<!--                                                              -->' +
'<!-- ------------------------------------------------------------ -->' +
'' +
'<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#d6d5c0" height="30">' +'' +
'  <!-- create a form for Ultraseek to process -->' +
'  <form name="seek1" method=get onSubmit="submitSearch(this)">' +
'' +
'  <!-- hardcode some Ultraseek form variables -->' +
'  <input type=hidden name=qs value="-url:infocentre.eds.com/news">' +
'  <input type=hidden name=st value="1">' +
'  <input type=hidden name=oq value="">' +
'  <input type=hidden name=rq value="0">' +
'  <input type=hidden name=qt value=" ">' +
'  <input type=hidden name=qp value=" ">' +
'  <input type=hidden name=keyword value="">' +
'' +
'  <tr valign="middle"> ' +
'    <td><input type="radio" name="radiobutton" value="thissite" id="thissite_id" checked></td>' +
'    <td class="search" nowrap><label for="thissite_id"><font title="Search this site">this site</font></label></td>' +
'' +
'    <td><input type="radio" name="radiobutton" value="Glossary" id="Glossary_id"></td>' +
'    <td class="search" nowrap><label for="Glossary_id"><font title="Search the EDS Glossary">glossary</font></label></td>' +
'' +
'    <td><input type="radio" name="radiobutton" value="edsweb" id="edsweb_id"></td>' +
'    <td class="search" nowrap><label for="edsweb_id"><font title="Search the EDS intranet">intranet</font></label></td>' +
'' +
'    <td><input type="radio" name="radiobutton" value="keyword" id="keyword_id"></td>' +
'    <td class="search" nowrap><label for="keyword_id"><font title="Use a keyword shortcut">keyword</font></label></td>' +
'' +
'    <td><input type="radio" name="radiobutton" value="people" id="people_id"></td>' +
'    <td class="search" nowrap><label for="people_id"><font title="Search the employee directory">people</font></label></td>' +
'' +
'    <td nowrap>&nbsp;<input type="TEXT" name="queryText" size="20" class="pulldownsearch">' +
'      <input type="IMAGE" src="/nlapps/images/rc/search_go_en.gif" border="0" height="14" alt="Find" align="absmiddle"> ' +
'    </td>' +
'    <td class="search" nowrap>&nbsp;&nbsp;&nbsp;' +
'      <a href="/nlapps/comp/searchadvanced_f.asp">advanced searches</a></td>' +
'    <td class="search" nowrap>&nbsp;&nbsp;&nbsp;&nbsp;' +
'      <a href="http://keyword.infocentre.eds.com/kw/index.jsp">keyword index</a></td>' +
'  </tr>' +
'' +
'  </form>' +
'' +
'</table>' +
'' +
''

document.write(info)

/* End My Page Header JavaScript */
