<!--
function validate(form)
{
	if( isEmpty(form.normal_tickets) && isEmpty(form.vip_tickets) )
	{
		alert('Please select no of tickets');form.normal_tickets.focus();
		return false;
	}
	if(isEmpty(form.guests))
	{
		alert('Please Enter your Names of guests');form.guests.focus();
		return false;
	}
	if(isEmpty(form.billing_fname) || !isAlphaNumeric(form.billing_fname))
	{
		alert('Please Enter your First Name');form.billing_fname.focus();
		return false;
	}
	if(isEmpty(form.billing_lname) || !isAlphaNumeric(form.billing_lname))
	{
		alert('Please Enter your Last Name');form.billing_lname.focus();
		return false;
	}
	if(isEmpty(form.billing_address1))
	{
		alert('Please Enter your Address');form.billing_address1.focus();
		return false;
	}
	if(isEmpty(form.billing_city) || !isAlphaNumeric(form.billing_city))
	{
		alert('Please Enter your City');form.billing_city.focus();
		return false;
	}
	if(isEmpty(form.billing_state))
	{
		alert('Please Enter your State');form.billing_state.focus();
		return false;
	}
	if(isEmpty(form.billing_zip))
	{
		alert('Please Enter your Zip Code');form.billing_zip.focus();
		return false;
	}
	if(isEmpty(form.billing_phone) || !isPhone(form.billing_phone))
	{
		alert('Please Enter your Cell number');form.billing_phone.focus();
		return false;
	}
	if(isEmpty(form.billing_email) || !isEmail(form.billing_email))
	{
		alert('Please Enter your E-mail address');form.billing_email.focus();
		return false;
	}

	Calculate();

	if(isEmpty(form.total_amount) || (form.total_amount.value <= 0))
	{
		alert('Total amount cannot be zero');
		return false;
	}
}

function Calculate()
{
	if(isEmpty(document.frmtickets.donation) || isNaN(document.frmtickets.donation.value))
	{
		document.frmtickets.donation.value = 0;
	}
	//document.frmtickets.total_amount.value = ((document.frmtickets.vip_tickets.value * document.frmtickets.unit_price.value)/2) + Number(document.frmtickets.donation.value);
	document.frmtickets.total_amount.value = ( (document.frmtickets.normal_tickets.value * 30) + (document.frmtickets.vip_tickets.value * 80) ) + Number(document.frmtickets.donation.value);
	
}

/*function changePrice(){
	var unitprice = document.frmtickets.type_of_ticket.value;

	if( unitprice != "" )
	{
		document.frmtickets.unit_price.value = unitprice;
	}
	Calculate();

}*/
//-->