function trtBonAVoir(montantCde,montantBon,typRed)
{
	
	//alert('mince');
	//alert(montantCde);
	//alert(montantBon);
	
	var f=document.monForm;
	
	f.BonsAvoirTyp.value=typRed;
	f.BonsAvoirMt.value=montantBon;
  
  var tp = ""+montantCde;
	var posVirg = tp.indexOf(".");
	
	/*alert(tp.length);
	alert("posVirg"+posVirg);
	alert("nb dec"+(tp.length-(posVirg+1)));*/
	
	if((tp.length-(posVirg+1))==1)
	{
		var mtForm = ""+montantCde+"0";
	}		
	else
	{
		mtForm = ""+montantCde;
	}
	
	mtAff= mtForm.replace('.',',');
	
	//alert(mtAff);
	
	if(montantCde>0)
	{
		//alert('>0');
		msg = 'Nouveaux Total à regler  '+mtAff+"&nbsp;&euro;";
	}		
	else
	{
		//alert('<0');
		msg = "Rien à régler du fait de votre avoir ";
	}
	
	
	//&euro;
	//substring(position1, position2
	 
  
  document.getElementById('newTotal').style.cssText='text-underline­:none; color:red; letter-spacing:1px;'; 
  document.getElementById('newTotal').innerHTML = msg;   
	
}

function valCde()
{
	//alert(montantCde);
	
	//alert('yo');
	
	var f=document.monForm;
	
	f.action='?page=panier&panier=address';
	f.submit();
	
}