removeAllElements: function() { var tbody = document.getElementsByTagName("TBODY")[0]; for (; tbody.rows.length;) { tbody.deleteRow(0) } },