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