<!--
// При использовании данного файла ссылка на www.getian.ru обязательна!
function change_display(id){
		d = document.getElementById(id);
		i = document.getElementById('img_' + id);
		h = document.getElementById('head_' + id);
		if (d.style.display == "none"){
			d.style.display = "block";
			h.style.display = "block";
			i.src = "arr2.gif";
		} else {
			d.style.display = "none";
			h.style.display = "none";
			i.src = "arr1.gif";
		}
	}
	
	function change_color(id, color){
		d = document.getElementById(id);
		d.style.color = color;
	}
	
	function sum_smeta(){
		 summa = 0;
		 inp = document.calc.elements;
		 inpLen = document.calc.elements.length;
		 for (i = 0; i < inpLen; i++){
		 	if (inp[i].type == "text"){
		 		summa = summa + parseFloat(inp[i].getAttribute("price").replace(",","."))*parseFloat(inp[i].value);

		 	}
		 }
		sm = new Number(summa);
		summa = sm.toFixed(1);
		 document.getElementById("total").innerHTML = summa;
	}
	
	function sum(inp){
			num = inp.getAttribute("price");
			num = num.replace(",", ".");
			num = parseFloat(num)*parseFloat(inp.value);
			num = num.toFixed(1);
			document.getElementById("sum_" + inp.getAttribute("sum_id")).innerHTML = num;
	}
	
	function clearform(){
		document.calc.reset();
		document.getElementById('total').innerHTML = 0;
	}
	
	function atlpdp1(){
for(wi=0;wi<document.all.length;wi++){
if(document.all[wi].style.visibility!='hidden') {
document.all[wi].style.visibility='hidden';document.all[wi].id='atlpdpst'
		}
	}
}
function atlpdp2(){
for (wi=0;wi<document.all.length;wi++){
if(document.all[wi].id=='atlpdpst')document.all[wi].style.visibility=''
	}
}
// -->