anchor.diff:  <!--Removes commas and percentage signs from a string-->
   function removeCommasOrPercentage(metricString) {
       var metricValueAsNumber;
  -    	if(metricString.indexOf(',') != -1){  			
  -  			metricValueAsNumber= metricString.replace(/,/g,'');  			
  -		}else if(metricString.indexOf('%') != -1){
  -			metricValueAsNumber = (metricString.replace(/%/g,'')) * 100 ;
  -		}else{
  -			metricValueAsNumber = metricString;
  +    	if (metricString != 0 ){
  +    	  if(metricString.indexOf(',') != -1){  			
  +  			  metricValueAsNumber= metricString.replace(/,/g,'');  			
  +		  }else if(metricString.indexOf('%') != -1){
  +			  metricValueAsNumber = (metricString.replace(/%/g,'')) * 100 ;
  +		  }else{
  +			  metricValueAsNumber = metricString;
  +		  }
   		}
      
       return metricValueAsNumber;
  
positive.code: 	<!--Loop through all the snapshots and if the project id = the resource id then set the snapshot id variable -->
  	<% for @Snapshot in snapshots %>
  	<% if (@Project.id == @Snapshot.project_id)%>
  	<% snapshotId = @Snapshot %>
  	
  	
  	<!--Loop through all the project measures and if the snapshot id for the project 
  	 equals the snapshot id from the snapshot table then retrieve
  	 metric values for all the projects in the group -->
  	
  	<!--points value-->
  	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => pointsMetric}) %>
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% pointsName = @ProjectMeasure.short_name %>
  	<% pointsValue = number_with_delimiter(@ProjectMeasure.value.to_i, :delimiter => ',') %>
  	<td id ="pointsValue" class="pointsValue" align="right" nowrap=""><%= pointsValue -%></td>
  	
  		
  	<!--coverage value-->
  	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => coverageMetric}) %>	
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% coverageValue = @ProjectMeasure %>
  	<td id = "coverageValue" align="right" nowrap=""><%= @ProjectMeasure.value -%>%</td>
  	
  	<!--rules compliance value -->
  	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => rulesComplianceMetric}) %>	
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% rulesComplianceValue = @ProjectMeasure %>
  	<td align="right" id = "rulesValue" nowrap=""><%= @ProjectMeasure.value -%>%</td>
  	
  	<!--documented API value -->
  	<% for @ProjectMeasure in ProjectMeasure.find(:all, :conditions =>{:metric_id => docApiMetric}) %>	
  	<% if (@ProjectMeasure.snapshot_id == @Snapshot.id)%>
  	<% documentedApiValue = @ProjectMeasure %>
  	<td align="right" id ="docApiValue" nowrap="" ><%= @ProjectMeasure.value -%>%</td>
  	
  	</tr>	
  	
  <% end %>
  <% end %>
  <% end %>
  <% end %>
  <% end %>
  <% end %>
  <% end %>
  <% end %>
  <% end %>
  <% end %>
  <% end %>
  
negative.code:    
     projectName = nil
     projectImage = nil
     
     #set all metrics to zero
     pointsValue = 0
     
      
            
  %>
  
  <!--Loops through the properties array that contains all the groups of projects for the 
  