var searchTable;
var revertClass;

setSearchTable = function()
{
	searchTable = document.getElementById("searchTable");
	
	if ( searchTable && ( searchTable.className != "employerView" ) )
	{
		var trs = searchTable.getElementsByTagName("tr");
		
		for ( var i = 0; i < trs.length; i++ )
		{
			if ( trs[i].id != "headRow" )
			{
				trs[i].onmouseover = function()
				{
					revertClass = this.className;
					
					this.className = "hover"
				}
				
				trs[i].onmouseout = function()
				{
					this.className = revertClass;
				}
				
				trs[i].onclick = function()
				{
					anchors = this.getElementsByTagName("a");
					
					if ( anchors.length > 0 )
					{
						window.location = anchors[0].href;
					}
				}
			}
		}
	}
}