// Конверсия скорости

var chk6=true;
var D6=0;
var n6=0;
D6v=new Array(1, 0.277778, 0.447040, 0.304800, 0.0254000, 331.680, 343.610, 1404.00, 1483.00, 1449.20, 1563.50);
switch (lng) {
	case "eng":
D6n=new Array("m/s", "km/h", "mile/h", "ft/s", "in/s", "Mach [0C, 1atm]", "Mach [20C, 1atm]", "sound [H2O, 0C]", "sound [H2O, 20C]", "sound [Sea, 0C]", "sound [Sea, 20C]");
	break;
	case "rus":
D6n=new Array("m/c", "km/h", "mile/h", "ft/s", "in/s", "число Маха [0C, 1atm]", "число Маха [20C, 1atm]", "звука [H2O, 0C]", "звука [H2O, 20C]", "звука [Sea, 0C]", "звука [Sea, 20C]");
	break;
	default:
	break;
	}

function res6()
{D6=0;
n6=0;
chk6=true;}

function insert6()
{
chk6=true;
n6 = parseFloat(document.dim6.n.value.replace(/,/g,".")); 
if(isNaN(n6)){alert(alt08_01); document.dim6.n.focus(); return true;};
D6 = document.dim6.D.selectedIndex
n6 = Math.abs(n6);
document.dim6.na.value=n6+D6n[D6];
chk6=false;
}

function insertN6()
{
if(chk6){return true};
insert6()
}

function calc6()
{
if(chk6){return true};
Da = document.dim6.D.selectedIndex;
n_new=n6*D6v[D6]/D6v[Da];
document.dim6.n.value =n_new; 
}
