code: function getClassWeight(e) {
    var weight = 0;
  
    /* Look for a special classname */
    if (e.className !== '') {
      if (e.className.search(regexps.negativeRe) !== -1) weight -= 25;
  
      if (e.className.search(regexps.positiveRe) !== -1) weight += 25;
    }
  
    /* Look for a special ID */
    if (typeof(e.id) == 'string' && e.id != "") {
      if (e.id.search(regexps.negativeRe) !== -1) weight -= 25;
  
      if (e.id.search(regexps.positiveRe) !== -1) weight += 25;
    }
  
    return weight;
  }
docs: Get an elements class/id weight. Uses regular expressions to tell if this
  element looks good or bad.
  
  @param Element
  @return number (Integer)