
function makeFit() {
 //Script to make sure all divs flow with the content of the page
 var pContent = document.getElementById('pContent');
 var lNav = document.getElementById('leftNav');
 var rNav = document.getElementById('rightNav');
 var cheight = pContent.offsetHeight;	//Height of content div
 var lheight = lNav.offsetHeight;	//Height of left nav
 var rheight = rNav.offsetHeight;	//Height of right nav

 nmax = Math.max(lheight,rheight);
 mheight = Math.max(nmax,cheight);

 //Now set heights on all divs the same
 pContent.style.height = mheight+"px";
 lNav.style.height = mheight+"px";
 rNav.style.height = mheight+"px";
}
