function checkout() 
{
	var myTotal = 0;
	
	// Update the ticket price here
<!--	var ticket_price1 = 20; -->// Amory Street Fire Benefit - Sunday, 8-11-08, 6-11 p.m., Greek Hellenic Center, Watertown, MA 

	var description = '03 - Amory Street Fire Benefit - ';
	var quantity = 0;
	eventName = 'Amory Street Fire Benefit';
	//Calculate Values...
	
	//Cast all the form fields to integers...
	<!--document.donation.user1.value=parseInt(document.donation.user1.value);-->
	document.donation.user49.value=parseInt(document.donation.user49.value);

	<!--myTotal += (ticket_price1 * parseInt(document.donation.user1.value));-->
	myTotal += parseInt(document.donation.user49.value);
	myTotal += parseInt(document.donation.hiddendonationlevel.value);

	document.donation.total.value=myTotal;
	document.donation.AMOUNT.value=myTotal;
	
<!--	if (document.donation.user1.value != 0)	{-->
<!--		description += document.donation.user1.value + ' $20 Amory Street Fire Benefit (6-11 pm) Advanced Ticket(s) ';}-->
		
	description += ' for ' + document.donation.eventDate.value;

	// If there is a donation level, then add it to the description.
	if (document.donation.hiddendonationlevel.value != 0) 
	{ description += ', a $' + document.donation.hiddendonationlevel.value + ' donation or auction purchase.';}

	if (document.donation.user49.value != 0) 
	{ description += ', a $' + document.donation.user49.value + ' donation or auction purchase.';}

<!--	quantity = eval(parseInt(document.donation.user1.value));-->
	//alert(document.donation.hiddendonationlevel.value);

	//Assign Values to the form fields...
	document.donation.USER8.value = quantity;
	document.donation.DESCRIPTION.value = description;
	document.donation.USER9.value = eventName + ' - ' + document.donation.eventDate.value;
	
} // end checkout()
	
function validateForm(theForm)
	{
	  //Assume everything to be ok.
	  var returnVal=true;
	
	  //But return false if the name has not been entered.
	  if (!validRequired(theForm.name,"Name"))
		return returnVal=false;

	  //But return false if the phone number has not been entered.
	  if (!validRequired(theForm.phone,"Phone number"))
		return returnVal=false;

	  //Return false if the email is not valid.
	  //Don't require the email though, validate only if they enter something.
	  if (theForm.email != "") {
	  if (!validEmail(theForm.email,"Email Address",false))
		return returnVal=false;
	  }

	  //Make sure they enter a quantity of tickets.
<!--	  if ( parseInt(theForm.user1.value)==0 && parseInt(theForm.user11.value)==0)-->
<!--	  {-->
<!--		alert("Ticket quantity cannot be zero, please enter a quantity.");-->
<!--		theForm.user1.focus();-->
<!--		return returnVal=false;-->
<!--	  }-->
	  
<!--	  if (!isNotNum(theForm.user1,'$20 Amory Street Fire Benefit (6-11 pm) Advanced Ticket(s)')) {return returnVal=false;}-->
<!--	  if (!isPositive(theForm.user1,'$20 Amory Street Fire Benefit (6-11 pm) Advanced Ticket(s)')) {return returnVal=false;}-->
	  
	  if (!isNotNum(theForm.user49,'Donation')) {return returnVal=false;}
	  if (!isPositive(theForm.user49,'Donation')) {return returnVal=false;}
	  
	  return returnVal;
	}
	
function isNotNum(theField, fieldLabel) { 
	if (isNaN(theField.value)) {
		alert('Please check the "' + fieldLabel + '" quantity field!');
		theField.value=0;
		return false;
	} else {return true;}
}

function isPositive(theField, fieldLabel) {
	if (theField.value < 0) {
		alert ('The "' + fieldLabel + '" field cannot be negative!');
		theField.focus();
		return false;
	} else {return true;}
}