function checkout() 
{
	var myTotal = 0;
	
	// Update the ticket price here
	var ticket_price1 = 30; // Matinee VIP Admission Ticket(s) to Share Our Stage 2010 - Official US East Coast Red Carpet Film Premier of "Elle: A Modern Cinderalla Tale" & My Hero Performance, June 19th, 1:00 p.m. Show, 11:30 a.m. Red Carpet at John Hancock Hall (Including Access (21+) to June 18th 7:00 - 10:00 p.m. VIP Pre-Event Party with the Artists at Splash Ultra Lounge)
	var ticket_price11 = 100; // Evening Show VIP Admission Ticket(s) to Share Our Stage 2010 - "An Evolution of the Blues" featuring Chris Thomas King Band, My Hero, Bellevue Cadillac, & More, June 19th, 7:00 p.m. Show, 5:30 p.m. VIP Reception with Artists at John Hancock Hall & Back Bay Grand (Including Access (21+) to June 18th 6:00 - 10:00 p.m. VIP Pre-Event Party with the Artists at House of Blues Boston Foundation Room, & June 19th 9:30 p.m. VIP After Party with the Artists at Mantra Restaurant)

	var description = '03 - Share Our Stage 2010 - A Benefit for Arts Education - ';
	var quantity = 0;
	eventName = 'Share Our Stage 2010 - A Benefit for Arts Education';
	//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 + ' $30 Matinee VIP Admission Ticket(s) to Share Our Stage 2010 - Official US East Coast Red Carpet Film Premier of "Elle: A Modern Cinderalla Tale" & My Hero Performance, June 19th, 1:00 p.m. Show, 11:30 a.m. Red Carpet at John Hancock Hall (Including Access (21+) to June 18th 7:00 - 10:00 p.m. VIP Pre-Event Party with the Artists at Splash Ultra Lounge) ';}

	if (document.donation.user11.value != 0)	{
		description += ', ' + document.donation.user11.value + ' $100 Evening Show VIP Admission Ticket(s) to Share Our Stage 2010 - "An Evolution of the Blues" featuring Chris Thomas King Band, My Hero, Bellevue Cadillac, & More, June 19th, 7:00 p.m. Show, 5:30 p.m. VIP Reception with Artists at John Hancock Hall & Back Bay Grand (Including Access (21+) to June 18th 6:00 - 10:00 p.m. VIP Pre-Event Party with the Artists at House of Blues Boston Foundation Room, & June 19th 9:30 p.m. VIP After Party with the Artists at Mantra Restaurant) ';}

	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 && parseInt(theForm.user49.value)==0)
	  {
		alert("Ticket quantity cannot be zero, please enter a quantity.");
		theForm.user1.focus();
		return returnVal=false;
	  }
	  
	  if (!isNotNum(theForm.user1,'$30 Matinee VIP Admission Ticket(s) to Share Our Stage 2010 - Official US East Coast Red Carpet Film Premier of "Elle: A Modern Cinderalla Tale" & My Hero Performance, June 19th, 1:00 p.m. Show, 11:30 a.m. Red Carpet at John Hancock Hall (Including Access (21+) to June 18th 7:00 - 10:00 p.m. VIP Pre-Event Party with the Artists at Splash Ultra Lounge)')) {return returnVal=false;}
	  if (!isPositive(theForm.user1,'$30 Matinee VIP Admission Ticket(s) to Share Our Stage 2010 - Official US East Coast Red Carpet Film Premier of "Elle: A Modern Cinderalla Tale" & My Hero Performance, June 19th, 1:00 p.m. Show, 11:30 a.m. Red Carpet at John Hancock Hall (Including Access (21+) to June 18th 7:00 - 10:00 p.m. VIP Pre-Event Party with the Artists at Splash Ultra Lounge)')) {return returnVal=false;}
	  
	  if (!isNotNum(theForm.user11,'$100 Evening Show VIP Admission Ticket(s) to Share Our Stage 2010 - "An Evolution of the Blues" featuring Chris Thomas King Band, My Hero, Bellevue Cadillac, & More, June 19th, 7:00 p.m. Show, 5:30 p.m. VIP Reception with Artists at John Hancock Hall & Back Bay Grand (Including Access (21+) to June 18th 6:00 - 10:00 p.m. VIP Pre-Event Party with the Artists at House of Blues Boston Foundation Room, & June 19th 9:30 p.m. VIP After Party with the Artists at Mantra Restaurant)')) {return returnVal=false;}
	  if (!isPositive(theForm.user11,'$100 Evening Show VIP Admission Ticket(s) to Share Our Stage 2010 - "An Evolution of the Blues" featuring Chris Thomas King Band, My Hero, Bellevue Cadillac, & More, June 19th, 7:00 p.m. Show, 5:30 p.m. VIP Reception with Artists at John Hancock Hall & Back Bay Grand (Including Access (21+) to June 18th 6:00 - 10:00 p.m. VIP Pre-Event Party with the Artists at House of Blues Boston Foundation Room, & June 19th 9:30 p.m. VIP After Party with the Artists at Mantra Restaurant)')) {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;}
}
