// JavaScript Document

function setHeight(pHeightToCompareAgainst, pHeightToSet)
{
	// Note, pHeightToCompareAgainst might be larger as you have to include padding and margins!
	// Use this alert line below to find out the height of an object
	//alert("[Height is: " + document.getElementById("primaryContentArea").offsetHeight + " ]");	

	if (document.getElementById("primaryContentArea").offsetHeight < pHeightToCompareAgainst) 
	{
		document.getElementById("primaryContentArea").style.height = pHeightToSet + "px";  // In Firefox you need to tack on "px" when you set style.height to a pixel
	}
}

