Pager.prototype.goReflect = function(params) { var self = this; this.execApi('/NET_UII_Reflect.json', params, function(response) { self.pageInfo = response.pageInfo; var pageInfo = response.pageInfo; if(pageInfo.mode == "JBS0070_ERROR"){ self.goJBS0070(self.getJBS0070Errorparam()); return false; } self.goJBS0070(self.getJBS0070Afterparam()); }); }; Pager.prototype.getJBS0070Afterparam = function(params) { return { "MODE" : "PORTAL_LOGIN_SENI" }; }; Pager.prototype.getJBS0070Errorparam = function(params) { return { "MODE" : "JBS0070_ERROR" }; };