
function enhancedTable(id) {
	var table = document.getElementById(id);
	if (! table ) return;
	var rows = table.getElementsByTagName('tr'); 
	if (! rows ) return;
	for(var i=0; i<rows.length; ++i) {
		if (rows[i].getElementsByTagName("th").length == 0) 
			rows[i].className = ( i%2==0 ) ? "" : "alt";
			
		rows[i].onmouseover = function() {this.className = this.className+' highlight';}
		rows[i].onmouseout = function() {
			if ( this.className.indexOf('alt') >= 0 ) this.className = 'alt';
			else this.className = '';
		}
	}
}
/*
function updatePageBG(color) {
document.getElementsByTagName('body')[0].style.backgroundColor = color;
//alert(id+":color="+color+":htmlBGColor="+htmlBGColor);
	//document.getElementById(id).style.backgroundColor = color;
	//Rounded("div#"+id, htmlBGColor, color, RCorners.X, RCorners.Y);
	
	//Rounded("div#mainCorners", htmlBGColor, color, 8, 8);
	//document.getElementById('mainCorners').style.backgroundColor = color;

}*/
function updateBG(id, color) {
//alert(id+":color="+color+this);
	document.getElementById(id).style.backgroundColor = color;
	return false;
}


