function setFrameHeight(frameName,height,width)
{
	document.all(frameName).height = height;

	if(width != "" && width != null && width > 0)
	{
		document.all(frameName).width = width;
	}
}

var cur_obj,cu_fname;

function changeSize(obj,fname)
{
	cur_obj = obj;
	cu_fname = fname;
	if(cu_fname.document.body.scrollHeight > 0)
		setFrameH();
	else
		setTimeout("setFrameH()",2000);
}

function setFrameH()
{
	cur_obj.height = cu_fname.document.body.scrollHeight;
}