/* function Selector2 (id, tag, attribute) { this.root = document.getElementById(id); this.elements = new Array(); this.values = new Array(); this.registerChildren(root, attribute); this.handlers = new Array(); } Selector2.prototype.registerChildren(parent, tag, attribute) { var children = parent.childNodes; for (var i = 0; i