+ var info_in = JSON.parse(server_request('mesg', 'chatt|/info ' + username));
+ var info = null;
+
+ if (info_in.ret == 0) {
+ var fields = { login: { type: 'value' },
+ state: { type: 'value' },
+ guar: { type: 'value' },
+ match: { type: 'value' },
+ game: { type: 'value' },
+ friend: { type: 'radio' },
+ skill: { type: 'radio' },
+ trust: { type: 'radio' }
+ };
+
+ info = new Fieldify($('info'), fields);
+ info.populate(info_in);
+ info.visible(true);
+ }
+ else {
+ console.log("some error: open a dialog");
+ }