function convertone()
{
var A=document.convertinch.inch.value
var B=document.convertinch.mm.value 
var C=Math.round((B/25.4)*1000)/1000;
var D=Math.round(A*25.4*1000)/1000;
if (A=="")
	{
	document.convertinch.inch.value=C
	}
	else 
		{
		document.convertinch.mm.value=D
		}
	
}
function conversion()
{
var A=document.convert.kg.value;
var B=document.convert.lbs.value;
var C=Math.round(A*2.20*1000)/1000;
var D=Math.round((B/2.20)*1000)/1000;
if (A=="")
	{
	document.convert.kg.value=D;
	}
	else 
		{
		document.convert.lbs.value=C
		}
}
function valuecheck1()
{
var A=Math.abs(document.ORING.ORINGstretch.value)
var B=Math.abs(document.ORING.ORINGstretch.value*100)
document.ORING.ORINGstretch.value=A
if (A<1&&A>0)
	{
	alert("Possible entry error!\nYou have entered "+A+" as the Stretch %.\nIf you meant to calculate for "+B+"% enter "+B+"");
	return;
	}
}

function valuecheck2()
{
var A=Math.abs(document.FLAT.FLATstretch.value)
var B=Math.abs(document.FLAT.FLATstretch.value*100)
document.FLAT.FLATstretch.value=A
if (A<1&&A>0)
	{
	alert("Possible entry error!\nYou have entered "+A+" as the Stretch %.\nIf you meant to calculate for "+B+"% enter "+B+"");
	return;
	}
}
function ORINGcalculate()
{
var A=1.0*document.ORING.ORINGstretch.value/100;  // Stretch % input
var B=1.0*document.ORING.ORINGdia.value;  // Cord dia input
if (document.ORING.ORINGradio[1].checked)  // The 1 is the second button, first button is 0
	{
	 var minval=3
	 var mult=0.0065
	 }
	 else
	 	{
		var minval=5;
		var mult=0.0123
		}
var C=1.0*(Math.pow(B,2)/4)*Math.PI;  //This is the Area
var D=(50*A+1)*C/mult   // Calculates needed force
document.ORING.ORINGforce.value=Math.round(D*10)/10+" lbs";  //prints the force
document.ORING.ORINGtdrop.value=Math.round((D*.6)*10)/10+" lbs"; //prints the tension drop after 1 week
}
function FLATcalculate()
{
var A=1.0*document.FLAT.FLATstretch.value/100;  // Stretch % input
var B=1.0*document.FLAT.FLATthick.value; // Thickness input
var C=1.0*document.FLAT.FLATwidth.value;  //width input
if (document.FLAT.FLATradio[1].checked)  // The 1 is the second button, first button is 0
	{
	 var minval=3
	 var mult=0.0065
	 }
	 else
	 	{
		var minval=5;
		var mult=0.0123
		}
var D=C*B;  // area
var E=((50*A+1)*D/mult); //Force
document.FLAT.FLATforce.value=Math.round(E*10)/10+" lbs";  //displays force
document.FLAT.FLATtdrop.value=Math.round(E*.6*10)/10+" lbs";// displays tension drop
}
