function ResizeIFrame(oFrame) {
	var Height1 = oFrame.height;
	var innerBody
	
	try
	{
		if (oFrame && ( oFrame.contentDocument || oFrame.Document ) ) {
			try 
			{
				innerBody = (oFrame.contentDocument) ? oFrame.contentDocument.body : oFrame.Document.body; //oFrame.contentWindow.document;
			} 
			catch(err) 
			{
				//window.status = "There was an error in (iframe.js;ResizeIFrame()): " + err.description;
			}
			if (innerBody) {
				// Sometimes the offsetHeight has what we want, sometimes the scrollHeight. 
				//	Just taking the largest value seems to do the trick!
				var height = innerBody.offsetHeight > innerBody.scrollHeight ? innerBody.offsetHeight : innerBody.scrollHeight;
				oFrame.height = height;  //+ 10;
			}
		}
		parent.setTallFrames(parseInt(oFrame.height) + 10, oFrame.id);
		var Height2 = oFrame.height;
	}
	catch(err)
	{
		//window.status = "There was an error in (iframe.js;ResizeIFrame()): " + err.description;
	}
}

function UpdateIFrameSize(sFrameName) {
	var oFrame;
	try {
		oFrame = window.parent.document.getElementById(window.parent.frames[sFrameName]);
	}
	catch (e){/* If the frame content is from another My-PTA site, access is denied. */}
	if (oFrame) {
		window.parent.ResizeIFrame(oFrame.name);
	}
}

function ParentURL(sURL) {
	window.parent.location.href = sURL;
}

