﻿function InitializePage(){
			setTimeout("iframeResize()", 1);
			setTimeout("iframeResize()", 5000);
		}
		function iframeResize() {
			var IFrame = window.frames.contentFrame;
			var dims = { };
			var oFrame = document.getElementById('contentFrame')
			if (typeof IFrame.innerHeight != 'undefined') {
				dims.windowHeight = IFrame.innerHeight;
				dims.documentHeight = IFrame.document.height;
				oFrame.style.height = dims.documentHeight + dims.windowHeight - IFrame.innerHeight + 100;
				}
			else if (IFrame.document.body && typeof IFrame.document.body.offsetWidth != 'undefined') {
				var doc = IFrame.document;
				if (doc.compatMode && doc.compatMode != 'BackCompat') {
					dims.windowHeight = doc.documentElement.offsetHeight;
					dims.documentHeight = doc.documentElement.scrollHeight;
					oFrame.style.height = dims.documentHeight + dims.windowHeight-doc.body.clientHeight  + 100; 
				}
				else {
					dims.windowHeight = doc.body.offsetHeight;
					dims.documentHeight = doc.body.scrollHeight;
					oFrame.style.height = dims.documentHeight + dims.windowHeight-doc.body.clientHeight  + 100;
				}
			}
		}