function writeToDiv(divObj, data)
{
	if(typeof divObj != "object") return false;
	
	if (document.all) divObj.innerHTML = data;
	else
	{
	  over = divObj;
	  range = document.createRange();
	  range.setStartBefore(over);
	  domfrag = range.createContextualFragment(data);
	  while (over.hasChildNodes()) {
	    over.removeChild(over.lastChild);
	  }
	  over.appendChild(domfrag);
	}
}

function trHoverInit()
{
	// only for IE, other browsers support :hover
	if ( navigator.appName != 'Microsoft Internet Explorer' )
		return;
	
	var rows = document.getElementsByTagName('tr');
	for ( var i = 0; i < rows.length; i++ ) {
		// only rows in table body
		//if ( 'odd' != rows[i].className && 'even' != rows[i].className ) {
		//	continue;
		//}
	    
		rows[i].onmouseover = function() {
			this.className += ' hover';
		}
		rows[i].onmouseout = function() {
			this.className = this.className.replace( ' hover', '' );
		}
	}
}
window.onload = trHoverInit;