	function PageSwitch(link)
	{	
		document.getElementById("BodyFrame").src=link;
		PreResize();
	}
	function PreResize() //Called by the body onLoad function to ensure pages are resized properly even if someone refreshes the page
	{
		document.getElementById("BodyFrame").height = 350; // This is a fairly poor fix to the resize issue that only seems to display properly in IE8
		setTimeout( "Resize();", 350); // A pause is used in place of a more complicated preloading procedure. Hopefully 350ms is enough time for most pageloads
		//This may not be required....
	}
	function Resize()
	{
		var frameHeight = document.getElementById("BodyFrame").contentWindow.document.body.scrollHeight;
		document.getElementById("BodyFrame").height = frameHeight;
		//alert(frameHeight);
	}