
/**
 * Wechseln der Schritte
 *
 * wizard-step-complete
 * item-expanded wizard-step-current
 * wizard-step-pending
 */
function ksomSwitchStep(step) {
	
	switch(parseInt(step)) {
		
		case 1:
			
			document.getElementById('ksitz-data-alter-notice').style.display		= (('0' == document.getElementById('ksitz-data-alter').selectedIndex) ? 'block' : 'none');
			document.getElementById('ksitz-data-gewicht-notice').style.display		= (('0' == document.getElementById('ksitz-data-gewicht').selectedIndex) ? 'block' : 'none');
			if ('0' == document.getElementById('ksitz-data-alter').selectedIndex || '0' == document.getElementById('ksitz-data-gewicht').selectedIndex) {
				
				return false;
				
			}
			
			document.getElementById('ksitz-zumkind').className		= 'wizard-step-complete';
			document.getElementById('ksitz-sitzdetails').className	= 'wizard-step-current item-expanded';
			document.getElementById('ksitz-bewertung').className	= 'wizard-step-pending';
			break;
		
		case 2:
			document.getElementById('ksitz-zumkind').className		= 'wizard-step-complete';
			document.getElementById('ksitz-sitzdetails').className	= 'wizard-step-complete';
			document.getElementById('ksitz-bewertung').className	= 'wizard-step-current item-expanded';
			break;
		
		case 3:
			document.getElementById('frm-kontakt').submit();
			break;
		
		default:
			document.getElementById('ksitz-zumkind').className		= 'wizard-step-complete';
			document.getElementById('ksitz-sitzdetails').className	= 'wizard-step-current item-expanded';
			document.getElementById('ksitz-bewertung').className	= 'wizard-step-pending';
			break;
		
	}
	return false;
	
}


/**
 * Bestimmen der Ansicht der Iso-Frage im letzten Schritt
 */
function ksomSwitchIsoDisplay(status) {
	
	switch (parseInt(status)) {
		
		case 0:
			document.getElementById('ksomIsoDisplay').style.display = 'none';
			break;
			
		default:
			document.getElementById('ksomIsoDisplay').style.display = 'block';
			break;
		
	}
	return false;
	
}

