// JavaScript Document

						function calcul() {
						var nb;
						var lg;
						var ht;
						var qu;
						
						tab6=78.65;
						tab5=63.8;
						tab4=52;
						tab3=44;
						tab2=34;
						tab1=28;
						tab7=22;
						tab8=18;
						tab9=15;
						tab0=12;
						
						
						coef = document.devis.coche.value;
						lg = document.devis.lo.value;
						ht = document.devis.haut.value;
						qu = document.devis.u.value;
						m2 = lg/100*ht/100;
						tva = 1.196;
						qtot = m2 * qu;
						mini = 40;
						
						if (qtot <= 0.25)
						{
						tot = Math.round((coef * qtot * tab6 * tva)*100)/100;
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (qtot <= 0.5)
						{
						tot = Math.round((coef * qtot * tab5 * tva)*100)/100;
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (qtot <= 1)
						{
						tot = Math.round((coef * qtot * tab4 * tva)*100)/100;
								if (tot < mini) {tot=mini}
						document.devis.prix_total.value = tot;
						}
						else if (qtot <= 2)
						{
						tot = Math.round((coef * qtot * tab3 * tva)*100)/100;
						document.devis.prix_total.value = tot;
						}
						else if (qtot <= 4)
						{
						tot = Math.round((coef * qtot * tab2 * tva)*100)/100;
						document.devis.prix_total.value = tot;
						}

						else if (qtot <= 10)
						{
						tot = Math.round((coef * qtot * tab1 * tva)*100)/100;
						document.devis.prix_total.value = tot;
						}
						
						else if (qtot <= 20)
						{
						tot = Math.round((coef * qtot * tab7 * tva)*100)/100;
						document.devis.prix_total.value = tot;
						}
						else if (qtot <= 30)
						{
						tot = Math.round((coef * qtot * tab8 * tva)*100)/100;
						document.devis.prix_total.value = tot;
						}
						else if (qtot <= 50)
						{
						tot = Math.round((coef * qtot * tab9 * tva)*100)/100;
						document.devis.prix_total.value = tot;
						}
						
						
						else
						{
						tot = Math.round((coef * qtot * tab0 * tva)*100)/100;
						document.devis.prix_total.value = tot;
						}
						
						return false;
						}			
						
						
										
						
						
						
