anchor.diff:  			     <%
   			     
   
  -                   String checkbox_name = "checkbox" + idx1_str;
  +                   
  +                   
  +                   String checkbox_size_name = "checkbox_size_" + idx1_str;
  +                   String checkbox_size_value =  new Integer(selected_matches.size()).toString();
  +                   
  + %>                  
  +     <input type="hidden" name="checkbox_size_name" id="checkbox_size_name" value="<%=checkbox_size_value%>" />
  + <%                  
  +                   
  +                   
   		   for (int lcv2=0; lcv2<selected_matches.size(); lcv2++) {
   		   
   		         String rel_id = "rel" + "_" + lcv + "_" + lcv2;
   		         String score_id = "score" + "_" + lcv + "_" + lcv2;
   		         
  +		         String checkbox_name = "checkbox" + "_" + lcv + "_" + lcv2;
   		   
   		         String idx2_str = new Integer(lcv2).toString();
   
  
positive.code: 		</a>
  		
          &nbsp;
          
  		<a href="#">
  		   <img src="<%= request.getContextPath() %>/images/checkAll.gif" width="18" height="18" alt="Check All" border="0">
  		</a>
          
          &nbsp;
          
  		<a href="#">
  		   <img src="<%= request.getContextPath() %>/images/uncheckAll.gif" width="18" height="18" alt="Uncheck All" border="0">
  		</a>        
          
          &nbsp;&nbsp;&nbsp;
          
  
negative.code:   <script type="text/javascript" src="<%= request.getContextPath() %>/js/script.js"></script>
    <script type="text/javascript" src="<%= request.getContextPath() %>/js/search.js"></script>
    <script type="text/javascript" src="<%= request.getContextPath() %>/js/dropdown.js"></script>
    
    
    <script type="text/javascript">
    
  	function checkAll() {
  	
  	alert("checkAll");
  	
  	    var size = document.getElementById("size");
        	    var size_str = size.value;
  	    var m = parseInt(size_str);
  	    
  alert("checkAll " + m);	    
  	    
  	    var i;
  	    var j;
  	    for (i=0; i<m; i++) {
  	        var checkbox_size_name = "checkbox_size_" + i;
  	        
  	        alert(checkbox_size_name);
  	        
  	        
  	        if (document.getElementById(checkbox_size_name) != null) {
  			var checkbox_size_value = document.getElementById(checkbox_size_name).value;
  			var n = = parseInt(checkbox_size_value);
  			for (j=0; j<n; j++) {
  			   var checkbox_name = "checkbox" + "_" + i + "_" + j;
  			   var checkbox = document.getElementById(checkbox_name);
  			   if(checkbox != null) {
  			   	checkbox.checked = 1;
  			   }
  			}
  	        }
  	    }
  	}
  
  	function uncheckAll() {
  	alert("uncheckAll");
  	
  	    var size = document.getElementById("size");
        	    var size_str = size.value;
  	    var m = parseInt(size_str);
  	    
  alert("uncheckAll " + m);	    	    
  	    
  	    var i;
  	    var j;
  	    for (i=0; i<m; i++) {
  	        var checkbox_size_name = "checkbox_size_" + i;
  	        if (document.getElementById(checkbox_size_name) != null) {
  			var checkbox_size_value = document.getElementById(checkbox_size_name).value;
  			var n = = parseInt(checkbox_size_value);
  			for (j=0; j<n; j++) {
  			   var checkbox_name = "checkbox" + "_" + i + "_" + j;
  			   var checkbox = document.getElementById(checkbox_name);
  			   if(checkbox != null) {
  			       checkbox.checked = 0;
  			   }
  			}
  	        }
  	    }
  	}
    
  </script>  
    
  </head>
  
  <%
  