	function calculeformulaire()
		{
		var v_PrixPromenades = 12;
		var v_PrixFuninature = 12;
		var v_TauxTVA = 0.076;
		var v_NbPromenades = document.brochurestourisme.nbpromenades.value;
		var v_NbFuninature = document.brochurestourisme.nbfuninature.value;
		var v_NbPromenadesde = document.brochurestourisme.nbpromenadesde.value;
		var v_NbFuninaturede = document.brochurestourisme.nbfuninaturede.value;
		
		var v_TotalPromenades = 0;
		var v_TotalFuninature = 0;
		var v_TotalPromenadesde = 0;
		var v_TotalFuninaturede = 0;
		var v_FraisPort = 0;
		var v_TVA = 7.6;
		var v_TotalCommande = 0;
		var v_NbExemplaires = 0;
		
		v_TotalPromenades = v_NbPromenades * v_PrixPromenades;
		v_TotalFuninature = v_NbFuninature * v_PrixFuninature;
		v_TotalPromenadesde = v_NbPromenadesde * v_PrixPromenades;
		v_TotalFuninaturede = v_NbFuninaturede * v_PrixFuninature;
		v_NbExemplaires = parseInt(v_NbPromenades) + parseInt(v_NbFuninature)+parseInt(v_NbPromenadesde) + parseInt(v_NbFuninaturede);
		if (v_NbExemplaires <= 5) 
			{ v_FraisPort = 2}
		else
			{v_FraisPort = 6}
		v_TotalCommande = v_TotalPromenades + v_TotalFuninature + v_TotalPromenadesde + v_TotalFuninaturede + v_FraisPort;
	    
		v_TVA = v_TotalCommande - (v_TotalCommande/ (1+v_TauxTVA));
		
		
		
		document.brochurestourisme.totalpromenades.value = nbtotxt(v_TotalPromenades);
		document.brochurestourisme.htotalpromenades.value = nbtotxt(v_TotalPromenades);
		document.brochurestourisme.totalfuninature.value = nbtotxt(v_TotalFuninature);
		document.brochurestourisme.htotalfuninature.value = nbtotxt(v_TotalFuninature);
		document.brochurestourisme.totalpromenadesde.value = nbtotxt(v_TotalPromenadesde);
		document.brochurestourisme.htotalpromenadesde.value = nbtotxt(v_TotalPromenadesde);
		document.brochurestourisme.totalfuninaturede.value = nbtotxt(v_TotalFuninaturede);
		document.brochurestourisme.htotalfuninaturede.value = nbtotxt(v_TotalFuninaturede);
		document.brochurestourisme.fraisport.value = nbtotxt(v_FraisPort);
		document.brochurestourisme.hfraisport.value = nbtotxt(v_FraisPort);
		document.brochurestourisme.totalcommande.value = nbtotxt(v_TotalCommande);
		document.brochurestourisme.htotalcommande.value = nbtotxt(v_TotalCommande);
		document.brochurestourisme.tva.value =  nbtotxt(v_TVA);
		document.brochurestourisme.htva.value =  nbtotxt(v_TVA);

		return 1;
		
		}


