function SetMaximumSize(me, iWidth, iHeight)
{			
	if ( me.clientWidth > iWidth )
	{
		me.style.width = iWidth + 'px';
	}
	if ( me.clientHeight > iHeight )
	{
		me.style.height = iHeight + 'px';
	}  
}	

