function SelectableConvertRowsToLinks(xTableId)
{
	var table = document.getElementById(xTableId);
	
	if( table!=null )
	{
		var rows = table.getElementsByTagName("tr");

		for (i=0; i<rows.length; i++)
		{
			var link = rows[i].getElementsByTagName("a")
			if (link.length == 1)
			{
				rows[i].onmouseover = new Function ("this.className='highlight'");
				rows[i].onmouseout = new Function ("this.className=''");

				var cols = rows[i].getElementsByTagName("td");

				for(j=1; j<cols.length; j++)
				{
					cols[j].onclick = new Function ("document.location.href='" + link[0].href + "'");
				}
			}
		}
	}
}

function ConvertRowsToLinks(xTableId)
{
	var table = document.getElementById(xTableId);
	
	if( table!=null )
	{
		var rows = table.getElementsByTagName("tr");

		for (i=0; i<rows.length; i++)
		{
			var link = rows[i].getElementsByTagName("a")
			if (link.length == 1)
			{
				rows[i].onmouseover = new Function ("this.className='highlight'");
				rows[i].onmouseout = new Function ("this.className=''");
				rows[i].onclick = new Function ("document.location.href='" + link[0].href + "'");
			}
		}	
	}
}