function doSearchClick(textName, e) {
  var key;

  if (window.event)
    key = window.event.keyCode;     //IE
  else
    key = e.which;     //firefox
  if (key == 13) {
    //Get the button the user wants to have clicked
      var txt = document.getElementById(textName);
      if (txt != null) { //If we find the button click it
          window.location.href = '/search.aspx?q=' + txt.text;
      event.keyCode = 0
    }
  }
}

function doNewsClick(buttonName, e) {
  var key;

  if (window.event)
    key = window.event.keyCode;     //IE
  else
    key = e.which;     //firefox
  if (key == 13) {
    //Get the button the user wants to have clicked
    var btn = document.getElementById(buttonName);
    if (btn != null) { //If we find the button click it
      btn.click();
      //window.location.href = '/search.aspx?q=';  //+ btn.text;
      event.keyCode = 0
    }
  }
}
