function check_all(f) { var chk = document.getElementsByName("chk[]"); for (i=0; i'); $f.find("input[name=token]").val(token); return true; }); });