
function somme() 
{ 
    var input1 = isNaN(document.getElementById('amount1').value) ? 0 : document.getElementById('amount1').value; 
    
    var total_amount = Number(input1)*200; 

    //uniquement si suppression de la partie décimale 
    total_amount = parseInt(total_amount); 

    document.getElementById('total').value = total_amount; 
	document.getElementById('totalG').value = total_amount-420; 
	
	

   // var input12 = isNaN(document.getElementById('amount12').value) ? 0 : document.getElementById('amount12').value; 
    
    var total_amount2 = Number(input1)*130; 
	//var total_amount2 = Number(input12)*130; 

    //uniquement si suppression de la partie décimale 
    total_amount2 = parseInt(total_amount2); 

    document.getElementById('total2').value = total_amount2; 
	
	  document.getElementById('total3').value = total_amount2-450; 
	
	
	
} 
