rem: currentRequest = createRequestObject(); currentRequest.onreadystatechange = processSetup; currentRequest.open( "GET", "/command/setup" ); currentRequest.send( null ); 
add: new Ajax.Request( "/command/setup", { method: "get", onSuccess: function( transport ) { var xml = transport.responseXML; var children = xml.documentElement.getElementsByTagName( "panels" ).item( 0 ).childNodes;  for( var i = 0; i < children.length; ++i ) ChatController.createPanel( children[i] );  ChatController.checkActivity(); activityCheckInterval = setInterval( ChatController.checkActivity, activityCheckSpeed ); }, onException: function( transport, exception ) { throw exception; } } ); 
context: function setup() {	document.body.addEventListener( "keypress", documentKeyInput, true );	document.getElementById( "input" ).addEventListener( "keypress", inputKeyPressed, false );	document.body.addEventListener( "blur", windowBlured, false );	document.body.addEventListener( "focus", windowFocused, false );	currentRequest = createRequestObject();	currentRequest.onreadystatechange = processSetup;	currentRequest.open( "GET", "/command/setup" );	currentRequest.send( null );}
meta: 7556	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7556/09442003b6111b027a140c1f3383c1a924b1fa3f/common.js/buggy/Plug-Ins/Web Interface/Resources/common.js