// -------------------------------------------------------------------
// ----------------------- Used for Donation Scripts -----------------
// -------------------------------------------------------------------

function setPrice(item){
	document.donation.amount.value=document.donation.amountOption.value ;
}

function setSinglePrice(item){
	document.singletime.amount.value=document.singletime.amountOption.value ;
}


function showDiv() { 
    document.singletime.amountOption.style.visibility = 'visible'; 
    document.singletime.amountOption.focus(); 
	clearButtons() ;
}

function uncheck(newValue) {
	document.singletime.radioBtn.checked=false ;
    document.singletime.amountOption.style.visibility = 'hidden'; 
    document.singletime.amountOption.value = ''; 
	document.singletime.amount.value = newValue ;

}

function clearButtons(){       
   for (i=0; i < document.singletime.amount1.length; i++) { //mentally substitute buttonGroup for either radio group
       if (document.singletime.amount1[i].checked == true) { // if a button in either group is checked, 
       	   document.singletime.amount1[i].checked = false;   // uncheck it
	   }
   }   
}

function setRecurring(newValue) {
	document.monthlydonation.p3.value=newValue ;
}


// -------------------------------------------------------------------
// -------------------------------------------------------------------


