rem: if (req.data.cancel) { res.redirect(this.href()); } else if (req.data.keyword) { 
add: if (req.postParams.keyword) { 
context: MemberMgr.prototype.create_action = function() {   if (req.data.cancel) {      res.redirect(this.href());   } else if (req.data.keyword) {      try {         var result = this.searchUser(req.data.keyword);         res.message = result.toString();         res.data.searchresult = this.renderSkinAsString("searchresult",                {result: result.obj});      } catch (err) {         res.message = err.toString();      }   } else if (req.data.add) {      try {         var result = this.evalNewMembership(req.data.username, session.user);         res.message = result.toString();         // send confirmation mail         var sp = new Object();         sp.site = result.obj.site.title;         sp.creator = session.user.name;         sp.url = result.obj.site.href();         sp.account = result.obj.user.name;         var mailbody = this.renderSkinAsString("mailnewmember", sp);         sendMail(root.sys_email, result.obj.user.email,               getMessage("mail.newMember", result.obj.site.title), mailbody);         res.redirect(result.obj.href("edit"));      } catch (err) {         res.message = err.toString();         if (err instanceof MailException)            res.redirect(result.obj.href("edit"));         res.redirect(this.href());      }   }   res.data.action = this.href(req.action);   res.data.title = getMessage("MemberMgr.searchTitle",          {siteTitle: this._parent.title});   res.data.body = this.renderSkinAsString("new");   res.handlers.context.renderSkin("page");   return;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/d46237ae5555045222f493137c5c51dbcd7b4033/MemberMgr.js/clean/code/MemberMgr/MemberMgr.js