

//-------------------------------------------------------------
// 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;
		removeClassName ( btnNext, 'continueBtn' + gLangFileExt );
		addClassName ( btnNext, 'continueBtnDisabled' + gLangFileExt );
	} else {
		btnNext.disabled = false;
		removeClassName ( btnNext, 'continueBtnDisabled' + gLangFileExt );
		addClassName ( btnNext, 'continueBtn' + gLangFileExt );
	}

}


