var nasos_cost, skvazh_cost, skvazh, glub, glub_1_tot, glub_1_tot, gidrofor_cost, glub, total, const_price, skvazh_price;
function current_price()
{
    nasos_cost = 0;
	nasos_cost = document.smeta.nasos.value;
    document.smeta.nasos_price.value = nasos_cost;
}
function nas_glub()
{
    skvazh = 0;
    skvazh = document.smeta.glubina.value;
    glub = 0;
	nasos_price = 0;
    glub = skvazh * 1 + 10.0;
    glub_1_tot = glub * 2.2
    glub_2_tot = glub * 2
    skvazh_cost = skvazh * 60;
    document.smeta.skvazh_res.value = skvazh_cost;
    document.smeta.glub_res_1.value = glub;
    document.smeta.glub_res_2.value = glub;
    document.smeta.glub_res_1_tot.value = glub_1_tot;
    document.smeta.glub_res_2_tot.value = glub_2_tot;
	document.smeta.tros_1.value = skvazh;
	document.smeta.tros_2.value = skvazh;
	nasos_price = skvazh_cost * 1+70;
	document.smeta.skvazh_res_2.value = nasos_price;
}
function gidrofor_price()
{
    gidrofor_cost = 0;
    gidrofor_cost = document.smeta.gidrofor.value;
    document.smeta.gidro_res_1.value = gidrofor_cost;
	document.smeta.gidro_res_2.value = gidrofor_cost;
	total = 0;
	const_price = 926;
	total = (nasos_cost * 1) + (skvazh_cost * 1) + (gidrofor_cost * 1) + (const_price * 1) + (glub_1_tot * 1) + (glub_2_tot * 1) + (skvazh * 1);
	document.smeta.total_end.value = total;
}
function total_result()
{
	total = 0;
	const_price = 926;
	total = (nasos_cost * 1) + (skvazh_cost * 1) + (gidrofor_cost * 1) + (const_price * 1) + (glub_1_tot * 1) + (glub_2_tot * 1) + (skvazh * 1);
	document.smeta.total_end.value = total;
}

