function checkAll() { var checkboxes = document.getElementsByTagName("input"); for(var i=0; i