rem: addUnloadEvent(Messaging.onPageUnload);this.mainDiv=mainDiv;this.initialized=true;Messaging.getChats();},onPageUnload:function(){loadPage(themeDisplay.getPathMain()+"/messaging/action","cmd=unload");},removeChat:function(obj){function findChatBox(obj){if(!obj)return null;if(obj.id&&obj.id.match("msg-chat-box")){return obj;} 
add: addEventHandler(window,"onunload",Messaging.onPageUnload);this.mainDiv=mainDiv;this.initialized=true;Messaging.getChats();},onPageUnload:function(){Ajax.request(themeDisplay.getPathMain()+"/messaging/action?cmd=unload",{reverseAjax:true});},removeChat:function(obj){function findChatBox(obj){if(!obj)return null;if(obj.id&&obj.id.match("msg-chat-box")){return obj;} 
context: addUnloadEvent(Messaging.onPageUnload);this.mainDiv=mainDiv;this.initialized=true;Messaging.getChats();},onPageUnload:function(){loadPage(themeDisplay.getPathMain()+"/messaging/action","cmd=unload");},removeChat:function(obj){function findChatBox(obj){if(!obj)return null;if(obj.id&&obj.id.match("msg-chat-box")){return obj;}else{return(findChatBox(obj.parentNode));}}var chatBox=findChatBox(obj);if(chatBox){chatBox.parentNode.removeChild(chatBox);}this.saveCookie();},saveCookie:function(){var cookieDiv=document.createElement("div");cookieDiv.appendChild(this.mainDiv.cloneNode(true));Cookie.create(this.userId+"_chats",encodeURIComponent(cookieDiv.innerHTML),99);},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];}}
meta: 10143	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10143/25b685866d385ec9ed69e539f12f812b06d4887e/everything.js/buggy/portal-web/docroot/html/js/everything.js