window.onerror=null
function tooltip(Window_Href,Window_Name ,status, iHeight, iWidth, iScroll)
{
	if(status != 0)
	{
		if(tooltip != null)
			tooltip.focus();
		else
		{	
			if (iWidth > screen.width)
			{
				iWidth = screen.width;
				iScroll = 1;
			}
			if (iHeight > screen.height)
			{
				iHeight = screen.height;
				iScroll = 1;
			}
			var iLeft = (screen.width - iWidth) / 2;
			var iTop = (screen.height - iHeight) / 2 - 20;
			
			var sOptions = 'width=' + iWidth + ', height=' + iHeight + ', top=' + iTop + ', left=' + iLeft;
			sOptions += ', scrollbars=' + iScroll;
			sOptions += ', resizable=1';
			//sOptions += ', toolbar=no, location=no, status=no, menubar=no';
			var tooltip = window.open(Window_Href,Window_Name,sOptions);
			if(tooltip != null)
				tooltip.focus();
		}
	}
	else
	{
		if(tooltip != null)
			tooltip.close();
	}
}

