rem: var objDiv = document.getElementById("chatListWrapper"); 
add: var objDiv = document.getElementById("Monitor"); 
context: function appendMessage(uname, uid, removeable, pdate, ptime, msg, msgId){	var undefined;	var position = 100000, docheight = 0, frameheight = 300;	  	var transcript = document.getElementById("topForm:chatList");		// compose the time/date according to user preferences for this session	var msgTime = "";	if(window.display_date && window.display_time)	{		msgTime = " (" + pdate + " " + ptime + ") " ;	}	else if (window.display_date)	{		msgTime = " (" + pdate + ") " ;	}	else if(window.display_time)	{		msgTime = " (" + ptime + ") " ;	}		var newDiv = document.createElement('li');	var color = ColorMap[uid];	if(color == null)	{		color = Colors[nextColor++];		ColorMap[uid] = color;		if(nextColor >= numColors)		{			nextColor = 0;		}	}		var deleteHtml = "";	if (removeable == "true")	{		newComponentId = $(transcript).children("li").size();		var builtId = "topForm:chatList:" + newComponentId + ":deleteMessage";		deleteUrl = "document.forms['topForm']['topForm:_idcl'].value='" + builtId + "'; document.forms['topForm'].submit(); return false;";		deleteHtml = 			" <a id=\"" + builtId + "\" href=\"#\" onclick=\"" + deleteUrl + "\" title=\"" + deleteMsg + "\" >" +			"<img src=\"/library/image/sakai/delete.gif\" border=\"0\" alt=\"" + deleteMsg + "\" /></a>";	}	newDiv.innerHTML = '<span style="color: ' + color + '">' + uname + '</span>'		+ deleteHtml		+ '<span class="chatDate">' + msgTime + '</span>'		+ escapeHTML(msg);	transcript.appendChild(newDiv);	// adjust scroll	var objDiv = document.getElementById("chatListWrapper");   objDiv.scrollTop = objDiv.scrollHeight;	//Force a refresh of the content (doesn't actually reload the page)   $.ajax({type: "GET", url: location.href, data: ""});}
meta: 1235	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1235/469fabdad4a112f876059c14fcdf7f5d1406764e/chatscript.js/clean/chat/chat-tool/tool/src/webapp/js/chatscript.js