rem: error: function(type, data){  } }  if (populateUsername){ cosmo.cmp.cmpProxy.getUser(populateUsername, handlerDict); } else { cosmo.cmp.cmpProxy.getAccount(handlerDict); } }, 
add: var handlerDict = { handle: function(type, data, evt){  if (evt.status == 200){  var cmpXml = evt.responseXML  var user = cmpXml.getElementsByTagName("user")[0]  var firstName = user.getElementsByTagName("firstName")[0].firstChild.nodeValue var lastName = user.getElementsByTagName("lastName")[0].firstChild.nodeValue var username = user.getElementsByTagName("username")[0].firstChild.nodeValue var email = user.getElementsByTagName("email")[0].firstChild.nodeValue var dateCreated = user.getElementsByTagName("created")[0].firstChild.nodeValue var dateModified = user.getElementsByTagName("modified")[0].firstChild.nodeValue var administrator = (user.getElementsByTagName("administrator").length > 0)  self.editingUsername = username  form = self.form;  form.username.value = username;  form.firstName.value = firstName; form.lastName.value = lastName; form.email.value = email;  form.admin.checked = administrator;  overlord = (username == cosmo.env.OVERLORD_USERNAME) form.username.disabled = overlord; form.firstName.disabled = overlord; form.lastName.disabled = overlord; form.admin.disabled = overlord;   } else if (evt.status == 404){ alert("User does not exist"); } }  }  if (populateUsername){ cosmo.cmp.cmpProxy.getUser(populateUsername, handlerDict); } else { cosmo.cmp.cmpProxy.getAccount(handlerDict); } }, 
context:     	populateFields : function(populateUsername){    		// username only needed if logged in as administrator    	    		var self = this;    		    		var handlerDict = {				load: function(type, data, evt){		    			    		user = {username : data.username[0].value,							firstName : data.firstname[0].value,							lastName : data.lastname[0].value,							email : data.email[0].value					}					if (data.administrator) {						user.administrator = true;					}		    			    		self.editingUsername = user.username		    			    		form = self.form;		    		form.username.value = user.username;								form.firstName.value = user.firstName;					form.lastName.value = user.lastName;					form.email.value = user.email;										form.admin.checked = user.administrator;										overlord = (user.username == cosmo.env.OVERLORD_USERNAME)					form.username.disabled = overlord;					form.firstName.disabled = overlord;					form.lastName.disabled = overlord;					form.admin.disabled = overlord;		    				    	},				error: function(type, data){					// error code for get				}			}						if (populateUsername){   				cosmo.cmp.cmpProxy.getUser(populateUsername, handlerDict);    		} else {				cosmo.cmp.cmpProxy.getAccount(handlerDict);    		}    	},
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/778ab23dab95034799a0f6fb7eb0756aadc5a3b3/ModifyUserDialog.js/clean/src/webapp/js/cosmo/ui/widget/ModifyUserDialog.js