total = 0;
function sum()
{
  total = 0;
  $(".cost").each( function(){
      if(this.value){
        total += parseFloat(this.value);
      }
  });
  $("#Total").val(total.toFixed(2));
}

function mult() {
  total = 1;
  $(".mult").each( function(){
      if(this.value){
        total = total * parseFloat(this.value);
      }
  });
  $("#Total_Product_Cost").val(total.toFixed(2));
}

function really(){
  var msg = "Are you sure your claim is filled out completely? Hit OK to submit claim, use TAB to move through fields.";
 if(msg){
   $("#Total_Product_Cost").attr('disabled',false);
 }
 return confirm(msg);
}
$(document).ready(function(){
  $(".cost").bind("blur",sum);
  $(".mult").bind("blur",mult);
  $("form").bind("submit", really);
});
