// auto generate a helful paypal form

function updateAmount(amount, item_name)
{
//alert("amount"+amount);
//alert("item_name"+item_name);
//document.getElementById("amount").value=amount;
//document.getElementById("item_name").value=item_name;
}

function updatePayPalForm(){
  //alert('arse');
  var selector, amount, item_desc;
  selector = document.form1.amount_select;
  amount = selector.value;
  item_desc = selector.options[selector.selectedIndex].text;
  //alert("cost: "+amount);
  //alert("desc: "+item_desc);
  // now set the hidden values on the form
  document.form1.amount.value = amount;
  document.form1.item_name.value = item_desc;
}
