function student_reward_status_toggle() {
	var box = document.getElementById('reward_status_legend');
	var table = document.getElementById('reward_status_listing');
	
	if(box != null && table != null) {
		var tgts = table.getElementsByTagName('span');
		var i;
		var coords;
		for(i=0;i<tgts.length;i++) {
			if(tgts[i].className == 'levels') {
				tgts[i].onmouseover = function(e) {
					coords = get_event_position(e);
					box.style.left = coords.x + 15 + 'px';
					box.style.top = coords.y + 5 + 'px';
					box.style.display = 'block';
				}
				tgts[i].onmouseout = function(e) {
					box.style.display = 'none';
				}
			}
		}
	}
	return false;
}
function get_event_position(e) {
	if (!e) var e = window.event;
	var posx = 0;
	var posy = 0;
	if (e.pageX || e.pageY) 	{
		posx = e.pageX;
		posy = e.pageY;
	} else if (e.clientX || e.clientY) 	{
		posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
	}
	return {x:posx,y:posy};
}
