// Конверсия ДНК/белок

function convDNAp1()
{
lg=parseFloat(document.DNAp.lgDNA1.value.replace(/,/g,".")); 
if(isNaN(lg)){alert(alt06_01); document.DNAp.lgDNA1.focus(); return true;};
	document.DNAp.lgDNA1.value=Math.abs(lg);
	document.DNAp.Mwpr1.value=37*lg;
	document.DNAp.lgp1.value=Math.round(333*lg);
}
function convDNAp2()
{
Mw=parseFloat(document.DNAp.Mwpr2.value.replace(/,/g,".")); 
if(isNaN(Mw)){alert(alt06_02); document.DNAp.Mwpr2.focus(); return true;};
	document.DNAp.Mwpr2.value=Math.abs(Mw);
	document.DNAp.lgDNA2.value=Math.round(Mw/37*1000)/1000;
	document.DNAp.lgp2.value=Math.round(Mw*9);
}
function convDNAp3()
{
lgp=Math.floor(parseFloat(document.DNAp.lgp3.value)); 
if(isNaN(lgp)){alert(alt06_03); document.DNAp.lgDNA1.focus(); return true;};
	document.DNAp.lgp3.value=Math.abs(lgp);
	document.DNAp.Mwpr3.value=Math.round(11.1*lgp)/100;
	document.DNAp.lgDNA3.value=Math.round(3*lgp)/1000;
}
