

	// 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 disableSendIfNoResort()
{
	// Validate all the page's inputs, otherwise disable the Next... button.
	var isValid = true;
	
	// Select Ski Resort Drop Menu.
	var resortDropMenu = document.getElementById( 'selResortMenu' );
	var resDropVal = resortDropMenu.options[resortDropMenu.selectedIndex].value;
	if ( resDropVal === '-'  ) {
		isValid = false;
	}
	
	
	// Select Nr. of Ski Days Drop Menu.
	var skidaysDropMenu = document.getElementById( 'nrOfRentalDays' );
	var skiDropVal = skidaysDropMenu.options[skidaysDropMenu.selectedIndex].value;
	if ( skiDropVal === '-'  ) {
		isValid = false;
	}
	
	
	// DAY - Start date.
	var startDayDropMenu = document.getElementById( 'startDay' );
	var day_DropVal = startDayDropMenu.options[startDayDropMenu.selectedIndex].value;
	if ( day_DropVal === '-'  ) {
		isValid = false;
	}
		
	// MONTH - Start date.
	var startMonthDropMenu = document.getElementById( 'startMonth' );
	var month_DropVal = startMonthDropMenu.options[startMonthDropMenu.selectedIndex].value;
	if ( month_DropVal === '-'  ) {
		isValid = false;
	}
		
	// YEAR - Start date.
	var startYearDropMenu = document.getElementById( 'startYear' );
	var year_DropVal = startYearDropMenu.options[startYearDropMenu.selectedIndex].value;
	if ( year_DropVal === '-'  ) {
		isValid = false;
	}
	
	
	
	
	
	// Change the Next Button's css class to enable/disable.
	var btnNext = document.getElementById( 'submit' );
	
	if ( isValid === false  ) {
		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' );
		}
	}
	
	
	
}