function tblMember(onFocusClass,onFocusColor){ 	this.row = { 		rowClassName : "", 		cellColor : "#666", 		onfocusClass : (!onFocusClass) ? "onfocus" : onFocusClass, 		onfocusColor : (!onFocusColor) ? "#000" : onFocusColor 	}; } tblMember.prototype.onfocusInRow = function(rowObj){ 	this.row.rowClassName = (rowObj.className=="highlight") ? "normal" : rowObj.className; 	rowObj.className =this.row.onfocusClass; 	this.rowColor(rowObj,this.row.onfocusColor); }; tblMember.prototype.onfocusOutRow = function(rowObj){ 	if(rowObj.className=="highlight") return false; 	rowObj.className = this.row.rowClassName; 	this.rowColor(rowObj,this.row.cellColor); }; tblMember.prototype.focusRow= function(status,rowID){ 	var rowObj = d.getElementById(rowID); 	this.row.rowClassName = (rowObj.className=="highlight") ? "normal" : rowObj.className; 	rowObj.className =(status) ? this.row.onfocusClass : "normal"; 	if(status) this.rowColor(rowObj,this.row.onfocusColor); else this.rowColor(rowObj,this.row.cellColor); }; tblMember.prototype.rowColor = function(rowObj,colorCode){ 	for (var i=0; i<rowObj.childNodes.length; i++) { 		if(String(rowObj.childNodes[i].tagName).toUpperCase()=="TD"){ 			rowObj.childNodes[i].style.color = colorCode; 		} 	} }; var tblBox = new tblMember();