function ResizeIFrame(oFrame) {
	var Height1 = oFrame.height;
	var innerBody
	//Ref: Darren's version (that seems to work better!)
	if (oFrame && ( oFrame.contentDocument || oFrame.Document ) ) {
		try {
			innerBody = (oFrame.contentDocument) ? oFrame.contentDocument.body : oFrame.Document.body; //oFrame.contentWindow.document;
		} catch (e) {
			//alert(oFrame.name);
		}
		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;
	//alert(oFrame.id + ': ' + Height1 + '=>' + Height2);

}

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;
}

