function checkHeight()
{
	var primaryHeight=document.getElementById('primary').clientHeight;
	var secondaryHeight=document.getElementById('secondary').clientHeight;
	//alert(primaryHeight+","+secondaryHeight);
	if(secondaryHeight>primaryHeight)
	{
		document.getElementById('primary').style.height=secondaryHeight+'px';
	}
}

window.onload=function() {checkHeight();}