/**********************************************************************************************************

	Function setIFrameHeight2 - copy of built in JS function - for some reason we need a little more height
	so this adds that
	
	Purpose:
		 to set the height of an iframe to match the contents of it's src
		 
	Info:
		To call this function, add it to the onload event handler of the <iframe /> tag, like this:
		<iframe onload="setIFrameHeight(this)" ...
	
	Parameters:
		iFrame - string id or reference to iframe

**********************************************************************************************************/
function setIFrameHeight2(iFrame) {
	if (!iFrame) return;
	if (typeof(iFrame) == 'string') iFrame = document.getElementById(iFrame);
	var extraHeight = 1;
	if (isOpera || isIE) extraHeight = 16;
	iFrame.style.height = (iFrame.contentWindow.document.body.scrollHeight + extraHeight + 15) + 'px';
	
	// hide the wait indicator
	var waitDiv = document.getElementById(iFrame.id.replace('post_frame_','post_frame_wait_'));
	if (waitDiv) waitDiv.style.display = 'none';
	
	// iframe is initially hidden...this displays it now that it's size is OK
	iFrame.style.visibility = 'visible';
}