function enableMo(id) {

	var tbl = document.getElementById(id);

	//run through every table row
	for ( var c = 0; c < tbl.rows.length; c++ ) {

		var cells = tbl.rows[c].cells;

		for ( var d = 0; d < cells.length; d++ ) {
			cells[d].onmouseover = function() { mCell(this,tbl) };
		}//for

	}//for

}//enableMo

function mCell(scell,tbl) {

	var row = scell.parentNode.rowIndex;
	var cell = scell.cellIndex;

	for ( var c = 0; c < tbl.rows.length; c++ ) {

		var cells = tbl.rows[c].cells;

		for ( var d = 0; d < cells.length; d++ ) {

			if( c == row && d == cell ) cells[d].style.backgroundColor = "#ccf";
			else if ( c == row) cells[d].style.backgroundColor = "#eef";
			else if ( d == cell) cells[d].style.backgroundColor = "#eef";
			else cells[d].style.backgroundColor = "#fff";

		}//for

	}//for

}//mCell
            

