<!--
function trim( str )
{
	return str.replace(/^\s*/,'').replace(/\s*$/,'');
}

function onChangeFrameState( frame )
{
	var onLoadObj = document.getElementById("onLoadFrame");
	if (onLoadObj && frame.contentWindow.location.host != '')
	{
		//onLoadObj.style.display = 'none';
		//frame.style.height = '100%';
		var visible = true;
		if (!frame.readyState) visible = false; // For Firefox and Opera
		
		if (frame.readyState == 'complete' && frame.contentWindow.location.host != '')
			visible = false;
			
		if (!visible) frame.style.height = '100%';
		onLoadObj.style.display = (visible)? '': 'none';
	}
}
// -->

