anchor.diff:  	{
   				
   				// Check whether category exists
  +				//alert (ruleCount);
   				var columns = $('rule-'+(ruleCount + 1)+'-columns');
   				
   				//alert(columns.childNodes.length);
  
positive.code: 																					    	sel.options[index].selected=true;
  																					    }
  																					    
  																		               })
  																		        
  																	           })
  																	</script>
  
  
  						</c:when>
  					
  						<c:when
  							test='${command.ruleSet.rule[ruleCount].condition.column[columnCount].fieldConstraint[0].fieldName eq "term"}'>
  
  
  
  							<script type="text/javascript">
  												// force 1sec delay for ajax to make sure categories are loaded.. this is just  TEMP FIX 
  											   setTimeout("loadTermsBasedOnCategory()",1000);	
  
  
  												function loadTermsBasedOnCategory() {
  
  																		var newId = 'ruleSet.rule[' + ${ruleCount} + '].condition.column[' + ${columnCount} + '].fieldConstraint[0].literalRestriction[0].value'; 
  
negative.code: 
  </head>
  <body>
  <c:forEach varStatus="ruleStatus" items="${command.ruleSet.rule}">
  	<c:set var="ruleCount" value="${ruleStatus.index}" />
  	<c:forEach varStatus="columnStatus" begin="0"
  					items="${command.ruleSet.rule[ruleCount].condition.column}">
  					<c:set var="columnCount" value="${columnStatus.index}" />
  		<c:if test='${command.ruleSet.rule[ruleCount].condition.column[columnCount].fieldConstraint[0].fieldName eq "category"}'>
  			<script>
  				isCategorySelected = true; 
  			</script>
  			
  		</c:if>
  	</c:forEach>
  </c:forEach>
  <script>
  	if (isCategorySelected) {
  		checkCategories();
  	}
  </script>
  
  <p id="instructions">Rules can be added by using the Add Rule
  button. Rules created will belong to the selected RuleSet.</p>
  
  