<script language="javascript">
<!--

function allcheck(flag) {
	var chk = 0;
	var form = document.apply_form;  // form name ~~ ☆

	for (i =0; i < form.elements.length; i++){
		if (form.elements[i].type == 'checkbox'){
			if (chk == 0) {
				if (form.elements[i].checked == true){
					flag = false
					chk++;
				}else{
				   flag = true
				   chk++;
				}
			}
			form.elements[i].checked = flag
		}
	}

} // function END ~

-->
</script>