Vn.Node = { removeChilds: function (node) { var childs = node.childNodes; while (childs.length > 0) node.removeChild (childs[0]); } ,remove: function (node) { node.parentNode.removeChild (node); } ,setText: function (node, text) { Vn.Node.removeChilds (node); if (text) node.appendChild (document.createTextNode (text)); } }; function $ (id) { return document.getElementById (id); }