{ 
{ 
function displayUsersAndGroups( row, i, table ){   var userurl = row.userurl;  var uorg = table.json.uorg;  var allows = row.allows;  var denys = row.denys;  var saveUrl = "?xpage=saverights&clsname=" + table.json.clsname + "&fullname=" + row.fullname + "&uorg=" + uorg;    var objs = new Array(); //array with checkboxes objects  var tr = document.createElement('tr');   if(i % 2 == 0) tr.className = "even";  else tr.className = "odd";    var username = document.createElement('td');  if(row.wikiname == "local")  {    var a = document.createElement('a');    a.href = userurl;    a.appendChild( document.createTextNode( row.username ) );    username.appendChild( a );  }  else    username.appendChild( document.createTextNode( row.username ) );    username.className = "usersorgroupsnames";  tr.appendChild(username);  var view = document.createElement('td');  view.className = "rights";  var r = 0;  if(allows.indexOf("view") >= 0) r = 1;  else if(denys.indexOf("view") >= 0) r = 2;  var chbx1 = new MSCheckbox(view, "view", saveUrl, r);  tr.appendChild(view);          var comment = document.createElement('td');  comment.className = "rights";  r = 0;  if(allows.indexOf("comment") >= 0) r = 1;  else if(denys.indexOf("comment") >= 0) r = 2;  var chbx2 = new MSCheckbox(comment, "comment", saveUrl, r);  tr.appendChild(comment);          var edit = document.createElement('td');  edit.className = "rights";  r = 0;  if(allows.indexOf("edit") >= 0) r = 1;  else if(denys.indexOf("edit") >= 0) r = 2;  var chbx3 = new MSCheckbox(edit, "edit", saveUrl, r);  tr.appendChild(edit);          var del = document.createElement('td');  del.className = "rights";  r = 0;  if(allows.indexOf("delete") >= 0)  r = 1;  else if(denys.indexOf("delete") >= 0) r = 2;  var chbx4 = new MSCheckbox(del, "delete", saveUrl, r);  tr.appendChild(del);          if(table.json.reg == true)  {    var register = document.createElement('td');    register.className = "rights";    r = 0;    if(allows.indexOf("register") >= 0)  r = 1;    else if(denys.indexOf("register") >= 0) r = 2;    var chbx5 = new MSCheckbox(register, "register", saveUrl, r);    tr.appendChild(register);  }          if(table.json.admin == true)  {    var admin = document.createElement('td');    admin.className = "rights";    r = 0;    if(allows.indexOf("admin") >= 0) r = 1;    else if(denys.indexOf("admin") >= 0) r = 2;    var chbx6 = new MSCheckbox(admin, "admin", saveUrl, r);    tr.appendChild(admin);  }          if(table.json.progr == true)  {    var progr = document.createElement('td');    progr.className = "rights";    r = 0;    if(allows.indexOf("programming") >= 0) r = 1;    else if(denys.indexOf("programming") >= 0) r = 2;    var chbx7 = new MSCheckbox(progr, "programming", saveUrl, r);    tr.appendChild(progr);  }          return tr;}
6184	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6184/7f8edf183c7666118509add04ed3efd39776e3bf/usersandgroups.js/buggy/xwiki-platform-web/standard/src/main/webapp/skins/albatross/usersandgroups.js