function doEnterKey(sElement){
  if ((event.which ? event.which : event.keyCode) == 13)
    {
    event.keyCode=0;
    event.returnValue = false;
    event.cancel = true;             // these two lines stops the event activated by the enter

    document.getElementById(sElement).click();
    return false;
    }
  }
