// Конверсия температуры

var chk13=true;
var D13=0;
var n13=0;
D13v=new Array(273.15, 0, 32, 0, 491.67);
D13k=new Array(1, 1, 1.8, 0.8, 1.8);
D13n=new Array("K", "C", "F", "R", "Ran");

function res13()
{D13=0;
n13=0;
chk13=true;}

function insert13()
{
chk13=true;
n13 = parseFloat(document.dim13.n.value.replace(/,/g,".")); 
if(isNaN(n13)){alert(alt08_01); document.dim13.n.focus(); return true;};
D13 = document.dim13.D.selectedIndex
document.dim13.na.value=n13+D13n[D13];
chk13=false;
}

function insertN13()
{
if(chk13){return true};
insert13()
}

function calc13()
{
if(chk13){return true};
Da = document.dim13.D.selectedIndex;
n_new=D13v[Da]+(n13-D13v[D13])*D13k[Da]/D13k[D13];
document.dim13.n.value =n_new; 
}
