function MessageFormat(){}MessageFormat={'lstFormat':new Array(),'addFormat':function(a,b){MessageFormat.lstFormat[a]=b},'format':function(a,b){return MessageFormat.lstFormat[a](b)}};MessageFormat.addFormat("msg",function(a){return"&lt;<b>"+a.from+"</b>&gt; "+a.data+"<br />"});MessageFormat.addFormat("privmsg",function(a){return"&lt;<b>"+a.from+"</b>&gt; "+a.data+"<br />"});