function check_all(f) { var chk = document.getElementsByName("chk[]"); for (i=0; i