// Конверсия ускорения

var chk7=true;
var D7=0;
var n7=0;
D7v=new Array(1, 9.80665, 0.3047987, 0.0254000);
D7n=new Array("m/c2", "g", "ft/c2", "in/c2");

function res7()
{D7=0;
n7=0;
chk7=true;}

function insert7()
{
chk7=true;
n7 = parseFloat(document.dim7.n.value.replace(/,/g,".")); 
if(isNaN(n7)){alert(alt08_01); document.dim7.n.focus(); return true;};
D7 = document.dim7.D.selectedIndex
n7 = Math.abs(n7);
document.dim7.na.value=n7+D7n[D7];
chk7=false;
}

function insertN7()
{
if(chk7){return true};
insert7()
}

function calc7()
{
if(chk7){return true};
Da = document.dim7.D.selectedIndex;
n_new=n7*D7v[D7]/D7v[Da];
document.dim7.n.value =n_new; 
}
