<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Rick Johnson  (frj11@ev1.net) -->
<!-- Web Site:  http://208.255.209.164/myPage/ -->

var donationamount=""; 
// radio buttons are either/or elements
// MIE evaluates onClick of an element.  NN does not 
function getRadios(what){
// get the color value
j=what.donationamount.length; //alert(j)
    for (i=0; i<j; i++){
        if(what.donationamount[i].checked) var donationamount = what.donationamount[i].value
    }
// show selections
//what.buttons.value = (color+', '+number+', '+letter)
what.amount.value = (donationamount)
//alert(donationamount)
what.otheramount.value=''
}

function clearRadios(what) {
j=what.donationamount.length;
what.amount.value = '0'

    for (i=0; i<j; i++){
       if(what.donationamount[i].checked) what.donationamount[i].checked = 0
    }
    what.donationamount[6].checked = 1
//    what.amount.value=(what.donationamount[6].value)
//    alert(what.donationamount[6].value)
}

function setAmount(what) {
//alert('setAmount')
what.amount.value=(what.otheramount.value)
}

function clearOther(what) {
//alert('setAmount')
what.otheramount.value=''
what.otheramount.focus()
}

function setPublish(what) {
//alert('setAmount')
if(what.nopublish.checked) {
  what.custom.value="don't publish donor name on donor list"
  } else {
  what.custom.value=""
  }

}
