function checkout() 
{
	var myTotal = 0;
	
	// Update the ticket price here
	var ticket_price1 = 20; // A New Year's Evening of Flamenco Music, Song & Dance - 7:30 p.m. (Includes free Tapas & complimentary admission to Mojitos New Year's Eve Party - 9:00 p.m. to 4:00 a.m.)
	var ticket_price11 = 19; // with Student/Instructor/Senior Discount

	var description = '03 - New Years Evening Flamenco Concert and Bash - ';
	var quantity = 0;
	eventName = 'New Years Evening Flamenco Concert and Bash';
	//Calculate Values...
	
	//Cast all the form fields to integers...
	document.donation.user1.value=parseInt(document.donation.user1.value);
	document.donation.user11.value=parseInt(document.donation.user11.value);
	document.donation.user49.value=parseInt(document.donation.user49.value);

	myTotal += (ticket_price1 * parseInt(document.donation.user1.value));
	myTotal += (ticket_price11 * parseInt(document.donation.user11.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 New Years Evening Flamenco Concert (7:30 pm) Ticket(s) + Free Tapas and Admission to Bash (9:00 pm to 4 am) ';}

	if (document.donation.user11.value != 0)	{
		description += ', ' + document.donation.user11.value + ' $19 S/I/S New Years Evening Flamenco Concert (7:30 pm) Ticket(s) + Free Tapas and Admission to Bash (9:00 pm to 4 am) ';}
		
	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 += ', and a $' + document.donation.hiddendonationlevel.value + ' donation.';}

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

	quantity = eval(parseInt(document.donation.user1.value) + parseInt(document.donation.user11.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 New Years Evening Flamenco Concert (7:30 pm) Ticket(s) + Free Tapas and Admission to Bash (9:00 pm to 4 am)')) {return returnVal=false;}
	  if (!isPositive(theForm.user1,'$20 New Years Evening Flamenco Concert (7:30 pm) Ticket(s) + Free Tapas and Admission to Bash (9:00 pm to 4 am)')) {return returnVal=false;}
	  
	  if (!isNotNum(theForm.user11,'$19 S/I/S New Years Evening Flamenco Concert (7:30 pm) Ticket(s) + Free Tapas and Admission to Bash (9:00 pm to 4 am)')) {return returnVal=false;}
	  if (!isPositive(theForm.user11,'$19 S/I/S New Years Evening Flamenco Concert (7:30 pm) Ticket(s) + Free Tapas and Admission to Bash (9:00 pm to 4 am)')) {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;}
}