// Конверсия давления

var chk9=true;
var D9=0;
var n9=0;
D9v=new Array(10000, 1, 10332.27, 10197.16, 10.19716, 101971.6, 101.9716, 0.1019716, 345.3155, 135.951, 13.5951, 1.00000, 0.01019716, 4.882428, 703.0696);
D9n=new Array("kg/cm2", "kg/m2", "atm", "bar", "mbar", "MP", "kP", "P", "inch Hg", "cm Hg", "mm Hg [Torr]", "mm H2O", "dyne/cm2", "pound/foot2", "pound/inch2 [psi]");

function res9()
{D9=0;
n9=0;
chk9=true;}

function insert9()
{
chk9=true;
n9 = parseFloat(document.dim9.n.value.replace(/,/g,".")); 
if(isNaN(n9)){alert(alt08_01); document.dim9.n.focus(); return true;};
D9 = document.dim9.D.selectedIndex
n9 = Math.abs(n9);
document.dim9.na.value=n9+D9n[D9];
chk9=false;
}

function insertN9()
{
if(chk9){return true};
insert9()
}

function calc9()
{
if(chk9){return true};
Da = document.dim9.D.selectedIndex;
n_new=n9*D9v[D9]/D9v[Da];
document.dim9.n.value =n_new; 
}

