rem: query += "&text=" + typeArea.value; 
add: query += "&text=" + encodeURIComponent(typeArea.value); 
context: 	sendChat : function(obj, e) {		var keycode;		var chatBox = obj.parentNode;		var toInput;		var toAddr;		var typeArea;		var chatArea;		var query = "cmd=sendChat";				if (window.event) keycode = window.event.keyCode;		else if (e) keycode = e.which;		else return;		if (keycode == 13) {			var inputList = chatBox.getElementsByTagName("input");						for (var i = 0; i < inputList.length ; i++) {				if (inputList[i].className) {					if (inputList[i].className.match("msg-to-input-id")) toInput = inputList[i];					if (inputList[i].className.match("msg-to-input-addr")) toAddr = inputList[i];					if (inputList[i].className.match("msg-type-area")) typeArea = inputList[i];				}			}						if (typeArea.value == "") return;						var divList = chatBox.getElementsByTagName("div");			for (var i = 0; i < divList.length ; i++) {				if (divList[i].className && divList[i].className.match("msg-chat-area")) chatArea = divList[i];			}						query += "&text=" + typeArea.value;						if (toAddr != null) {				query += "&tempId=" + toInput.value + "&toAddr=" + toAddr.value;			}			else {				query += "&toId=" + toInput.value;			}						loadPage(themeDisplay.getPathMain() + "/messaging/action", query, Messaging.sendChatReturn);						chatArea.innerHTML += "<span style='color: #0000FF'>Me: </span>" + typeArea.value + "<br/>";			typeArea.value = "";		}	},
meta: 10143	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10143/1c5cf923e77376765d5325e0b34d33bb97d043e7/messaging.js/clean/portal-web/docroot/html/js/portlet/messaging.js