function priceCalc(selectName,tva,price){
var optionNb = eval(document.getElementById(selectName).value);
var addResult = 0;
var basePrice = parseFloat(price);
var tvaCoef = 1+(tva/100);
var reg = new RegExp("[,]+", "g");
var regOption = new RegExp("[;]+", "g");
var optionListArray = productPriceArray.split(reg);
for(var i=0; i<optionListArray.length; i++){
	var optionArray = optionListArray[i].split(regOption);
	if(optionArray[0] == optionNb)
	{
		addResult = parseFloat(optionArray[1]);
	}
}
newPriceResult = (basePrice + addResult) * tvaCoef;
document.getElementById("priceResult").innerHTML = FormatNumber(newPriceResult) + '&euro;';
}

function FormatNumber(NbToFomat){
var number = 0;
number = Math.round(NbToFomat*100)/100;
number = number.toFixed(2);

return number;

}