rem: if(!(changeSettings && markAsRead && newForum && newResponse && r2R && newTopic && read && revisePostings)){ 
add: if(!(changeSettings && markAsRead && newForum && newResponse && r2R && newTopic && read && revisePostings && moderatePostings)){ 
context: function setCorrespondingLevel(checkBox){  //alert(checkBox);  var2 = checkBox.split(":");  selectLevel = getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":level");  //alert(selectLevel);  changeSettings=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":changeSetting");  //deletePostings=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":deletePostings");  //deleteAny=getDeleteAny(deletePostings);  //deleteOwn=getDeleteOwn(deletePostings);  markAsRead=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":markAsRead");  //movePosting=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":movePosting");  newForum=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":newForum");  newResponse=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":newR");  r2R=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":newRtoR");  newTopic=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":newTopic");    postGrades=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":postGrades");  // may not have a gradebook so checkbox may not be on page  // if it is, get its value, if not, set it to false  var postGradesChecked = (postGrades) ? postGrades.checked : false;        read=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":read");  revisePostings=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":revisePostings")  reviseAny=getReviseAny(revisePostings);  reviseOwn= getReviseOwn(revisePostings);  //moderatePostings=getTheElement(var2[0]+":"+ var2[1]+":"+ var2[2]+":moderatePostings");  if(selectLevel){    if(!(changeSettings && markAsRead && newForum && newResponse && r2R && newTopic && read && revisePostings)){      //alert(changeSettings + " " + markAsRead + " " + newForum + " " + newResponse + " " + r2R + " " + newTopic + " " + read  + " " + revisePostings);      setIndexWithTextValue(selectLevel, custom)    }    else{      //var newArray = [changeSettings.checked,deleteAny,deleteOwn,markAsRead.checked, movePosting.checked, newForum.checked, newResponse.checked, r2R.checked, newTopic.checked, postGrades.checked, read.checked, reviseAny, reviseOwn, moderatePostings.checked];      var newArray = [changeSettings.checked,markAsRead.checked, newForum.checked, newResponse.checked, r2R.checked, newTopic.checked, postGradesChecked, read.checked, reviseAny, reviseOwn];      //alert(newArray);      //alert(checkLevel(newArray));      setIndexWithTextValue(selectLevel, checkLevel(newArray));    }    role=getTheElement(var2[0]+":role");    //alert(role);    roleValue=role.options[var2[2]].value;    //alert(roleValue);    var lev=selectLevel.options[selectLevel.selectedIndex].text;    //alert(lev);    var newval=roleValue+" ("+lev+")";    //alert(newval);    role.options[var2[2]]=new Option(newval, roleValue, true);    role.options[var2[2]].selected=true;  }}
meta: 1235	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1235/b34b8a00fe4a393fd0e5bd098d671dc0041d9d55/permissions_header.js/clean/msgcntr/messageforums-app/src/webapp/js/permissions_header.js