			<!-- Gets the screen position to correctly position the tooltip -->
			function acms_get_position()
			{
				if (document.body.scrollTop != undefined && navigator.appName.indexOf("Explorer") != -1 )
				{
					var res = (document.compatMode != "CSS1Compat") ? document.body : document.documentElement;
					return {x : res.scrollLeft, y : res.scrollTop};
				}
				else
				{
					return {x : window.pageXOffset, y : window.pageYOffset};
				}
			}

			<!-- Makes the tooltip visible, updates the coords and inputs text -->
			function acms_show_tooltip(event, text)
			{
				var scr = acms_get_position();
				var screen_coord_x = event.clientX + scr.x;
				var screen_coord_y = event.clientY + scr.y;
				var screen_coords_y = event.clientY + document.getElementById("acms_tooltip").offsetHeight + 20 - window.innerHeight;

				document.getElementById("acms_tooltip").style.visibility = "hidden";
				document.getElementById("acms_tooltip").innerHTML = text;
				document.getElementById("acms_tooltip").style.position = "absolute";
				document.getElementById("acms_tooltip").style.left = ( screen_coord_x + 10 ) + "px";

				if ( screen_coords_y > 0 )
				{
					document.getElementById("acms_tooltip").style.top = ( screen_coord_y - screen_coords_y ) + "px";
				}
				else
				{
					document.getElementById("acms_tooltip").style.top = ( screen_coord_y + 10 ) + "px";
				}

				document.getElementById("acms_tooltip").style.visibility = "visible";
			}

			<!-- Hides the tooltip, and resets the text -->
			function acms_hide_tooltip()
			{
				document.getElementById("acms_tooltip").style.visibility = "hidden";
				document.getElementById("acms_tooltip").innerHTML = "false";	
			}
