	function updateTyreCarForm( type ){
		if (type == 'marque') {
			document.formCarTyreSelector.gamme.selectedIndex = '0';
			document.formCarTyreSelector.modele.selectedIndex = '0';
			document.formCarTyreSelector.cylindree.selectedIndex = '0';
			document.formCarTyreSelector.annee.selectedIndex = '0';
		} else if ( type == 'gamme') {
			document.formCarTyreSelector.modele.selectedIndex = '0';
			document.formCarTyreSelector.cylindree.selectedIndex = '0';
			document.formCarTyreSelector.annee.selectedIndex = '0';
		} else if ( type == 'modele') {
			document.formCarTyreSelector.cylindree.selectedIndex = '0';
			document.formCarTyreSelector.annee.selectedIndex = '0';
		} else if ( type == 'motorisation') {
			document.formCarTyreSelector.annee.selectedIndex = '0';
		}
		document.formCarTyreSelector.tyreSelectorType.value = 'car';
		document.formCarTyreSelector.action = '../auto/auto_TS.jsp';
		document.formCarTyreSelector.submit();
	} 
	function updateTyreTyreForm(){
		document.formTyreTyreSelector.tyreSelectorType.value = 'tyre';
		document.formTyreTyreSelector.action = '../auto/auto_TS.jsp#dimForm';
		document.formTyreTyreSelector.submit();
	}
	function submitTyreTyreForm(message){
            if (document.formTyreTyreSelector.selectLargeur.value=='no_selection'
                  || document.formTyreTyreSelector.selectHB.value=='no_selection'
                  || document.formTyreTyreSelector.selectSeat.value=='no_selection'
            ){
                    alert(message);
            } else {
		    		document.formTyreTyreSelector.tyreSelectorType.value = 'tyre';
                    document.formTyreTyreSelector.action = '../auto/auto_TS_resultDim.jsp';
                    document.formTyreTyreSelector.submit();
            }
	}
	function submitTyreCarForm(message){
		if (document.formCarTyreSelector.marque.value=='no_selection' 
                        || document.formCarTyreSelector.modele.value=='no_selection' 
                        || document.formCarTyreSelector.cylindree.value=='no_selection' 
                        || document.formCarTyreSelector.annee.value=='no_selection'){
			alert(message);
		} else {
			document.formCarTyreSelector.tyreSelectorType.value = 'car';
			document.formCarTyreSelector.action = '../auto/auto_TS_resultCar.jsp';
			document.formCarTyreSelector.submit();
		}
	}	
	document.writeln('<link rel="stylesheet" type="text/css" href="../styles/styles.css"> ');
