function checkall(){ var elements = document.getElementsByTagName('input'); for (var j=0; j