$.fn.clickableRows = function()
{
	var rows = [];
	$(this).find('tr').each(function(idx){
		if($(this).find('a').length) {
			rows[idx] = $(this);
		}
	});
	for (var id in rows) {
		rows[id].css('cursor', 'pointer');
		rows[id].click(function(){
			document.location = rows[id].find('a:first').attr('href');
		});
	}
}

