	var total;

	function resetAll()
	{
		
		document.frm1.SeasonSub_0607.value = 0;
		document.frm1.SeriesFlexPass_0607.value = 0;
/* 9/1 remove this line
		document.frm1.Concert1.value = 0;
		document.frm1.Concert2.value = 0;
		document.frm1.Concert3.value = 0;
		document.frm1.Concert4.value = 0;
		document.frm1.Concert5.value = 0;
9/1 remove this line */
		document.getElementById("Donor").childNodes[0].nodeValue = "N/A";
		document.frm1.Donation.value = 0;
		calculateTotal();
		document.frm2.AMOUNT.value = 0;
		document.frm2.DESCRIPTION.value = " ";	
	}

	function updateDonor()
	{
		if (document.frm1.Donation.value == 0)
		{
			donorName = "N/A";
		}
		if (document.frm1.Donation.value > 0 && document.frm1.Donation.value < 50)
		{
			donorName = "Contributor";
		}
		if (document.frm1.Donation.value >= 50 && document.frm1.Donation.value < 100)
		{
			donorName = "Devotee";
		}
		if (document.frm1.Donation.value >= 100 && document.frm1.Donation.value < 250)
		{
			donorName = "Patron";
		}
		if (document.frm1.Donation.value >= 250 && document.frm1.Donation.value < 500)
		{
			donorName = "Sponsor";
		}
		if (document.frm1.Donation.value >= 500 && document.frm1.Donation.value < 1000)
		{
			donorName = "Benefactor";
		}
		if (document.frm1.Donation.value >= 5000)
		{
			donorName = "Concert Sponsor";
		}
		document.getElementById("Donor").childNodes[0].nodeValue = donorName;	
	}

	function checkEmpty()
	{
		if (!document.frm1.SeasonSub_0607.value)
		{
			document.frm1.SeasonSub_0607.value = 0;
		}
		if (!document.frm1.SeriesFlexPass_0607.value)
		{
			document.frm1.SeasonSub_0607.value = 0;
		}
/*	9/1 remove this line	
		if (!document.frm1.Concert1.value)
		{
			document.frm1.Concert1.value = 0;
		}
		if (!document.frm1.Concert2.value)
		{
			document.frm1.Concert2.value = 0;
		}
		if (!document.frm1.Concert3.value)
		{
			document.frm1.Concert3.value = 0;
		}
		if (!document.frm1.Concert4.value)
		{
			document.frm1.Concert4.value = 0;
		}
		if (!document.frm1.Concert5.value)
		{
			document.frm1.Concert5.value = 0;
		} 
9/1 remove this line /*/
		if (!document.frm1.Donation.value)
		{
			document.frm1.Donation.value = 0;
		}
	}

	function checkNegative()
	{
		if (document.frm1.SeasonSub_0607.value < 0)
		{
			alert("The number of the tickets for 2006-2007 Series Subscriptions may not be less than 0!");
			return 1;
		}
		if (document.frm1.SeriesFlexPass_0607.value < 0)
		{
			alert("The number of the tickets for 2006-2007 Series Flex Pass may not be less than 0!");
			return 1;
		}
/* 9/1 remove this line
		if (document.frm1.Concert1.value < 0)
		{
			alert("The number of the tickets for The Takács Quartet concert may not be less than 0!");
			return 1;
		}
				if (document.frm1.Concert2.value < 0)
		{
			alert("The number of the tickets for The Antares Quartet concert may not be less than 0!");
			return 1;
		}
				if (document.frm1.Concert3.value < 0)
		{
			alert("The number of the tickets for The Artemis Quartet concert may not be less than 0!");
			return 1;
		}
				if (document.frm1.Concert4.value < 0)
		{
			alert("The number of the tickets for The Miró Quartet concert may not be less than 0!");
			return 1;
		}
				if (document.frm1.Concert5.value < 0)
		{
			alert("The number of the tickets for The Imani Winds concert may not be less than 0!");
			return 1;
		}
9/1 remove this line /*/
		if (document.frm1.Donation.value < 0)
		{
			alert("The amount for Donation may not be less than 0!");
			return 1;
		}
		return 0;
	}

	function checkEntries()
	{

		if (document.frm1.SeasonSub_0607.value == "NaN")
		{
			alert("Your entry is invalid.");
			return 1;
		}
		if (document.frm1.SeriesFlexPass_0607.value == "NaN")
		{
			alert("Your entry is invalid.");
			return 1;
		}
/* 9/1 remove this line
		if (document.frm1.Concert1.value == "NaN")
		{
			alert("Your entry is invalid.");
			return 1;
		}
		if (document.frm1.Concert2.value == "NaN")
		{
			alert("Your entry is invalid.");
			return 1;
		}
		if (document.frm1.Concert3.value == "NaN")
		{
			alert("Your entry is invalid.");
			return 1;
		}
		if (document.frm1.Concert4.value == "NaN")
		{
			alert("Your entry is invalid.");
			return 1;
		}
		if (document.frm1.Concert5.value == "NaN")
		{
			alert("Your entry is invalid.");
			return 1;
		}
9/1 remove this line /*/
		if (document.frm1.Donation.value == "NaN")
		{
			alert("Your Donation amount is invalid.");
			return 1;
		}
		return 0;
	}
	
	function checkRound()
	{
		document.frm1.SeasonSub_0607.value = Math.round(document.frm1.SeasonSub_0607.value);
		document.frm1.SeriesFlexPass_0607.value = Math.round(document.frm1.SeriesFlexPass_0607.value);
/* 9/1 remove this line
		document.frm1.Concert1.value = Math.round(document.frm1.Concert1.value);
		document.frm1.Concert2.value = Math.round(document.frm1.Concert2.value);
		document.frm1.Concert3.value = Math.round(document.frm1.Concert3.value);
		document.frm1.Concert4.value = Math.round(document.frm1.Concert4.value);
		document.frm1.Concert5.value = Math.round(document.frm1.Concert5.value);
9/1 remove this line /*/
		document.frm1.Donation.value = Math.round(document.frm1.Donation.value);
	}
	
	function calculateTotal()
	{
		total = eval(document.frm1.SeasonSub_0607.value * 100) + eval(document.frm1.SeriesFlexPass_0607.value * 125)
/* 9/1 remove this line
 + eval(document.frm1.Concert1.value * 25) + eval(document.frm1.Concert2.value * 25) + eval(document.frm1.Concert3.value * 25) + eval(document.frm1.Concert4.value * 25) + eval(document.frm1.Concert5.value * 25)
9/1 remove this line /*/
 + eval(document.frm1.Donation.value);
		if (total == "NaN")
		{
			total = 0;
		}
		document.getElementById("TotalDisplay").childNodes[0].nodeValue = "$" + total + ".00";
	}
	
	function updateTotal()
	{	
		checkEmpty();
		temp = checkEntries();
		if (temp == 1) { return; }		
		temp = checkNegative();
		if (temp == 1) { return; }
		temp = checkRound();
		if (temp == 1) { return; }
		updateDonor();
		calculateTotal();
	}

	function orderTickets()
	{
		checkEmpty();
		temp = checkEntries();
		if (temp == 1) { return false; }		
		temp = checkNegative();
		if (temp == 1) { return false; }
		temp = checkRound();
		if (temp == 1) { return false; }
		updateDonor();
		calculateTotal();
		if (total == 0) {
			alert("Sorry, you cannot place an order with a zero total.");
			return false;
		}
		document.frm2.AMOUNT.value = total;			
		//CREATE DESCRIPTION
		
		if (document.frm1.SeasonSub_0607.value > 0)
		{
			document.frm2.DESCRIPTION.value = document.frm2.DESCRIPTION.value + "| [" + document.frm1.SeasonSub_0607.value + "] 2006-2007 Series Subscription ";
		}
		if (document.frm1.SeriesFlexPass_0607.value > 0)
		{
			document.frm2.DESCRIPTION.value = document.frm2.DESCRIPTION.value + "| [" + document.frm1.SeriesFlexPass_0607.value + "] 2006-2007 Series Flex Pass ";
		}
/* 9/1 remove this line
		if (document.frm1.Concert1.value > 0)
		{
			document.frm2.DESCRIPTION.value = document.frm2.DESCRIPTION.value + "| [" + document.frm1.Concert1.value + "] The Takács Quartet concert Ticket(s) ";
		}
		if (document.frm1.Concert2.value > 0)
		{
			document.frm2.DESCRIPTION.value = document.frm2.DESCRIPTION.value + "| [" + document.frm1.Concert2.value + "] The Antares Quartet concert Ticket(s) ";
		}
		if (document.frm1.Concert3.value > 0)
		{
			document.frm2.DESCRIPTION.value = document.frm2.DESCRIPTION.value + "| [" + document.frm1.Concert3.value + "] The Artemis Quartet concert Ticket(s) ";
		}
		if (document.frm1.Concert4.value > 0)
		{
			document.frm2.DESCRIPTION.value = document.frm2.DESCRIPTION.value + "| [" + document.frm1.Concert4.value + "] The Miró Quartet concert Ticket(s) ";
		}
		if (document.frm1.Concert5.value > 0)
		{
			document.frm2.DESCRIPTION.value = document.frm2.DESCRIPTION.value + "| [" + document.frm1.Concert15.value + "] The Imani Winds concert Ticket(s) ";
		}
9/1 remove this line /*/
		if (document.frm1.Donation.value > 0)
		{
			document.frm2.DESCRIPTION.value = document.frm2.DESCRIPTION.value + "| $" + document.frm1.Donation.value + " Donation Amount ";
		}
	//	alert(document.frm2.DESCRIPTION.value);
		//return false;
	}
//END ORDERING CODE