// Конверсия мощности

var chk11=true;
var D11=0;
var n11=0;
D11v=new Array(1, 1.16300, 9.80665, 1.35582, 745.6998716);
switch (lng) {
	case "eng":
D11n=new Array("W", "kcal/h", "kgf-m/s", "ft-lbf/s", "horsepow.");
	break;
	case "rus":
D11n=new Array("W", "kcal/h", "kgf-m/s", "ft-lbf/s", "лош. сила");
	break;
	default:
	break;
	}

function res11()
{D11=0;
n11=0;
chk11=true;}

function insert11()
{
chk11=true;
n11 = parseFloat(document.dim11.n.value.replace(/,/g,".")); 
if(isNaN(n11)){alert(alt08_01); document.dim11.n.focus(); return true;};
D11 = document.dim11.D.selectedIndex
n11 = Math.abs(n11);
document.dim11.na.value=n11+D11n[D11];
chk11=false;
}

function insertN11()
{
if(chk11){return true};
insert11()
}

function calc11()
{
if(chk11){return true};
Da = document.dim11.D.selectedIndex;
n_new=n11*D11v[D11]/D11v[Da];
document.dim11.n.value =n_new; 
}

