$(document).ready(function(){
total = 0;
$("#d100").change(function(){
val = eval($("#d100").val());
det = val * 100;
total = total + det;
$("#ld100").html(det);
$("#total").html(total);
});
$("#d50").change(function(){
val = eval($("#d50").val());
det = val * 50;
total = total + det;
$("#ld50").html(det);
$("#total").html(total);
});
$("#d20").change(function(){
val = eval($("#d20").val());
det = val * 20;
total = total + det;
$("#ld20").html(det);
$("#total").html(total);
});
$("#d10").change(function(){
val = eval($("#d10").val());
det = val * 10;
total = total + det;
$("#ld10").html(det);
$("#total").html(total);
});
$("#d5").change(function(){
val = eval($("#d5").val());
det = val * 5;
total = total + det;
$("#ld5").html(det);
$("#total").html(total);
});
$("#d1").change(function(){
val = eval($("#d1").val());
det = val * 1;
total = total + det;
$("#ld1").html(det);
$("#total").html(total);
});
$("#c1").change(function(){
val = eval($("#c1").val());
det = val * 1;
total = total + det;
$("#lc1").html(det);
$("#total").html(total);
});
$("#c50").change(function(){
val = eval($("#c50").val());
det = val * 0.50;
total = total + det;
$("#lc50").html(det);
$("#total").html(total);
});
$("#c25").change(function(){
val = eval($("#c25").val());
det = val * 0.25;
total = total + det;
$("#lc25").html(det);
$("#total").html(total);
});
$("#c10").change(function(){
val = eval($("#c10").val());
det = val * 0.10;
total = total + det;
$("#lc10").html(det);
$("#total").html(total);
});
$("#c05").change(function(){
val = eval($("#c05").val());
det = val * 0.05;
total = total + det;
$("#lc05").html(det);
$("#total").html(total);
});
$("#c01").change(function(){
val = eval($("#c01").val());
det = val * 0.01;
total = total + det;
$("#lc01").html(det);
$("#total").html(total);
});
});