code: function hasJavascriptHref(element) {
      if (getTagName(element) != 'a') {
          return false;
      }
      if (element.getAttribute('onclick')) {
          return false;
      }
      if (! element.href) {
          return false;
      }
      if (! /\s*javascript:/i.test(element.href)) {
          return false;
      }
      return true;
  }
docs: Returns true iff the given element represents a link with a javascript
  href attribute, and does not have an onclick attribute defined.
  
  @param element  the element to test