﻿// JScript File
function ToolTip$showTip(elid, isBlock)
{
	var el = ToolTip$getElementById(elid);
	if(el !== undefined && el !== null)
	{
		if(isBlock && isBlock === true)
		{
			el.style.display = 'block';
		}	
		else
		{
			el.style.display = 'inline';
		}
		el.style.visibility = 'visible';
	}
	return true;
}

function ToolTip$hideTip(elid)
{
	var el = ToolTip$getElementById(elid);
	if(el !== undefined && el !== null)
	{
		el.style.display = 'none';
		el.style.visibility = 'hidden';
	}
	return true;
}

function ToolTip$getElementById(elid)
{
	var el;  
	if( document.getElementById ) // this is the way the standards work    
		el = document.getElementById( elid );  
	else if( document.all )  // this is the way old msie versions work     
		el = document.all[elid];  
	else if( document.layers ) // this is the way nn4 works    
		el = document.layers[elid];  
	return el;
}