function toggleHelpLayer(helpTextId, helpId, visibility) {
	var helpTextObj = document.getElementById(helpTextId);
	var helpBtn = document.getElementById(helpId);
	
	if (helpTextObj) {
		if (visibility == "visible") {
			var x, y;
			
			if (helpBtn.x != undefined) {
				x = helpBtn.x;
				y = helpBtn.y;
			}
			else {
				x = window.event.x;
				y = window.event.y;
			}

			//window.alert("x=" + x + ", y=" + y);
			helpTextObj.style.left = x + 20 + "px";
			helpTextObj.style.top = y + "px";
				
		}
		helpTextObj.style.display = visibility ? "inline" : "none";
		helpTextObj.style.visibility = visibility;
	}
}