clrTemp = new Array();//変更前のセル色var offClr1="#CCCCCC";	//濃var offClr2="#EEEEEE";	//淡//変更後のセル色var onClr1="#80A4CF";	//濃var onClr2="#C7DEF5";	//淡var nFootLine = 15;//年式-マウスオーバーfunction onColorTd(thisCell,chk){	thisCell.style.backgroundColor=onClr1;	var tblElmt=document.getElementById('matrixTable');	var tblX=tblElmt.rows[1].cells.length;	var tblY=tblElmt.rows.length;	if(chk==0){		var thisCellNum=thisCell.cellIndex+1;	} else {		var thisCellNum=thisCell.cellIndex;			}	for(i=2; i<tblY-1; i++){		//現在のセル色を配列に代入		if(tblElmt.rows[i].cells[thisCellNum].style.backgroundColor==""){			clrTemp[i]=offClr2;		} else {			clrTemp[i]=tblElmt.rows[i].cells[thisCellNum].style.backgroundColor;		}				if(i == tblY-2 && tblY - 3 > nFootLine ){ //if(i==tblY-2 && tblY -2 >= nFootLine){			tblElmt.rows[i].cells[thisCellNum].style.backgroundColor = onClr1;		}else{			tblElmt.rows[i].cells[thisCellNum].style.backgroundColor = onClr2;		}				//色変更		//if(i<tblY-2){		//	tblElmt.rows[i].cells[thisCellNum].style.backgroundColor=onClr2;		//} else {		//	//下部項目		//	tblElmt.rows[i].cells[thisCellNum].style.backgroundColor=onClr1;		//}	}	//色変更（上部項目）	if(chk!=0){		tblElmt.rows[1].cells[thisCellNum-1].style.backgroundColor=onClr1;	}}//年式-マウスアウトfunction offColorTd(thisCell,chk){	thisCell.style.backgroundColor=offClr1;	var tblElmt=document.getElementById('matrixTable');	var tblX=tblElmt.rows[1].cells.length;	var tblY=tblElmt.rows.length;	if(chk==0){		var thisCellNum=thisCell.cellIndex+1;	} else {		var thisCellNum=thisCell.cellIndex;			}	for(i=2; i<tblY-1; i++){		//if(clrTemp[i] == onClr2){				if(i == tblY-2  && tblY-3 > nFootLine){			tblElmt.rows[i].cells[thisCellNum].style.backgroundColor=offClr1;		}else{			tblElmt.rows[i].cells[thisCellNum].style.backgroundColor=clrTemp[i];		}							//色を戻す		//if(i<tblY-2){		//	tblElmt.rows[i].cells[thisCellNum].style.backgroundColor=clrTemp[i];		//} else {			//下部項目		//	tblElmt.rows[i].cells[thisCellNum].style.backgroundColor=offClr1;		//}	}	//色を戻す（上部項目）	if(chk!=0){		tblElmt.rows[1].cells[thisCellNum-1].style.backgroundColor=offClr1;	}}//価格-マウスオーバーfunction onColorTr(thisCell){	thisCell.style.backgroundColor=onClr1;	var tblElmt=document.getElementById('matrixTable');	var tblX=tblElmt.rows[1].cells.length;	var tblY=tblElmt.rows.length;	var totalCellNum=tblX*tblY;	var thisCellNum=thisCell.parentNode.rowIndex;	for(i=1; i<tblX+1; i++){		//現在のセル色を配列に代入		if(tblElmt.rows[thisCellNum].cells[i].style.backgroundColor==""){			clrTemp[i]=offClr2;		} else {			clrTemp[i]=tblElmt.rows[thisCellNum].cells[i].style.backgroundColor;		}		tblElmt.rows[thisCellNum].cells[i].style.backgroundColor=onClr2;	}}//価格-マウスアウトfunction offColorTr(thisCell){	thisCell.style.backgroundColor=offClr1;	var tblElmt=document.getElementById('matrixTable');	var tblX=tblElmt.rows[1].cells.length;	var tblY=tblElmt.rows.length;	var totalCellNum=tblX*tblY;	var thisCellNum=thisCell.parentNode.rowIndex;	for(i=1; i<tblX+1; i++){		//色を戻す		if(i<tblX+1){			tblElmt.rows[thisCellNum].cells[i].style.backgroundColor=clrTemp[i];		} else {			tblElmt.rows[thisCellNum].cells[i].style.backgroundColor=offClr2;		}	}}