function directView(val) { userPointForm.customDate.value = val; userPointForm.submit(); } var chk = true; function check_all() { var idx = document.getElementsByName("chk[]"); for (i=0; i