function resizeIframe(iframe, id)
{
	var th=iframe;
	setTimeout(function() { 
		var h=null;
		var tmpstr = '^#'+id+'(\\\d+)';
		var strReg = new RegExp(tmpstr);
		if (!h) if (location.hash.match(strReg)) h=RegExp.$1;
		if (!h) for (var i=30; i<10000; i+=30) if (top.frames[id+i]) {h=i;break; }
		if (h) th.style.height=(h*1+30)+'px';
	}, 10);
}

