
	// Initialize vars for all page's use.
	if ( gLang == undefined ) {
		var gLang = 'EN';				// Set to 'EN' if undefined or null (or false)
	}


//-------------------------------------------------------------
// Handle validating user input data on this form, before the form
// is sent to the backend for real processing...
//-------------------------------------------------------------
function initializeForm()
{
	//alert( 'initializeForm() is working' );
	
	// If both the dropdown menus are set to Zero, then disable the Next... button.
	disableSendIfZero();
}
//-------------------------------------------------------------
// Handle validating user input data on this form, before the form
// is sent to the backend for real processing...
//-------------------------------------------------------------
function updateCurrency()
{
	//alert( 'changeCurrency() is working' );
	var form = document.getElementById( 'nrTicketsForm' );
	var hiddenCurrField = document.getElementById( 'autoCurrencyUpdate' );
	
	// update the value of the hidden field that controls whether or not
	// the submitted form acts as a Currency updater or just normal add to 
	// basket...
	hiddenCurrField.value = 'yes';
	
	form.submit();
	
}
//-------------------------------------------------------------
// Handle validating user input data on this form, before the form
// is sent to the backend for real processing...
//-------------------------------------------------------------
function disableSendIfZero()
{
	// If all the dropdown menus are set to Zero, then disable the Next... button.
	var adultDropdown = document.getElementById( 'nrOfAdults' );
	var adultFlexiDropdown = document.getElementById( 'nrOfFlexi' );
	var adultCardDropdown = document.getElementById( 'nrOfCard' );
	var childDropdown = document.getElementById( 'nrOfChildren' );
	var childFamilyCardDropdown = document.getElementById( 'nrOfFamilyCard' );
	
	var adultTotal = 0;
	var adultFlexiDropdownTotal = 0;
	var adultCardDropdownTotal = 0;
	var childDropdownTotal = 0;
	var childFamilyCardDropdownTotal = 0;
	
	if ( adultDropdown )		{ adultTotal = adultDropdown.options[adultDropdown.selectedIndex].value; }
	if ( adultFlexiDropdown )	{ adultFlexiDropdownTotal = adultFlexiDropdown.options[adultFlexiDropdown.selectedIndex].value; }
	if ( adultCardDropdown )	{ adultCardDropdownTotal = adultCardDropdown.options[adultCardDropdown.selectedIndex].value }
	if ( childDropdown )		{ childDropdownTotal = childDropdown.options[childDropdown.selectedIndex].value }
	if ( childFamilyCardDropdown ) { childFamilyCardDropdownTotal = childFamilyCardDropdown.options[childFamilyCardDropdown.selectedIndex].value; }
	
	
	/*
	var adultTotal = adultDropdown.options[adultDropdown.selectedIndex].value;
	var adultFlexiDropdownTotal = adultFlexiDropdown.options[adultFlexiDropdown.selectedIndex].value;
	
	//var adultCardDropdownTotal = adultCardDropdown.options[adultCardDropdown.selectedIndex].value;
	
	(adultCardDropdownTotal) ? adultCardDropdownTotal = adultCardDropdown.options[adultCardDropdown.selectedIndex].value : adultCardDropdownTotal = 0;
	//var childDropdownTotal = childDropdown.options[childDropdown.selectedIndex].value;
	
	(childDropdownTotal) ? childDropdownTotal = childDropdown.options[childDropdown.selectedIndex].value : childDropdownTotal = 0;
	var childFamilyCardDropdownTotal = childFamilyCardDropdown.options[childFamilyCardDropdown.selectedIndex].value;
	*/
	
	var allTotalled = 1 * ( adultTotal + adultFlexiDropdownTotal + adultCardDropdownTotal + childDropdownTotal + childFamilyCardDropdownTotal );
	

	var addBasketBtn = document.getElementById( 'submit' );
	
	if ( allTotalled < 1  ) {
		addBasketBtn.disabled = true;
		if ( gLang == 'EN' ) {
			removeClassName ( addBasketBtn, 'addToBasketBtn' );
			addClassName ( addBasketBtn, 'addToBasketBtnDisabled' );
		} else if ( gLang == 'DE' ) {
			removeClassName ( addBasketBtn, 'addToBasketBtnDE' );
			addClassName ( addBasketBtn, 'addToBasketBtnDisabledDE' );
		}
	} else {
		addBasketBtn.disabled = false;
		if ( gLang == 'EN' ) {
			removeClassName ( addBasketBtn, 'addToBasketBtnDisabled' );
			addClassName ( addBasketBtn, 'addToBasketBtn' );
		} else if ( gLang == 'DE' ) {
			removeClassName ( addBasketBtn, 'addToBasketBtnDisabledDE' );
			addClassName ( addBasketBtn, 'addToBasketBtnDE' );
		}
	}
}