function allCheck(obj) {
	var len = document.forms.length;
	for (i = 0; i < len; i++) {
		if (document.forms[i].elements["bunumber[]"]) {
			for (j = 0; j < document.forms[i].elements["bunumber[]"].length; j++) {
				if (document.forms[i].elements["bunumber[]"][j].type != "checkbox") {
					continue;
				}
				document.forms[i].elements["bunumber[]"][j].checked = obj.checked;
			}
		}
if (document.forms[i].elements["CHECK"]) {
for (j = 0; j < document.forms[i].elements["CHECK"].length; j++) {
if (document.forms[i].elements["CHECK"][j].type != "checkbox") {
continue;
}
document.forms[i].elements["CHECK"][j].checked = obj.checked;
}
}
	}
}

function OpenWin1(){

win=window.open("../template/gaku.html","new","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,width=400,height=370,left=100,top=100");
}

function mail(url){
	window.open(url,"mail","top=100,left=100,width=800,height=700,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes");}

function KUIZU1(fm){f=fm.form;f.call.value=fm.value;}

function KUIZU2(fm){f=fm.form;f.call2.value=fm.value;}

function BackColor(id, color){
	if(document.all){
		document.all(id).style.backgroundColor = color;
	}else if(document.getElementById){
		document.getElementById(id).style.backgroundColor = color;
	}
}
