function calcItem(item,qty,unit) {
alert(document.store.qty.value);
 document.store.item.value = document.store.qty.value * freq;
}

function calcTotal() {
 var amt = document.pledge.pledgeamt.value;
 if (amt.indexOf(",") != -1) {
  alert('Please enter your giving amount without commas');
  document.pledge.pledgetot.value = 0;
 } else {
  var freq = 0;

  if (document.pledge.givingfrequency[0].checked) { freq = 52; }
  if (document.pledge.givingfrequency[1].checked) { freq = 12; }
  if (document.pledge.givingfrequency[2].checked) { freq = 1; }

  var gift = amt * freq;
  document.pledge.pledgetot.value = gift.toFixed(2);
 }
 return true;
}

