//window open method
function form_focus(a) {
	a.style.backgroundColor="#F8F7D8";
}
function form_blur(a) {
	a.style.backgroundColor="#FFFFFF";
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

// checkbox 選択済チェック
function isCheckBox(fname, chkname, msg){

	var i;
	var fm = document.forms[fname];
	var chkCnt = 0;

	for(i=0; i<fm.length; i++){
		if(fm[i].checked == true && fm[i].name == chkname){	// 選択中かつ、対象アイテムか？
			chkCnt++;			// 選択中カウンタ
		}
	}
	
	if(chkCnt == 0){	// 選択中カウンタは0か？
		alert(msg);
		return false;
	}
	else{							// 選択中カウンタは1以上か？
		return true;
	}
}
