

	// 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()
{
	// 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 disableSendIfZero()
{


	var dropMenuAdultsSelIndx = 0;
	if ( document.getElementById( 'nrOfAdults' ) ) { 
		dropMenuAdultsSelIndx = (document.getElementById( 'nrOfAdults' )).selectedIndex;
	}
	var dropMenuYouthsSelIndx = 0;
	if ( document.getElementById( 'nrOfYouths' ) ) { 
		dropMenuYouthsSelIndx = (document.getElementById( 'nrOfYouths' )).selectedIndex;
	}
	
	var dropMenuChildrenSelIndx = 0;
	if ( document.getElementById( 'nrOfChildren' ) ) { 
		dropMenuChildrenSelIndx = (document.getElementById( 'nrOfChildren' )).selectedIndex;
	}
	
	
	
	
	
	// If both the dropdown menus are set to Zero, then disable the Next... button.
	var btnNext = document.getElementById( 'submit' );
	
	
	if ( dropMenuAdultsSelIndx === 0 && dropMenuYouthsSelIndx === 0 && dropMenuChildrenSelIndx === 0  ) {
		btnNext.disabled = true;
		btnNext.title = gNextBtnTitelDisabled;
		if ( gLang == 'EN' ) {
			removeClassName ( btnNext, 'continueBtn' );
			addClassName ( btnNext, 'continueBtnDisabled' );
		} else if ( gLang == 'DE' ) {
			removeClassName ( btnNext, 'continueBtnDE' );
			addClassName ( btnNext, 'continueBtnDisabledDE' );
		}
		
	} else {
		btnNext.disabled = false;
		btnNext.title = gNextBtnTitel;
		if ( gLang == 'EN' ) {
			removeClassName ( btnNext, 'continueBtnDisabled' );
			addClassName ( btnNext, 'continueBtn' );
		} else if ( gLang == 'DE' ) {
			removeClassName ( btnNext, 'continueBtnDisabledDE' );
			addClassName ( btnNext, 'continueBtnDE' );
		}
	}

}

