И вот еще, спойлер не нашел.
var TOprice; // TimeOut ID
var MSprice = 300; // delay in MilliSeconds
var OBJcurrentMatiere = null;
var OBJcurrentEPset = null;
var OBJepRD;
OBJepRD = null;
var priceMIN = 5;
var valFP = 15;
var valVATrate = 1.196;
var aCOEFd = new Array(5);
aCOEFd[0] = 0.0000078; // Acier brut
aCOEFd[1] = 0.0000078; // Acier décapé
aCOEFd[2] = 0.0000028; // Aluminium
aCOEFd[3] = 0.0000078; // Inox brossé
aCOEFd[4] = 0.0000078; // Inox brut
var aCOEFz = new Array(5);
aCOEFz[0] = 1.8; // Acier brut
aCOEFz[1] = 2; // Acier décapé
aCOEFz[2] = 12; // Aluminium
aCOEFz[3] = 12; // Inox brossé
aCOEFz[4] = 10; // Inox brut
// ================================================
function fnAddToCart(category,categorystr,name,namestr,imagewh,nrdim,price,chr) {
var i;
var NRix = fnNRpanierOBJ(); // new item in panier has IndeX NR
localStorage["panier.pc."+NRix+".chr"] = chr;
localStorage["panier.pc."+NRix+".imagewh"] = imagewh;
localStorage["panier.pc."+NRix+".categorystr"] = categorystr;
localStorage["panier.pc."+NRix+".namestr"] = namestr;
localStorage["panier.pc."+NRix+".category"] = category;
localStorage["panier.pc."+NRix+".name"] = name;
var matIX = OBJcurrentMatiere.attr('data-ix');
localStorage["panier.pc."+NRix+".matIX"] = matIX.toString();
var RDix = null;
var MATname = OBJcurrentMatiere.attr('data-name');
var L = document.getElementsByName('RDep_'+MATname).length;
for (i=0;i < L;i++) {
if ($('#RDep_'+MATname+i).get(0).checked) {
RDix = i;
break;
}
}
localStorage["panier.pc."+NRix+".epMM"] = $('#RDep_'+MATname+RDix).get(0).value.toString();
var dim = "";
for (i=0;i < nrdim;i++) {
dim += (dim == "") ? "" : "*";
dim += $('#INPval'+String.fromCharCode(65+i)).val();
}
localStorage["panier.pc."+NRix+".dim"] = dim;
localStorage["panier.pc."+NRix+".price"] = price;
// keep the record : current # items in panier (increase this # but some can be deleted)
NRix++;
localStorage["panier.pc.nr"] = NRix.toString();
$('#SPmonPanierNR').html(fnNRpanierOBJpresent());
}
// ================================================
function fnBlurCurrentMatiere() {
$('input',OBJcurrentMatiere).blur();
}
// ================================================
function fnBlurEPradio() {
$('input',OBJepRD).blur();
}
// ================================================
function fnTFresizeColumns() {
var maxH = 0;
var C1 = $("#PCcolumn1").height();
var C2 = $("#PCcolumn2").height();
var C3 = $("#PCcolumn3").height();
maxH = (C1 > maxH) ? C1 : maxH;
maxH = (C2 > maxH) ? C2 : maxH;
maxH = (C3 > maxH) ? C3 : maxH;
$("#PCcolumn1").height(maxH);
$("#PCcolumn2").height(maxH);
$("#PCcolumn3").height(maxH);
}
// ================================================
function fnFormatPrice(n) {
n = "" + Math.round(100 * n);
var Ls = n.length;
n = n.substr(0,Ls-2) + ',' + n.substr(Ls-2,2);
return n;
}
// ================================================
function fnSymbolChange(TH) {
$('#chr').text($(TH).val());
}