rem: if (special=='true') chat.innerHTML += "<span class=\"alert\"><span class=\"from\">"+from+"&nbsp;</span><span class=\"text\">"+text+"</span></span><br/>"; else chat.innerHTML += "<span class=\"from\">"+from+"&nbsp;</span><span class=\"text\">"+text+"</span><br/>"; chat.scrollTop = chat.scrollHeight - chat.clientHeight; 
add: if(chat != null) { if (special=='true') chat.innerHTML += "<span class=\"alert\"><span class=\"from\">"+from+"&nbsp;</span><span class=\"text\">"+text+"</span></span><br/>"; else chat.innerHTML += "<span class=\"from\">"+from+"&nbsp;</span><span class=\"text\">"+text+"</span><br/>"; chat.scrollTop = chat.scrollHeight - chat.clientHeight; }  
context:   _chat: function(message)  {     var chat=$('chat');     var from=message.getAttribute('from');     var special=message.getAttribute('alert');     var text=message.childNodes[0].data;     if ( special!='true' && from == room._last )         from="...";     else     {         room._last=from;         from+=":";     }          if (special=='true')       chat.innerHTML += "<span class=\"alert\"><span class=\"from\">"+from+"&nbsp;</span><span class=\"text\">"+text+"</span></span><br/>";     else       chat.innerHTML += "<span class=\"from\">"+from+"&nbsp;</span><span class=\"text\">"+text+"</span><br/>";     chat.scrollTop = chat.scrollHeight - chat.clientHeight;       },
meta: 9683	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9683/e2c901f0458c3c519baa7ca3fa1d9568635a7603/chat.js/clean/tags/jetty-6.1.0/examples/test-webapp/src/main/webapp/chat/chat.js