DeathDji,
$(function() {
$('#load').on('change input', function() {
var e = $(this.elements),
v, f, s = 0, o = $('#info');
e.filter('[required]').each(function() {
f = this.name;
this.value = v = +$.trim(this.value) || this.min;
//s += e.filter('[name="vidlesov"]:checked').data('price') * v;
var i = document.form1.i.value,
h = document.form1.h.value;
if (i % 3 > 0) {
--i;
}
if (i % 3 > 0) {
--i;
}
if (h % 2 > 0) {
--h;
}
var el = document.querySelector('[name="vidlesov"]:checked');
var cena = {"1" : 100, "2" : 200, "3" : 300, "4" : 400}[el.value];
var section, yarus, itog;
yarus = document.form1.yarus.value;
section = (h / 2) * (i / 3);
var yarus1 = i / 3;
var sectionYarus = yarus * yarus1;//цена ригели = 30р за шт, настил = 50р за шт
var sectionYarus1 = (sectionYarus * 60) + (sectionYarus * 150);
var solid1 = section * 65;//65p цена одной сплошной
//80р цена одной шахматы
var chess = (Math.floor(section / 2)) * 65 + (Math.ceil(section / 2)) * 80;
var el1 = document.querySelector('[name="connect"]:checked');
var connection = {"1": chess, "0": solid1} [el1.value];
var ascent = document.form1.ascent.value;// price ascent 70p шт
ascent = ascent * 70;
var el2 = document.querySelector('[name="support"]:checked');
var support1 = (yarus1 + 1) * 2 * 120;//120Р цена за 1 опору
var supports = {"1": support1, "0": 0}[el2.value];
var el3 = document.querySelector('[name="bracket"]:checked');
var bracket1 = ((i / 3) + 1) * (h / 2) / 2;
bracket2 = (bracket1 ^ 0) * 30;//30 цена за 1 шт
var bracket = {"1": bracket2, "0": 0}[el3.value];
itog = cena + sectionYarus1 + ascent + connection + supports + bracket;
});
var di = document.createElement("img");
var imgContainer = document.getElementById('sect');
di.src = 'images/di.png';
//did.appendChild(di);
di.onload = function () {
imgContainer.appendChild(di);
};
console.log(di.src);
o.text(itog)
});
})