function highlightTableRows(tableId) {
	var previousClass = null;
	var table = document.getElementById(tableId);
	var tbody = table.getElementsByTagName("tbody")[0];
	var rows = tbody.getElementsByTagName("tr");
	// add event handlers so rows light up and are clickable
	for (i=0; i < rows.length; i++) {
		rows[i].onmouseover = function() { previousClass=this.className;this.className+=' mouseover' };
		rows[i].onmouseout = function() { this.className=previousClass };
		rows[i].onclick = function() {
			var cell = this.getElementsByTagName("td")[0];
			if (cell.getElementsByTagName("a").length > 0) {
				var link = cell.getElementsByTagName("a")[0];
				if (link.onclick) {
					call = link.getAttributeValue("onclick");
					// this will not work for links with onclick handlers that return false
					eval(call);
				} else {
					location.href = link.getAttribute("href");
				}
				this.style.cursor="wait";
			}
		}
    }

	// Add tooltips to sortable  column headers
	/*
	var headers = table.getElementsByTagName("th");
	for (i=0; i < headers.length; i++) {
		var header = headers[i];
		if (header.className && header.className != null) {
			if (header.className.indexOf("sortedColumn")!=-1) {
				header.onmouseover = function() { ddrivetip("Click to change the sorting order (ascending or descending)", "auto") };
				header.onmouseout = function() { hideddrivetip() };
			} else if (header.className.indexOf("sortableColumn")!=-1) {
				header.onmouseover = function() { ddrivetip("Click to sort by this column", "auto") };
				header.onmouseout = function() { hideddrivetip() };
			}
		}
    }
    */
	
}

