function check(id,value) { var checkboxes = document.getElementById(id).getElementsByTagName("INPUT"); for (var i=0; i