
function checktickets(form)
	{
		var count = Registration.GuestTickets.value;
		
		var msg = 'Are u sure that you want to reserve 1 ticket for yourself and ' + count + ' tickets for your guests';
		
		if (this.document.Registration.CardNumber.value.length > 0)
		{
			
			if(this.document.Registration.CardExpiry.value.length != 5)
			{
				alert('Please fill in an expiry date in the format mm/yy');
				return false
			}			
		}
		
		if (this.document.Registration.CardNumber.value.length > 0)
		{			
			if(this.document.Registration.CardName.value.length == 0)
			{
				alert('Please fill in the name on the card or ensure that you do not put in a card number');
				return false;
			}		
		}
		
		if ( confirm(msg))
			return true;
		else
			return false;
		
			
	}

function launch (page,name,wWidth,wHeight)
	{
	gallery=window.open(page,name,'screenx=20,screeny=20,toolbar=0,menubar=0,scrollbars=1,resizable=0,width='+wWidth+',height='+wHeight+',scrollbars=yes');
	gallery.focus();
	}
	
