// JavaScript Document

						function calcul() {
						var nb;
						var lg;
						var ht;
						var qu;
						
						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;
						qtot = m2 * qu;
						prtg=10000;
						envoi = 15;
						mini = 1;
					
						
								
						
						
						tot = Math.round((coef * qtot)*100)/100;
						document.devis.prix_total.value = tot;
								if (tot <= mini)
								{
						document.devis.total_HT.value = Math.round( (tot)*100)/100+parseInt(envoi);
						document.devis.total_ttc.value = Math.round( ((tot)*100)/100+parseInt(envoi))*(1+19.6/100);
						document.devis.total_ttc4.value = Math.round( ((tot)*100)/100+parseInt(envoi)*(1+19.6/100)*(1+50/100));
								

								}
								else
								{
									
						document.devis.total_HT.value = Math.round( (tot)*100)/100+parseInt(envoi);
						document.devis.total_ttc.value = Math.round( ((tot)*100)/100+parseInt(envoi))*(1+19.6/100);
						document.devis.total_ttc4.value = Math.round( ((tot)*100)/100+parseInt(envoi))*(1+19.6/100)*(1+50/100);


								}
						
						return false;
						}			
						
						
										
						
						
						

