anchor.diff:  <%=h lift.weight %> lbs	
   </div>
   <div class="max-item">
  +	<% if @weightchange2!=0
  +		sum=@weightchange1-@weightchange2+sum %>
   	<% @weightdif=@weightchange1-@weightchange2 %>
   	<%=h @weightchange1-@weightchange2 %> lbs
  +	<% end %>
   </div>
   <div class="max-item">
   	<% if @weightchange2!=0 %>
   	<%=h (@weightdif*100)/@weightchange2 %> %
  +	<% sum2=(@weightdif*100)/@weightchange2+sum2 %>	
   	<% end %>
   	<% @weightchange2=lift.weight %>
   </div>
   <% end %>
   <% end %>
  +
  +			<div class="max-item" style="text-align:left;">
  +			</div>
  +			<div class="max-item">
  +			<strong>Total:</strong>	
  +			</div>
  +			<div class="max-item">
  +				<%=h sum %> lbs
  +			</div>
  +			<div class="max-item">
  +				<%=h sum2 %> %
  +			</div>
  +			
   </div>
   
   </div>
  
positive.code: <%=h lift.weight %> lbs	
  </div>
  <div class="max-item">
  	<% @weightdif=@weightchange1-@weightchange2 %>
  	<%=h @weightchange1-@weightchange2 %> lbs
  </div>
  <div class="max-item">
  	<% if @weightchange2!=0 %>
  	<%=h (@weightdif*100)/@weightchange2 %> %
  	<% end %>
  	<% @weightchange2=lift.weight %>
  </div>
  <% end %>
  <% end %>
  </div>
  
  </div>
  
negative.code: 
  <% today=Time.now.strftime("%m/%d/%Y") %>
  <% @weightchange1=0 
     @weightchange2=0
     sum=0
     sum2=0 %>
  <% @lifts.each do |lift| %>
  <% if lift.user_id == current_user.id && lift.exercise_id==4
  		@weightchange1=lift.weight %>
  