function isCapableBrowser()
{
	if( (navigator.appVersion.indexOf("MSIE") != 0) && (navigator.appVersion.substring(0, 2) != "3."))
		return(true);
	else
		return(false);
}



var cancelHelp = false;
if(isCapableBrowser())
{
	document.onmousemove = detectHelp;
}

function detectHelp()
{
	if(isCapableBrowser() && !cancelHelp)
	{
		if((event.srcElement.helpTextAttr != "") && (event.srcElement.helpTextAttr != null))
		{
			if(helpObj = document.all["helptext"])
			{
				helpObj.innerHTML = "<nobr>" +event.srcElement.helpTextAttr + "</nobr>";
				helpWidth = helpObj.style.width;
				helpHeight = helpObj.style.height;
				yCoord = event.clientY + document.body.scrollTop + 10;
				xCoord = event.clientX + document.body.scrollLeft + 16;
				if(document.body)
				{
					yCoord = (yCoord > document.body.clientHeight + document.body.scrollTop - 40) ? yCoord - 16 : yCoord;
					xCoord = (xCoord > document.body.scrollWidth + document.body.scrollLeft - 340) ? xCoord - 270 : xCoord;
				}
				helpObj.style.top = yCoord;
				helpObj.style.left = xCoord;
				helpObj.style.visibility = "visible";
			}
		}
		else
		{
			if(helpObj = document.all["helptext"])
			{
				helpObj.style.visibility = "hidden";
				helpObj.style.top = -200;
				helpObj.style.left = -200;
			}
		}	
	}
}
