Code
<div id="msg1" style="display:none"></div>
<div id="msg2" style="display:none"></div>
$CHAT_BOX$
<script type="text/javascript">$('input[name="custom1"]').val('$GROUP_ID$').hide();</script>
<script>
function check() {
$("#msg2").load("/mchat #msg1");
setTimeout('if($("#msg2").html()!=$("#msg1").html())'
+'{document.getElementById("mchatIfm2").src="/mchat/?"+Math.random();'
+'$("#msg1").html($("#msg2").html());}',200);}
$("#msg1").load("/mchat #msg1");
$("#msg2").load("/mchat #msg1");
setInterval('check()',350);
</script>
У меня такое стоит.