function validate_form ( )
{
    valid = true;
	msg = "";

    if ( document.getElementById("authorize").email.value != document.getElementById("authorize").confirmemail.value )
    {
		msg = "Email Address fields do not match!\n\n";
        valid = false;
    }
	
	msg += "The following required fields were left blank:\n\n";
	
	if ( document.getElementById("authorize").firstName.value == "" )
    {
		msg += "First Name\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").lastName.value == "" )
    {
		msg += "Last Name\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").address.value == "" )
    {
		msg += "Address\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").city.value == "" )
    {
		msg += "City\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").state.value == "" )
    {
		msg += "State\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").zip.value == "" )
    {
		msg += "Postal Code\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").email.value == "" )
    {
		msg += "E-Mail Address\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").phone.value == "" )
    {
		msg += "Phone Number\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").cardNumber.value == "" )
    {
		msg += "Credit Card Number\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").expDate.value == "" )
    {
		msg += "Credit Card Expiration Date\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").CCV.value == "" )
    {
		msg += "Credit Card Validation Number (CCV)\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").cardFirstName.value == "" )
    {
		msg += "First Name on Card\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").cardLastName.value == "" )
    {
		msg += "Last Name on Card\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").billingAddress.value == "" )
    {
		msg += "Billing Address\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").billingCity.value == "" )
    {
		msg += "Billing City\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").billingState.value == "" )
    {
		msg += "Billing State\n";
        valid = false;
    }
	
	if ( document.getElementById("authorize").billingZip.value == "" )
    {
		msg += "Billing Postal Code\n";
        valid = false;
    }
	
	if ( valid == false )
	{
		alert ( msg );
	}
    return valid;
}

function validate_form2 ( )
{
    valid = true;
	msg = "";
	
	if ( document.getElementById("authorize").agree_to_terms.checked == false )
    {
		msg = "You must check the box indicating you have read and agree to the cancellation, return, and warrantee policies before continuing.\n";
        valid = false;
    }
	
	if ( valid == false )
	{
		alert ( msg );
	}
    return valid;
	
}

function UpdateItem(optionsSelection) {
	PriceChange(optionsSelection);
	ItemChange(optionsSelection);
}

function PriceChange(sizeSelection){
	if(sizeSelection == "Reserved Table for 8")
		document.productSelection.price.value = 400.00;
	else if(sizeSelection == "Reserved Table Ticket")
		document.productSelection.price.value = 50.00;
	else if(sizeSelection == "Individual Event Tickets")
		document.productSelection.price.value = 55.00;
}

function ItemChange(sizeSelection){
	if(sizeSelection == "Reserved Table for 8")
		document.productSelection.Item.value = "Reserved Table for 8";
	else if(sizeSelection == "Reserved Table Ticket")
		document.productSelection.Item.value = "Reserved Table Ticket";
	else if(sizeSelection == "Individual Event Tickets")
		document.productSelection.Item.value = "Individual Event Tickets";
}