function checkform()
{
	if (!document.paypal.amount[0].checked && !document.paypal.amount[1].checked && !document.paypal.amount[2].checked) {
			// no radio button is selected
			alert('Please select a value.');
			return false;
	} else if (!document.paypal.terms.checked) {
		// box is not checked
		alert('Please agree to our terms and conditions');
		return false;
	}

	// If the script gets this far through all of your fields
	// without problems, it's ok and you can submit the form

	return true;
}
