	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 erase(){
			document.formCarTyreSelector.marque.selectedIndex = '0';
			document.formCarTyreSelector.marque.className ='UnSelected100';

			
			document.formCarTyreSelector.gamme.selectedIndex = '0';
			document.formCarTyreSelector.gamme.className ='UnSelected100';
			document.formCarTyreSelector.gamme.disabled ='true';

			document.formCarTyreSelector.modele.selectedIndex = '0';
			document.formCarTyreSelector.modele.className ='UnSelected100';
			document.formCarTyreSelector.modele.disabled ='true';
			
			document.formCarTyreSelector.cylindree.selectedIndex = '0';
			document.formCarTyreSelector.cylindree.className ='UnSelected100';
			document.formCarTyreSelector.cylindree.disabled ='true';
			
			document.formCarTyreSelector.annee.selectedIndex = '0';
			document.formCarTyreSelector.annee.className ='UnSelected100';
			document.formCarTyreSelector.annee.disabled ='true';
			

			document.formTyreTyreSelector.selectLargeur.value= 'no_selection'
			document.formTyreTyreSelector.selectLargeur.className ='UnSelected100';

			document.formTyreTyreSelector.selectHB.selectedIndex = '0';
			document.formTyreTyreSelector.selectHB.className ='UnSelected100';
			document.formTyreTyreSelector.selectHB.disabled ='true';

			document.formTyreTyreSelector.selectSeat.selectedIndex = '0';
			document.formTyreTyreSelector.selectSeat.className ='UnSelected100';
			document.formTyreTyreSelector.selectSeat.disabled ='true';

			document.formTyreTyreSelector.selectIC.selectedIndex = '0';
			document.formTyreTyreSelector.selectIC.className ='UnSelected100';
			document.formTyreTyreSelector.selectIC.disabled ='true';

			document.formTyreTyreSelector.selectIV.selectedIndex = '0';
			document.formTyreTyreSelector.selectIV.className ='UnSelected100';
			document.formTyreTyreSelector.selectIV.disabled ='true';
	}
	
	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();
		}
	}	

