/*
DOESN'T WORK WHEN IFRAME CONTENT FROM DIFFERENT DOMAIN - LEADS TO ACCESS DENIED ERRORS
function resizeIframeHeight(elmnt)
{
	var h;
	if (elmnt.contentDocument) {
		h = elmnt.contentDocument.body.scrollHeight;
	} else {
		h = document.frames(elmnt.id).document.body.scrollHeight;
	}
	elmnt.style.height = h +'px';
}
*/

// IE requires iframe to have id for JS resizing
// To prevent duplicate ids, when there are multiple iframes on the same page, we increment the old value
if (geId) {
	geId++;
} else {
	var geId = 1;
}
var id = "geFrame" + geId;

document.write('<iframe id="' + id + '" src="' + geIframeUrl + '" scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" allowtransparency="true" style="height:' + geIframeHeight + 'px;"></iframe>');