function fadeIn(objName, transVal)
{
	obj = document.getElementById(objName);
	
	if(obj != null)
	{
		obj.style.opacity = transVal;
		obj.style.filter = 'alpha(opacity=' + transVal*100 + ')';
		
		if(transVal < 1)
			setTimeout("fadeIn('"+objName+"', "+(transVal+.1)+")", 25);
	}
}

function fadeOut(objName, transVal)
{
	obj = document.getElementById(objName);
	
	if(obj != null)
	{
		obj.style.opacity = transVal;
		obj.style.filter = 'alpha(opacity=' + transVal*100 + ')';
		
		if(transVal > 0)
			setTimeout("fadeOut('"+objName+"', "+(transVal-.1)+")", 25);
		else
			obj.style.display = 'none';
	}
}

function showMessage(objName, fadeOutDelay)
{
	obj = document.getElementById(objName);

	if(obj != null)
	{
		setTimeout("obj.style.display = 'block';", 100);
		setTimeout("fadeIn('"+objName+"', 0);", 100);

		setTimeout("fadeOut('"+objName+"', 1);", fadeOutDelay);
	}	
}
