anchor.diff:                      $('.ui-dialog-buttonpane button:contains(Cancel)').attr("id", "dialog-confirm_cancel-button");
                       $('#dialog-confirm_cancel-button').html(cancelButton);
                   }
  -
  -
  +                
  +                
                   jQuery('.ui-dialog-titlebar-close').click(function () {
                       jQuery('#dialog').dialog("destroy").remove();
                       jQuery("#dcontainer").empty();
                       jQuery("#dcontainer").html('');
                   });
  -
  +                
               };
               if (!pageLoaded) {
                   jQuery(document).ready(func);
               } else {
                   func();
               }
  -
  +            
               function isHTML(str) {
                   var a = document.createElement('div');
                   a.innerHTML = str;
  -
  +                
                   for (var c = a.childNodes, i = c.length; i--;) {
                       if (c[i].nodeType == 1) return true;
                   }
  -
  +                
                   return false;
               }
           }
  -
  +        
           var cursorCoordsBeforeChange, cursorCoordsAfterChange, mark, startLine;
           var doc = myCodeMirror.getDoc();
           var editorContent = doc.getValue();
  -
  +        
           myCodeMirror.on("change", function (instance, ch) {
               cursorCoordsAfterChange = myCodeMirror.coordsChar(myCodeMirror.cursorCoords());
  -
  +            
           });
           myCodeMirror.on("beforeChange", function (instance, changeObj) {
               cursorCoordsBeforeChange = myCodeMirror.coordsChar(myCodeMirror.cursorCoords());
  
positive.code:                         errorCount++;
                      }
                  }
  
                  if (errorCount > 0) {
                      CARBON.showConfirmationDialog('This script will not be evaluated since is has Errors, But it will be saved. ' +
                          'Do you want to continue? ',
  
negative.code:             $(jQuery('#permissionAddTable')).toggle();
          }
      }
      
      function deleteStep(obj) {
          
          var currentStep = parseInt($(obj).parent().find('input[name="auth_step"]').val());
          var subjectStep = $('#step_dev_' + currentStep).find('#subject_step_' + currentStep).prop("checked");
          var attributeStep = $('#step_dev_' + currentStep).find('#attribute_step_' + currentStep).prop("checked");
  