function setFrame() {
	var myWidth = 0, myHeight = 0, iecompat = 1;
	
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
		var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
		if (ieversion>=6) {
			iecompat = 0;
		}
	}

	if (typeof( window.innerWidth ) == 'number') {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
 	} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}

	adj = 482 + 135 + 20 - 80;
	divHeight = myHeight - adj;
	if (divHeight < 270) {
		curspacer = 165;
		diff = 270 - divHeight;
		newspacer = curspacer - diff;
		if (iecompat == 1) {
			document.getElementById("spacer").style.height = newspacer + "px";
		}
		divHeight = 270;
	}
		
	if (iecompat == 1) {
		document.getElementById("iframe").style.height = divHeight + "px";
	}
	document.getElementById("maintable").style.visibility = "visible";
	
}