function raschet()
{
	dom = document.getElementById('select1').value;
	pr = document.getElementById('select2').value;
	metr = document.getElementById('select0').value;
	
if (pr == 1)
	{ 
		if (dom == 1) 
		{
			if (metr == 1) { result = 1100; text = 'Ваш бонус - визуализация 1-го помещения в АrchiCAD'; }
			if (metr == 2) { result = 1045; text = 'Ваша выгода - 5%'; }
			if (metr == 3) { result = 990; text = 'Ваша выгода - 10%'; }
			if (metr == 4) { result = 880; text = 'Ваша выгода - 20%'; }
			if (metr == 5) { result = 0; text = ''; }
		}
		
		if (dom == 2)
		{ 
			if (metr == 1) { result = 880; text = 'Ваш бонус - визуализация 1-го помещения в АrchiCAD'; }
			if (metr == 2) { result = 836; text = 'Ваша выгода     -  5%'; }
			if (metr == 3) { result = 792; text = 'Ваша выгода     -  10%'; }
			if (metr == 4) { result = 704; text = 'Ваша выгода     -  20%'; }
			if (metr == 5) { result = 0; text = ''; }
		}
		
		if (dom == 3)
		{
			if (metr == 1) { result = 0; text = 'Ваш бонус - визуализация 1-го помещения в АrchiCAD'; }
			if (metr == 2) { result = 0; text = 'Ваша выгода - 5%'; }
			if (metr == 3) { result = 0; text = 'Ваша выгода - 10%'; }
			if (metr == 4) { result = 0; text = 'Ваша выгода - 20%'; }
			if (metr == 5) { result = 0; text = ''; }
		}
	}

if (pr == 2)
	{ 
		if (dom == 1) 
		{
			if (metr == 1) { result = 1800; text = 'Ваш бонус - дополнительная поездка с дизайнером на подбор материалов'; }
			if (metr == 2) { result = 1710; text = 'Ваша выгода - 5%'; }
			if (metr == 3) { result = 1620; text = 'Ваша выгода - 10%'; }
			if (metr == 4) { result = 1440; text = 'Ваша выгода - 20%'; }
			if (metr == 5) { result = 0; text = ''; }
		}
		
		if (dom == 2)
		{ 
			if (metr == 1) { result = 1440; text = 'Ваш бонус - дополнительная поездка с дизайнером на подбор материалов'; }
			if (metr == 2) { result = 1368; text = 'Ваша выгода - 5%'; }
			if (metr == 3) { result = 1296; text = 'Ваша выгода - 10%'; }
			if (metr == 4) { result = 1152; text = 'Ваша выгода - 20%'; }
			if (metr == 5) { result = 0; text = ''; }
		}
		
		if (dom == 3)
		{
			if (metr == 1) { result = 0; text = 'Ваш бонус - дополнительная поездка с дизайнером на подбор материалов'; }
			if (metr == 2) { result = 0; text = 'Ваша выгода - 5%'; }
			if (metr == 3) { result = 0; text = 'Ваша выгода - 10%'; }
			if (metr == 4) { result = 0; text = 'Ваша выгода - 20%'; }
			if (metr == 5) { result = 0; text = ''; }
		}
	}
	
if (pr == 3)
	{ 
		if (dom == 1) 
		{
			if (metr == 1) { result = 2400; text = 'Ваш бонус - авторский надзор в течение 1 месяца, с выездом  дизайнера на объект 1 раз в неделю.'; }
			if (metr == 2) { result = 2280; text = 'Ваша выгода - 5%'; }
			if (metr == 3) { result = 2160; text = 'Ваша выгода - 10%'; }
			if (metr == 4) { result = 1920; text = 'Ваша выгода - 20%'; }
			if (metr == 5) { result = 0; text = ''; }
		}
		
		if (dom == 2)
		{ 
			if (metr == 1) { result = 1920; text = 'Ваш бонус - авторский надзор в течение 1 месяца, с выездом  дизайнера на объект 1 раз в неделю.'; }
			if (metr == 2) { result = 1824; text = 'Ваша выгода - 5%'; }
			if (metr == 3) { result = 1728; text = 'Ваша выгода - 10%'; }
			if (metr == 4) { result = 1536; text = 'Ваша выгода - 20%'; }
			if (metr == 5) { result = 0; text = ''; }
		}
		
		if (dom == 3)
		{
			if (metr == 1) { result = 0; text = 'Ваш бонус - авторский надзор в течение 1 месяца, с выездом  дизайнера на объект 1 раз в неделю.'; }
			if (metr == 2) { result = 0; text = 'Ваша выгода - 5%'; }
			if (metr == 3) { result = 0; text = 'Ваша выгода - 10%'; }
			if (metr == 4) { result = 0; text = 'Ваша выгода - 20%'; }
			if (metr == 5) { result = 0; text = ''; }
		}
	}
	
	//summa = ((metr * mkof) * (prsumm * dkof));
	//summa = Math.round(summa/1000);
	//document.getElementById('res').innerHTML=summa.toFixed(0);
	
	if (result == 0) 
	{
		document.getElementById('res').innerHTML='по договорённости';
	} 
	else
	{
		document.getElementById('res').innerHTML=result.toFixed(0);
		document.getElementById('img1').innerHTML='<img scr="../images/prototip_img.jpg">';
	}
	
	document.getElementById('text').innerHTML=text;
}