	//todo: test in other browsers

	function adjustHeights(){
		
		getViewportDims(); // this is in viewport.js and sets global variables		 
		//alert(document.getElementById('centerWrap').clientHeight);
		//alert(viewportheight);
		// set the size of the centerWrap which allows keeps the footer from being off the bottom of the page
		// in smaller windows		
		viewportheight +=  ifornofooter; //in case leave out footer for xtra vert RE
		if(viewportheight>600)	{
			document.getElementById('centerWrap').style.height = (viewportheight-165) + "px";
			document.getElementById('mainContentWrap').style.height = (viewportheight-165) + "px";
			//alert(document.getElementById('centerWrap').clientHeight);
		}
	}
	
	function initPage(){	
		ifornofooter=0;
		window.onresize =  adjustHeights;		
		adjustHeights(); // call it when the page originally loads 
		if(document.getElementById('getMeFocus'))
			document.getElementById('getMeFocus').focus();
		
	}

	function initPageNoFooter(){	
		ifornofooter=20; // not the actual footer's height in this case zero, but how much to add to scroll bar
		window.onresize =  adjustHeights;		
		adjustHeights(); // call it when the page originally loads 
		if(document.getElementById('getMeFocus'))	
			document.getElementById('getMeFocus').focus();
	}

