function getTopWindow()
{
}
function initTooltip()
{
	if(window.top.helpDIV == null) {
		window.top.document.body.insertAdjacentHTML("afterBegin", "<iframe id=tooltipFrame name=tooltipFrame src='javascript:parent.buildHelpFrame(document);' marginheight=0 frameborder=0 style=\"z-index:1000;border:1px solid gray;visibility:hidden;position:absolute;left:30;top:50\"></iframe>");
		return;
	}
}
function displayHelp(el, text)
{
	var tmp = window.top;
	//alert("wt="+window.top+" hDIV="+window.top);
	if(tmp.helpDIV == null) {
		initTooltip();
		return;
	}
	//	addLine("onOverText "+window.event.altKey+","+el.editable+","+el.tagName+":"+el.outerText+",left="+el.offsetLeft);
	var helpFrame = tmp.document.all.tooltipFrame;
	helpFrame.style.left = window.event.screenX-tmp.screenLeft;
	helpFrame.style.top = window.event.screenY-tmp.screenTop;
	tmp.helpDIV.innerHTML = text;
	helpFrame.style.height = tmp.helpDIV.offsetHeight;
	helpFrame.style.width = tmp.helpDIV.offsetWidth;
	helpFrame.style.visibility = "visible";
	window.onunload = hideHelp;
	return;
}
function hideHelp()
{
	if(window.top.document.all.tooltipFrame)
		window.top.document.all.tooltipFrame.style.visibility = 'hidden';
}
