function produitPlus(produit) {
	if(isNaN(trim(document.getElementById(produit).value))) {
		document.getElementById(produit).value=1;
	} else if(trim(document.getElementById(produit).value)=="") {
		document.getElementById(produit).value=1;
	} else {
		document.getElementById(produit).value=parseInt(document.getElementById(produit).value)+1;
	}
}
function produitMoins(produit) {
	if(isNaN(trim(document.getElementById(produit).value))) {
		document.getElementById(produit).value=0;
	} else if(trim(document.getElementById(produit).value)=="" || trim(document.getElementById(produit).value)<1) {
		document.getElementById(produit).value=0;
	} else {
		document.getElementById(produit).value=parseInt(document.getElementById(produit).value)-1;
	}
}
function trim(s) {
    return s.replace(/^\s+/, '').replace(/\s+$/, '');
}