function addRes(n, n1, n2){
	a1=document.getElementById(n1).value;
	a2=document.getElementById(n2).value;
	rr=calculate(a1, a2);
	document.getElementById(n).value=rr;
}
function calculate(m1,m2) {
	   tmp=0.0031416*m2*(m1-m2)*7.8499809;
	   tmp1=tmp-Math.round(tmp*1000)/1000;
	   tmp=tmp-tmp1;
	   return tmp;
}
