//*********************************************************************
//   srchSubmitMain()
//   Submit search form available from all pages
//**********************************************************************/
function srchSubmit(form) {
 
  var query=form.q.value;

  query=replaceAll(query,"#","");

  form.q.value=query;
  return true;
}

//*********************************************************************
//   replaceAll
//   Replaces a substring with in a string with a new string
//**********************************************************************/
function replaceAll (string, oldstr, newstr)
{ var st = string;
  if (oldstr.length == 0)
     return st;
  var idx = st.indexOf(oldstr);
  while (idx >= 0)
  {  st = st.substring(0,idx) + newstr + st.substr(idx+oldstr.length);
     idx = st.indexOf(oldstr);
  }
  return st;
}