anchor.diff:      return true;
   }
   
  +function doValidateRuleName() {
  +
  +    var ruleValue = document.getElementsByName("ruleId")[0].value;
  +    if (ruleValue == '') {
  +        CARBON.showWarningDialog('<fmt:message key="rule.id.is.required"/>');
  +        return false;
  +    }
  +
  +    var tmp = jQuery("#dataTable tbody tr input");
  +    for (var j = 0; j < tmp.length; j++) {
  +        if((tmp[j].value == ruleValue) && (ruleValue != "<%=ruleId%>")){
  +            CARBON.showWarningDialog('<fmt:message key="rule.id.is.existing"/>');
  +            return false;
  +        }
  +    }
  +
  +    if(!ruleValue.match(new RegExp(regString))) {
  +        CARBON.showWarningDialog('<fmt:message key="rule.id.is.not.conformance"/>');
  +        return false;
  +    }
  +    return true;
  +}
  +
   function doUpdate() {
       preSubmit();
       if (doValidation()) {
  
positive.code: 
  function selectAttributesForRuleTarget(index) {
      preSubmit();
      if (doValidationPolicyNameOnly()) {
          document.dataForm.action = "update-rule.jsp?action=selectAttribute&updateRule=true&targetRuleRowIndex="
                  + index;
          document.dataForm.submit();
  
negative.code: 
  function selectAttributesForRule(index) {
      preSubmit();
      if (doValidationPolicyNameOnly() && doValidateRuleName()) {
          document.dataForm.action = "update-rule.jsp?action=selectAttribute&updateRule=true&ruleRowIndex="
                  + index ;
          document.dataForm.submit();
  