function current_ampere(i)
{
	if(i==0)  { result = (val);	unit = " A"; } // ampere
	if(i==1)  { result = (val*1000) ; unit = " mA"; } // milliampere
 	if(i==2)  { result = (val*1000000); unit = " &#181;A"; } // microampere
	if(i==3)  { result = (val*2997924537); unit = " sA"; }  // statampere
	if(i==4)  { result = (val*0.1);  unit = " aA"; } // abampere
	if(i==5)  { result = (val*2997924537);  unit = " ESU"; } // electrostatic unit of current
	if(i==6)  { result = (val*0.1);  unit = " EMU"; } // electromagnetic unit of current
	if(i==7)  { result = (val*1.256637086);  unit = " Gb"; } // gilbert

	return result;
}

function current_milliampere(i)
{
	if(i==0)  { result = (val*0.001);	unit = " A"; } // ampere
	if(i==1)  { result = (val) ; unit = " mA"; } // milliampere
 	if(i==2)  { result = (val*1000); unit = " &#181;A"; } // microampere
	if(i==3)  { result = (val*2997924.537); unit = " sA"; }  // statampere
	if(i==4)  { result = (val*0.0001);  unit = " aA"; } // abampere
	if(i==5)  { result = (val*2997924.537);  unit = " ESU"; } // electrostatic unit of current
	if(i==6)  { result = (val*0.0001);  unit = " EMU"; } // electromagnetic unit of current
	if(i==7)  { result = (val*0.001256637086);  unit = " Gb"; } // gilbert

	return result;
}

function current_microampere(i)
{
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-006);	unit = " A"; } // ampere 
	if(i==1)  { result = (val*0.001) ; unit = " mA"; } // milliampere
 	if(i==2)  { result = (val); unit = " &#181;A"; } // microampere
	if(i==3)  { result = (val*2997.924537); unit = " sA"; }  // statampere
	if(i==4)  { result = (val*parseFloat(1))*Math.pow(10,-007);  unit = " aA"; } // abampere 
	if(i==5)  { result = (val*2997.924537);  unit = " ESU"; } // electrostatic unit of current
	if(i==6)  { result = (val*parseFloat(1))*Math.pow(10,-007);  unit = " EMU"; } // electromagnetic unit of current
	if(i==7)  { result = (val*parseFloat(1.256637086))*Math.pow(10,-006);  unit = " Gb"; } // gilbert 

	return result;
}

function current_statampere(i)
{
	if(i==0)  { result = (val*parseFloat(3.335640999825))*Math.pow(10,-10);	unit = " A"; } // ampere  
	if(i==1)  { result = (val*parseFloat(3.335640999825))*Math.pow(10,-007) ; unit = " mA"; } // milliampere 
 	if(i==2)  { result = (val*0.0003335640999825); unit = " &#181;A"; } // microampere
	if(i==3)  { result = (val); unit = " sA"; }  // statampere
	if(i==4)  { result = (val*parseFloat(3.335640999825))*Math.pow(10,-11);  unit = " aA"; } // abampere 
	if(i==5)  { result = (val);  unit = " ESU"; } // electrostatic unit of current
	if(i==6)  { result = (val*parseFloat(3.335640999825))*Math.pow(10,-11);  unit = " EMU"; } // electromagnetic unit of current
	if(i==7)  { result = (val*parseFloat(4.191690185963))*Math.pow(10,-10);  unit = " Gb"; } // gilbert  

	return result;
}

function current_abampere(i)
{
	if(i==0)  { result = (val*10);	unit = " A"; } // ampere  
	if(i==1)  { result = (val*10000) ; unit = " mA"; } // milliampere 
 	if(i==2)  { result = (val*10000000); unit = " &#181;A"; } // microampere
	if(i==3)  { result = (val*29979245370); unit = " sA"; }  // statampere
	if(i==4)  { result = (val);  unit = " aA"; } // abampere 
	if(i==5)  { result = (val*29979245370);  unit = " ESU"; } // electrostatic unit of current
	if(i==6)  { result = (val);  unit = " EMU"; } // electromagnetic unit of current
	if(i==7)  { result = (val*12.56637086);  unit = " Gb"; } // gilbert  

	return result;
}

function current_electrostatic_unit_of_current(i)
{
	if(i==0)  { result = (val*parseFloat(3.335640999825))*Math.pow(10,-10);	unit = " A"; } // ampere 
	if(i==1)  { result = (val*parseFloat(3.335640999825))*Math.pow(10,-007) ; unit = " mA"; } // milliampere 
 	if(i==2)  { result = (val*0.0003335640999825); unit = " &#181;A"; } // microampere
	if(i==3)  { result = (val); unit = " sA"; }  // statampere
	if(i==4)  { result = (val*parseFloat(3.335640999825))*Math.pow(10,-11);  unit = " aA"; } // abampere 
	if(i==5)  { result = (val);  unit = " ESU"; } // electrostatic unit of current
	if(i==6)  { result = (val*parseFloat(3.335640999825))*Math.pow(10,-11);  unit = " EMU"; } // electromagnetic unit of current 
	if(i==7)  { result = (val*parseFloat(4.191690185963))*Math.pow(10,-10);  unit = " Gb"; } // gilbert   

	return result;
}

function current_electromagnetic_unit_of_current(i)
{
	if(i==0)  { result = (val*10);	unit = " A"; } // ampere 
	if(i==1)  { result = (val*10000) ; unit = " mA"; } // milliampere 
 	if(i==2)  { result = (val*10000000); unit = " &#181;A"; } // microampere
	if(i==3)  { result = (val*29979245370); unit = " sA"; }  // statampere
	if(i==4)  { result = (val);  unit = " aA"; } // abampere 
	if(i==5)  { result = (val*29979245370);  unit = " ESU"; } // electrostatic unit of current
	if(i==6)  { result = (val);  unit = " EMU"; } // electromagnetic unit of current 
	if(i==7)  { result = (val*12.56637086);  unit = " Gb"; } // gilbert   

	return result;
}

function current_gilbert(i)
{
	if(i==0)  { result = (val*0.7957746999041);	unit = " A"; } // ampere 
	if(i==1)  { result = (val*795.7746999041) ; unit = " mA"; } // milliampere 
 	if(i==2)  { result = (val*795774.6999041); unit = " &#181;A"; } // microampere
	if(i==3)  { result = (val*2385672498.766); unit = " sA"; }  // statampere
	if(i==4)  { result = (val*0.07957746999041);  unit = " aA"; } // abampere 
	if(i==5)  { result = (val*2385672498.766);  unit = " ESU"; } // electrostatic unit of current
	if(i==6)  { result = (val*0.07957746999041);  unit = " EMU"; } // electromagnetic unit of current 
	if(i==7)  { result = (val);  unit = " Gb"; } // gilbert   

	return result;
}

function voltage_volt(i)
{
	if(i==0)  { result = (val);	unit = " V"; } // volt
	if(i==1)  { result = (val*1000) ; unit = " mV"; } // millivolt
 	if(i==2)  { result = (val*1000000); unit = " &#181;V"; } // microvolt
	if(i==3)  { result = (val*1000000000000); unit = " pV"; }  // picovolt
	if(i==4)  { result = (val*100000000);  unit = " abV"; } // abvolt
	if(i==5)  { result = (val*0.003335640485);  unit = " sV"; } // statvolt
	if(i==6)  { result = (val*0.003335640485);  unit = " ESU"; } //  electrostatic unit of elec poten
	if(i==7)  { result = (val*100000000);  unit = " EMU"; } // electromagnetic unit of elec poten  

	return result;
}

function voltage_millivolt(i)
{
	if(i==0)  { result = (val*0.001);	unit = " V"; } // volt
	if(i==1)  { result = (val) ; unit = " mV"; } // millivolt
 	if(i==2)  { result = (val*1000); unit = " &#181;V"; } // microvolt
	if(i==3)  { result = (val*1000000000); unit = " pV"; }  // picovolt
	if(i==4)  { result = (val*100000);  unit = " abV"; } // abvolt
	if(i==5)  { result = (val*parseFloat(3.335640485))*Math.pow(10,-006);  unit = " sV"; } // statvolt 
	if(i==6)  { result = (val*parseFloat(3.335640485))*Math.pow(10,-006);  unit = " ESU"; } //  electrostatic unit of elec poten 
	if(i==7)  { result = (val*100000);  unit = " EMU"; } // electromagnetic unit of elec poten  

	return result;
}

function voltage_microvolt(i)
{
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-006);	unit = " V"; } // volt 
	if(i==1)  { result = (val*0.001) ; unit = " mV"; } // millivolt
 	if(i==2)  { result = (val); unit = " &#181;V"; } // microvolt
	if(i==3)  { result = (val*1000000); unit = " pV"; }  // picovolt
	if(i==4)  { result = (val*100);  unit = " abV"; } // abvolt
	if(i==5)  { result = (val*parseFloat(3.335640485))*Math.pow(10,-009);  unit = " sV"; } // statvolt 
	if(i==6)  { result = (val*parseFloat(3.335640485))*Math.pow(10,-009);  unit = " ESU"; } //  electrostatic unit of elec poten 
	if(i==7)  { result = (val*100);  unit = " EMU"; } // electromagnetic unit of elec poten  

	return result;
}

function voltage_picovolt(i)
{
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-12);	unit = " V"; } // volt 
	if(i==1)  { result = (val*parseFloat(1))*Math.pow(10,-009) ; unit = " mV"; } // millivolt
 	if(i==2)  { result = (val*parseFloat(1))*Math.pow(10,-006); unit = " &#181;V"; } // microvolt
	if(i==3)  { result = (val); unit = " pV"; }  // picovolt
	if(i==4)  { result = (val*0.0001);  unit = " abV"; } // abvolt
	if(i==5)  { result = (val*parseFloat(3.335640485))*Math.pow(10,-15);  unit = " sV"; } // statvolt 
	if(i==6)  { result = (val*parseFloat(3.335640485))*Math.pow(10,-15);  unit = " ESU"; } //  electrostatic unit of elec poten 
	if(i==7)  { result = (val*0.0001);  unit = " EMU"; } // electromagnetic unit of elec poten  

	return result;
}

function voltage_abvolt(i)
{
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-008);	unit = " V"; } // volt 
	if(i==1)  { result = (val*parseFloat(1))*Math.pow(10,-005) ; unit = " mV"; } // millivolt
 	if(i==2)  { result = (val*0.01); unit = " &#181;V"; } // microvolt
	if(i==3)  { result = (val*10000); unit = " pV"; }  // picovolt
	if(i==4)  { result = (val);  unit = " abV"; } // abvolt
	if(i==5)  { result = (val*parseFloat(3.335640485))*Math.pow(10,-11);  unit = " sV"; } // statvolt  e-011
	if(i==6)  { result = (val*parseFloat(3.335640485))*Math.pow(10,-11);  unit = " ESU"; } //  electrostatic unit of elec poten
	if(i==7)  { result = (val);  unit = " EMU"; } // electromagnetic unit of elec poten  

	return result;
}

function voltage_statvolt(i)
{
	if(i==0)  { result = (val*299.7924999702);	unit = " V"; } // volt 
	if(i==1)  { result = (val*299792.4999702) ; unit = " mV"; } // millivolt
 	if(i==2)  { result = (val*299792499.9702); unit = " &#181;V"; } // microvolt
	if(i==3)  { result = (val*parseFloat(2.997924999702))*Math.pow(10,14); unit = " pV"; }  // picovolt 
	if(i==4)  { result = (val*29979249997.02);  unit = " abV"; } // abvolt
	if(i==5)  { result = (val);  unit = " sV"; } // statvolt  
	if(i==6)  { result = (val);  unit = " ESU"; } //  electrostatic unit of elec poten
	if(i==7)  { result = (val*29979249997.02);  unit = " EMU"; } // electromagnetic unit of elec poten  

	return result;
}

function voltage_electrostatic_unit_of_elec_poten(i)
{
	if(i==0)  { result = (val*299.7924999702);	unit = " V"; } // volt 
	if(i==1)  { result = (val*299792.4999702) ; unit = " mV"; } // millivolt
 	if(i==2)  { result = (val*299792499.9702); unit = " &#181;V"; } // microvolt
	if(i==3)  { result = (val*parseFloat(2.997924999702))*Math.pow(10,14); unit = " pV"; }  // picovolt  e+014
	if(i==4)  { result = (val*29979249997.02);  unit = " abV"; } // abvolt
	if(i==5)  { result = (val);  unit = " sV"; } // statvolt  
	if(i==6)  { result = (val);  unit = " ESU"; } //  electrostatic unit of elec poten
	if(i==7)  { result = (val*29979249997.02);  unit = " EMU"; } // electromagnetic unit of elec poten  

	return result;
}

function voltage_electromagnetic_unit_of_elec_poten(i)
{
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-008);	unit = " V"; } // volt  
	if(i==1)  { result = (val*parseFloat(1))*Math.pow(10,-005); unit = " mV"; } // millivolt
 	if(i==2)  { result = (val*0.01); unit = " &#181;V"; } // microvolt
	if(i==3)  { result = (val*10000); unit = " pV"; }  // picovolt  
	if(i==4)  { result = (val);  unit = " abV"; } // abvolt
	if(i==5)  { result = (val*parseFloat(3.335640485))*Math.pow(10,-11);  unit = " sV"; } // statvolt 
	if(i==6)  { result = (val*parseFloat(3.335640485))*Math.pow(10,-11);  unit = " ESU"; } //  electrostatic unit of elec poten
	if(i==7)  { result = (val);  unit = " EMU"; } // electromagnetic unit of elec poten  

	return result;
}

function inductance_henry(i)
{
	if(i==0)  { result = (val);	unit = " H"; } // henry
	if(i==1)  { result = (val*1000); unit = " mH"; } // millihencry
 	if(i==2)  { result = (val*1000000); unit = " &#181;H"; } // microhenry 
	if(i==3)  { result = (val*parseFloat(1.112650277))*Math.pow(10,-12); unit = " sH"; }  // stathenry 
	if(i==4)  { result = (val*1000000000);  unit = " aH"; } // abhenry
	if(i==5)  { result = (val*parseFloat(1.112650277))*Math.pow(10,-12);  unit = " ESU"; } //  electrostatic unit of inductance
	if(i==6)  { result = (val*1000000000);  unit = " EMU"; } // electromagnetic unit of inductance

	return result;
}

function inductance_millihenry(i)
{
	if(i==0)  { result = (val*0.001);	unit = " H"; } // henry
	if(i==1)  { result = (val); unit = " mH"; } // millihencry
 	if(i==2)  { result = (val*1000); unit = " &#181;H"; } // microhenry 
	if(i==3)  { result = (val*parseFloat(1.112650277))*Math.pow(10,-15); unit = " sH"; }  // stathenry  
	if(i==4)  { result = (val*1000000);  unit = " aH"; } // abhenry
	if(i==5)  { result = (val*parseFloat(1.112650277))*Math.pow(10,-15);  unit = " ESU"; } //  electrostatic unit of inductance
	if(i==6)  { result = (val*1000000);  unit = " EMU"; } // electromagnetic unit of inductance

	return result;
}

function inductance_microhenry(i)
{
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-006);	unit = " H"; } // henry 
	if(i==1)  { result = (val*0.001); unit = " mH"; } // millihencry 
 	if(i==2)  { result = (val); unit = " &#181;H"; } // microhenry 
	if(i==3)  { result = (val*parseFloat(1.112650277))*Math.pow(10,-18); unit = " sH"; }  // stathenry  
	if(i==4)  { result = (val*1000);  unit = " aH"; } // abhenry
	if(i==5)  { result = (val*parseFloat(1.112650277))*Math.pow(10,-18);  unit = " ESU"; } //  electrostatic unit of inductance
	if(i==6)  { result = (val*1000);  unit = " EMU"; } // electromagnetic unit of inductance

	return result;
}

function inductance_stathenry(i)
{
	if(i==0)  { result = (val*898755000265);	unit = " H"; } // henry 
	if(i==1)  { result = (val*parseFloat(8.98755000265))*Math.pow(10,14); unit = " mH"; } // millihencry  
 	if(i==2)  { result = (val*parseFloat(8.98755000265))*Math.pow(10,17); unit = " &#181;H"; } // microhenry 
	if(i==3)  { result = (val); unit = " sH"; }  // stathenry  
	if(i==4)  { result = (val*parseFloat(8.98755000265))*Math.pow(10,20);  unit = " aH"; } // abhenry 
	if(i==5)  { result = (val);  unit = " ESU"; } //  electrostatic unit of inductance
	if(i==6)  { result = (val*parseFloat(8.98755000265))*Math.pow(10,20);  unit = " EMU"; } // electromagnetic unit of inductance 

	return result;
}

function inductance_abhenry(i)
{ 
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-009);	unit = " H"; } // henry 
	if(i==1)  { result = (val*parseFloat(1))*Math.pow(10,-006); unit = " mH"; } // millihencry  
 	if(i==2)  { result = (val*0.001); unit = " &#181;H"; } // microhenry 
	if(i==3)  { result = (val*parseFloat(1.112650277))*Math.pow(10,-21); unit = " sH"; }  // stathenry 
	if(i==4)  { result = (val);  unit = " aH"; } // abhenry  
	if(i==5)  { result = (val*parseFloat(1.112650277))*Math.pow(10,-21);  unit = " ESU"; } //  electrostatic unit of inductance 
	if(i==6)  { result = (val);  unit = " EMU"; } // electromagnetic unit of inductance 

	return result;
}

function inductance_electrostatic_unit_of_inductance(i)
{ 
	if(i==0)  { result = (val*898755000265);	unit = " H"; } // henry 
	if(i==1)  { result = (val*parseFloat(8.98755000265))*Math.pow(10,14); unit = " mH"; } // millihencry 
 	if(i==2)  { result = (val*parseFloat(8.98755000265))*Math.pow(10,17); unit = " &#181;H"; } // microhenry 
	if(i==3)  { result = (val); unit = " sH"; }  // stathenry 
	if(i==4)  { result = (val*parseFloat(8.98755000265))*Math.pow(10,20);  unit = " aH"; } // abhenry 
	if(i==5)  { result = (val);  unit = " ESU"; } //  electrostatic unit of inductance 
	if(i==6)  { result = (val*parseFloat(8.98755000265))*Math.pow(10,20);  unit = " EMU"; } // electromagnetic unit of inductance  

	return result;
}

function inductance_electromagnetic_unit_of_inductance(i)
{ 
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-009);	unit = " H"; } // henry  
	if(i==1)  { result = (val*parseFloat(1))*Math.pow(10,-006); unit = " mH"; } // millihencry 
 	if(i==2)  { result = (val*0.001); unit = " &#181;H"; } // microhenry 
	if(i==3)  { result = (val*parseFloat(1.112650277))*Math.pow(10,-21); unit = " sH"; }  // stathenry 
	if(i==4)  { result = (val);  unit = " aH"; } // abhenry 
	if(i==5)  { result = (val*parseFloat(1.112650277))*Math.pow(10,-21);  unit = " ESU"; } //  electrostatic unit of inductance  
	if(i==6)  { result = (val);  unit = " EMU"; } // electromagnetic unit of inductance  

	return result;
}

function magnetic_flux_weber(i)
{ 
	if(i==0)  { result = (val);	unit = " H"; } 
	if(i==1)  { result = (val*100000000); unit = " Mx"; } 
 	if(i==2)  { result = (val*7957747.544); unit = " unit pole"; } 
	
	return result;
}

function magnetic_flux_maxwell(i)
{ 
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-008);	unit = " H"; }  
	if(i==1)  { result = (val); unit = " Mx"; } 
	if(i==2)  { result = (val*0.07957747544); unit = " unit pole"; } 

	return result;
}

function magnetic_flux_unit_pole(i)
{ 
	if(i==0)  { result = (val*parseFloat(1.256636999944))*Math.pow(10,-007);	unit = " H"; }
	if(i==1)  { result = (val*12.56636999944); unit = " Mx"; } 
	if(i==2)  { result = (val); unit = " unit pole"; } 

	return result;
}

function illuminance_lux(i)
{ 
	if(i==0)  { result = (val);	unit = " lx"; } // lux
	if(i==1)  { result = (val*0.09290312990645); unit = " fc"; } // footcandle
 	if(i==2)  { result = (val*0.09290312990645)*Math.pow(10,17); unit = " lm/ft<sup>2</sup>"; } // lumen per sqaure foot
	if(i==3)  { result = (val); unit = " lm/m<sup>2</sup>"; }  // lumen per squ meter

	return result;
}

function illuminance_footcandle(i)
{ 
	if(i==0)  { result = (val*10.7639);	unit = " lx"; } // lux
	if(i==1)  { result = (val); unit = " fc"; } // footcandle
 	if(i==2)  { result = (val); unit = " lm/ft<sup>2</sup>"; } // lumen per sqaure foot
	if(i==3)  { result = (val*10.7639); unit = " lm/m<sup>2</sup>"; }  // lumen per squ meter

	return result;
} 

function illuminance_lumen_per_sq_foot(i)
{ 
	if(i==0)  { result = (val*10.7639);	unit = " lx"; } // lux
	if(i==1)  { result = (val); unit = " fc"; } // footcandle
 	if(i==2)  { result = (val); unit = " lm/ft<sup>2</sup>"; } // lumen per sqaure foot
	if(i==3)  { result = (val*10.7639); unit = " lm/m<sup>2</sup>"; }  // lumen per squ meter

	return result;
} 

function illuminance_lumen_per_sq_meter(i)
{ 
	if(i==0)  { result = (val);	unit = " lx"; } // lux
	if(i==1)  { result = (val*0.09290312990645); unit = " fc"; } // footcandle
 	if(i==2)  { result = (val*0.09290312990645); unit = " lm/ft<sup>2</sup>"; } // lumen per sqaure foot
	if(i==3)  { result = (val); unit = " lm/m<sup>2</sup>"; }  // lumen per squ meter

	return result;
} 

function luminance_candel_per_square_meter(i)
{ 
	if(i==0)  { result = (val);	unit = " cd/m<sup>2</sup>"; } // candle/sq meter
	if(i==1)  { result = (val*0.0006451612903); unit = " cd/in<sup>2</sup>"; } //  candle/sq inch
 	if(i==2)  { result = (val*0.0003141592654); unit = " L"; } // lambert
	if(i==3)  { result = (val*0.2918635079); unit = " fL"; }  // foot lambert

	return result;
} 

function luminance_candel_per_square_inch(i)
{ 
	if(i==0)  { result = (val*1550.000000054);	unit = " cd/m<sup>2</sup>"; } // candle/sq meter
	if(i==1)  { result = (val); unit = " cd/in<sup>2</sup>"; } //  candle/sq inch
 	if(i==2)  { result = (val*0.486946861387); unit = " L"; } // lambert
	if(i==3)  { result = (val*452.3884372608); unit = " fL"; }  // foot lambert

	return result;
} 

function luminance_lambert(i)
{ 
	if(i==0)  { result = (val*3183.098861422);	unit = " cd/m<sup>2</sup>"; } // candle/sq meter
	if(i==1)  { result = (val*2.053612168588); unit = " cd/in<sup>2</sup>"; } //  candle/sq inch
 	if(i==2)  { result = (val); unit = " L"; } // lambert
	if(i==3)  { result = (val*929.0303996872); unit = " fL"; }  // foot lambert

	return result;
} 

function luminance_foot_lambert(i)
{ 
	if(i==0)  { result = (val*3.426259100342);	unit = " cd/m<sup>2</sup>"; } // candle/sq meter
	if(i==1)  { result = (val*0.002210489742079); unit = " cd/in<sup>2</sup>"; } //  candle/sq inch
 	if(i==2)  { result = (val*0.001076391042033); unit = " L"; } // lambert
	if(i==3)  { result = (val); unit = " fL"; }  // foot lambert

	return result;
} 

function specific_heat_joule_per_kilogram(i)
{ 
	if(i==0)  { result = (val);	unit = " J/kg"; } // joule per kilogram
	if(i==1)  { result = (val*0.001); unit = " J/g"; } //  joule per gram
 	if(i==2)  { result = (val*0.0002388458966); unit = " cal/g"; } // calorie per gram (intl)
	if(i==3)  { result = (val*0.0002390057361); unit = " cal/g"; }  // calorie per gram (therm)
	if(i==4)  { result = (val*parseFloat(2.777777778))*Math.pow(10,-007); unit = " kWh/kg"; }  // kilowatt hour per kilogram 
	if(i==5)  { result = (val*0.0002388458966); unit = " Btu/lbm"; }  // Btu per pound mass(intl) 
	if(i==6)  { result = (val*0.0002390057361); unit = " Btu/lbm"; }  // Btu per pound mass(therm)

	return result;
} 

function specific_heat_joule_per_gram(i)
{ 
	if(i==0)  { result = (val*1000);	unit = " J/kg"; } // joule per kilogram
	if(i==1)  { result = (val); unit = " J/g"; } //  joule per gram
 	if(i==2)  { result = (val*0.2388458966); unit = " cal/g"; } // calorie per gram (intl)
	if(i==3)  { result = (val*0.2390057361); unit = " cal/g"; }  // calorie per gram (therm)
	if(i==4)  { result = (val*0.0002777777778); unit = " kWh/kg"; }  // kilowatt hour per kilogram 
	if(i==5)  { result = (val*0.2388458966); unit = " Btu/lbm"; }  // Btu per pound mass(intl) 
	if(i==6)  { result = (val*0.2390057361); unit = " Btu/lbm"; }  // Btu per pound mass(therm)

	return result;
} 

function specific_heat_calorie_per_gram_intl(i)
{ 
	if(i==0)  { result = (val*4186.800000482);	unit = " J/kg"; } // joule per kilogram
	if(i==1)  { result = (val*4.186800000482); unit = " J/g"; } //  joule per gram
 	if(i==2)  { result = (val); unit = " cal/g"; } // calorie per gram (intl)
	if(i==3)  { result = (val*1.000669216019); unit = " cal/g"; }  // calorie per gram (therm)
	if(i==4)  { result = (val*0.001163000000227); unit = " kWh/kg"; }  // kilowatt hour per kilogram 
	if(i==5)  { result = (val); unit = " Btu/lbm"; }  // Btu per pound mass(intl) 
	if(i==6)  { result = (val*1.000669216019); unit = " Btu/lbm"; }  // Btu per pound mass(therm)

	return result;
} 

function specific_heat_calorie_per_gram_therm(i)
{ 
	if(i==0)  { result = (val*4184.000000659);	unit = " J/kg"; } // joule per kilogram
	if(i==1)  { result = (val*4.184000000659); unit = " J/g"; } //  joule per gram
 	if(i==2)  { result = (val*0.9993312315316); unit = " cal/g"; } // calorie per gram (intl)
	if(i==3)  { result = (val); unit = " cal/g"; }  // calorie per gram (therm)
	if(i==4)  { result = (val*0.001162222222498); unit = " kWh/kg"; }  // kilowatt hour per kilogram 
	if(i==5)  { result = (val*0.9993312315319); unit = " Btu/lbm"; }  // Btu per pound mass(intl) 
	if(i==6)  { result = (val); unit = " Btu/lbm"; }  // Btu per pound mass(therm)

	return result;
} 

function specific_heat_kilowatt_hour_per_kilogram(i)
{ 
	if(i==0)  { result = (val*3599999.999712);	unit = " J/kg"; } // joule per kilogram
	if(i==1)  { result = (val*3599.999999712); unit = " J/g"; } //  joule per gram
 	if(i==2)  { result = (val*859.8452276912); unit = " cal/g"; } // calorie per gram (intl)
	if(i==3)  { result = (val*860.4206498914); unit = " cal/g"; }  // calorie per gram (therm)
	if(i==4)  { result = (val); unit = " kWh/kg"; }  // kilowatt hour per kilogram 
	if(i==5)  { result = (val*859.8452276912); unit = " Btu/lbm"; }  // Btu per pound mass(intl) 
	if(i==6)  { result = (val*860.4206498912); unit = " Btu/lbm"; }  // Btu per pound mass(therm)
	
	return result;
} 

function specific_heat_Btu_per_pound_mass_intl(i)
{ 
	if(i==0)  { result = (val*4186.800000482);	unit = " J/kg"; } // joule per kilogram
	if(i==1)  { result = (val*4.186800000482); unit = " J/g"; } //  joule per gram
 	if(i==2)  { result = (val); unit = " cal/g"; } // calorie per gram (intl)
	if(i==3)  { result = (val*1.000669216019); unit = " cal/g"; }  // calorie per gram (therm)
	if(i==4)  { result = (val*0.001163000000227); unit = " kWh/kg"; }  // kilowatt hour per kilogram 
	if(i==5)  { result = (val); unit = " Btu/lbm"; }  // Btu per pound mass(intl) 
	if(i==6)  { result = (val*1.000669216019); unit = " Btu/lbm"; }  // Btu per pound mass(therm)
	
	return result;
}

function specific_heat_Btu_per_pound_mass_therm(i)
{ 
	if(i==0)  { result = (val*4184.000000659);	unit = " J/kg"; } // joule per kilogram
	if(i==1)  { result = (val*4.184000000659); unit = " J/g"; } //  joule per gram
 	if(i==2)  { result = (val*0.9993312315316); unit = " cal/g"; } // calorie per gram (intl)
	if(i==3)  { result = (val); unit = " cal/g"; }  // calorie per gram (therm)
	if(i==4)  { result = (val*0.001162222222498); unit = " kWh/kg"; }  // kilowatt hour per kilogram 
	if(i==5)  { result = (val*0.9993312315316); unit = " Btu/lbm"; }  // Btu per pound mass(intl) 
	if(i==6)  { result = (val); unit = " Btu/lbm"; }  // Btu per pound mass(therm)
	
	return result;
}

function thermal_conductivity_watt_per_meter(i)
{ 
	if(i==0)  { result = (val);	unit = " W/m"; } // watt / meter
	if(i==1)  { result = (val*0.01); unit = " W/cm"; } //  watt / centimeter
 	if(i==2)  { result = (val*0.002390057361); unit = " cal/(cm-s)"; } // calorie per centimeter sec (therm)
	if(i==3)  { result = (val*0.001925965872); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec sq foot (intl)
	if(i==4)  { result = (val*0.001927253875); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec foot (therm)
	if(i==5)  { result = (val*6.933466456); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour sq foot (intl)
	if(i==6)  { result = (val*6.938132671); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour foot (therm)
	if(i==7)  { result = (val*0.577787536); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (intl)
	if(i==8)  { result = (val*0.578175048); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (therm)

	return result;
}

function thermal_conductivity_watt_per_centimeter(i)
{ 
	if(i==0)  { result = (val*100);	unit = " W/m"; } // watt / meter
	if(i==1)  { result = (val); unit = " W/cm"; } //  watt / centimeter
 	if(i==2)  { result = (val*0.2390057361); unit = " cal/(cm-s)"; } // calorie per centimeter sec (therm)
	if(i==3)  { result = (val*0.1925965872); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec sq foot (intl)
	if(i==4)  { result = (val*0.1927253875); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec foot (therm)
	if(i==5)  { result = (val*693.3466456); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour sq foot (intl)
	if(i==6)  { result = (val*693.8132671); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour foot (therm)
	if(i==7)  { result = (val*57.7787536); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (intl)
	if(i==8)  { result = (val*57.8175048); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (therm)

	return result;
}

function thermal_conductivity_calorie_per_centimeter_sec_therm(i)
{ 
	if(i==0)  { result = (val*418.4000000659);	unit = " W/m"; } // watt / meter
	if(i==1)  { result = (val*4.184000000659); unit = " W/cm"; } //  watt / centimeter
 	if(i==2)  { result = (val); unit = " cal/(cm-s)"; } // calorie per centimeter sec (therm)
	if(i==3)  { result = (val*0.8058241209718); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec sq foot (intl)
	if(i==4)  { result = (val*0.8063630214271); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec foot (therm)
	if(i==5)  { result = (val*2900.962365648); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour sq foot (intl)
	if(i==6)  { result = (val*2902.914710004); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour foot (therm)
	if(i==7)  { result = (val*241.7463051005); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (intl)
	if(i==8)  { result = (val*241.9084401213); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (therm)

	return result;
}

function thermal_conductivity_Btu_inch_per_sec_sq_foot_intl(i)
{ 
	if(i==0)  { result = (val*519.2199999689);	unit = " W/m"; } // watt / meter
	if(i==1)  { result = (val*5.192199999689); unit = " W/cm"; } //  watt / centimeter
 	if(i==2)  { result = (val*1.240965582904); unit = " cal/(cm-s)"; } // calorie per centimeter sec (therm)
	if(i==3)  { result = (val); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec sq foot (intl)
	if(i==4)  { result = (val*1.000668756918); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec foot (therm)
	if(i==5)  { result = (val*3599.994453069); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour sq foot (intl)
	if(i==6)  { result = (val*3602.417245221); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour foot (therm)
	if(i==7)  { result = (val*299.998844424); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (intl)
	if(i==8)  { result = (val*300.2000484046); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (therm)

	return result;
}

function thermal_conductivity_Btu_inch_per_sec_sq_foot_therm(i)
{ 
	if(i==0)  { result = (val*518.8730000608);	unit = " W/m"; } // watt / meter
	if(i==1)  { result = (val*5.188730000608); unit = " W/cm"; } //  watt / centimeter
 	if(i==2)  { result = (val*1.240136233219); unit = " cal/(cm-s)"; } // calorie per centimeter sec (therm)
	if(i==3)  { result = (val*0.9993316900189); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec sq foot (intl)
	if(i==4)  { result = (val); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec foot (therm)
	if(i==5)  { result = (val*3597.588540845); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour sq foot (intl)
	if(i==6)  { result = (val*3600.009713821); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour foot (therm)
	if(i==7)  { result = (val*299.798352202); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (intl)
	if(i==8)  { result = (val*299.999421716); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (therm)

	return result;
}

function thermal_conductivity_Btu_inch_per_hour_sq_foot_intl(i)
{ 
	if(i==0)  { result = (val*0.1442279999977);	unit = " W/m"; } // watt / meter
	if(i==1)  { result = (val*0.001442279999977); unit = " W/cm"; } //  watt / centimeter
 	if(i==2)  { result = (val*0.0003447131930568); unit = " cal/(cm-s)"; } // calorie per centimeter sec (therm)
	if(i==3)  { result = (val*0.0002777782057824); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec sq foot (intl)
	if(i==4)  { result = (val*0.0002779639718791); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec foot (therm)
	if(i==5)  { result = (val); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour sq foot (intl)
	if(i==6)  { result = (val*1.000672998857); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour foot (therm)
	if(i==7)  { result = (val*0.08333314074088); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (intl)
	if(i==8)  { result = (val*0.08338903082161); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (therm)

	return result;
}

function thermal_conductivity_Btu_inch_per_hour_sq_foot_therm(i)
{ 
	if(i==0)  { result = (val*0.1441309999994);	unit = " W/m"; } // watt / meter
	if(i==1)  { result = (val*0.001441309999994); unit = " W/cm"; } //  watt / centimeter
 	if(i==2)  { result = (val*0.0003444813574969); unit = " cal/(cm-s)"; } // calorie per centimeter sec (therm)
	if(i==3)  { result = (val*0.0002775913870962); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec sq foot (intl)
	if(i==4)  { result = (val*0.0002777770282566); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec foot (therm)
	if(i==5)  { result = (val*0.9993274537658); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour sq foot (intl)
	if(i==6)  { result = (val); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour foot (therm)
	if(i==7)  { result = (val*0.08327709535089); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (intl)
	if(i==8)  { result = (val*0.08333294784296); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (therm)

	return result;
}

function thermal_conductivity_Btu_foot_per_hour_sq_foot_intl(i)
{ 
	if(i==0)  { result = (val*1.730739999902);	unit = " W/m"; } // watt / meter
	if(i==1)  { result = (val*0.01730739999902); unit = " W/cm"; } //  watt / centimeter
 	if(i==2)  { result = (val*0.004136567876743); unit = " cal/(cm-s)"; } // calorie per centimeter sec (therm)
	if(i==3)  { result = (val*0.003333346173116); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec sq foot (intl)
	if(i==4)  { result = (val*0.003335575371429); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec foot (therm)
	if(i==5)  { result = (val*12.00002773338); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour sq foot (intl)
	if(i==6)  { result = (val*12.00810373833); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour foot (therm)
	if(i==7)  { result = (val); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (intl)
	if(i==8)  { result = (val*1.000670682519); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (therm)

	return result;
}

function thermal_conductivity_Btu_foot_per_hour_sq_foot_therm(i)
{ 
	if(i==0)  { result = (val*1.72958000083);	unit = " W/m"; } // watt / meter
	if(i==1)  { result = (val*0.0172958000083); unit = " W/cm"; } //  watt / centimeter
 	if(i==2)  { result = (val*0.004133795412424); unit = " cal/(cm-s)"; } // calorie per centimeter sec (therm)
	if(i==3)  { result = (val*0.003331112054493); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec sq foot (intl)
	if(i==4)  { result = (val*0.003333339758723); unit = " Btu-in/(s-ft<sup>2</sup>)"; }  // Btu inch per sec foot (therm)
	if(i==5)  { result = (val*11.99198491873); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour sq foot (intl)
	if(i==6)  { result = (val*12.00005551087); unit = " Btu-in/(h-ft<sup>2</sup>)"; }  // Btu inch per hour foot (therm)
	if(i==7)  { result = (val*0.9993297669946); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (intl)
	if(i==8)  { result = (val); unit = " Btu-ft/(h-ft<sup>2</sup>)"; }  // Btu foot per hour foot (therm)

	return result;
}

function torque_newton_meter(i)
{ 
	if(i==0)  { result = (val);	unit = " N-m"; } // newton meter
	if(i==1)  { result = (val*0.101971621); unit = " kgf-m"; } //  kilogram froce meter
 	if(i==2)  { result = (val*10000000); unit = " dyn-cm"; } // dyne centimeter
	if(i==3)  { result = (val*141.611969); unit = " ozf-in"; }  // ounce force inch
	if(i==4)  { result = (val*0.737561033); unit = " lbf-ft"; }  // pound force foot
	if(i==5)  { result = (val*8.850732398); unit = " lbf-in"; }  // pound force inch

	return result;
}

function torque_kilogram_force_meter(i)
{ 
	if(i==0)  { result = (val*9.806650028639);	unit = " N-m"; } // newton meter
	if(i==1)  { result = (val); unit = " kgf-m"; } //  kilogram froce meter
 	if(i==2)  { result = (val*98066500.28639); unit = " dyn-cm"; } // dyne centimeter
	if(i==3)  { result = (val*1388.739019849); unit = " ozf-in"; }  // ounce force inch
	if(i==4)  { result = (val*7.233002925392); unit = " lbf-ft"; }  // pound force foot
	if(i==5)  { result = (val*86.79603512432); unit = " lbf-in"; }  // pound force inch

	return result;
}


function torque_dyne_centimeter(i)
{ 
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-007);	unit = " N-m"; } // newton meter 
	if(i==1)  { result = (val*parseFloat(1.01971621))*Math.pow(10,-008); unit = " kgf-m"; } //  kilogram froce meter
 	if(i==2)  { result = (val); unit = " dyn-cm"; } // dyne centimeter
	if(i==3)  { result = (val*parseFloat(1.41611969))*Math.pow(10,-005); unit = " ozf-in"; }  // ounce force inch
	if(i==4)  { result = (val*parseFloat(7.37561033))*Math.pow(10,-008); unit = " lbf-ft"; }  // pound force foot 
	if(i==5)  { result = (val*parseFloat(8.850732398))*Math.pow(10,-007); unit = " lbf-in"; }  // pound force inch 

	return result;
}

function torque_ounce_force_inch(i)
{ 
	if(i==0)  { result = (val*0.007061550002175);	unit = " N-m"; } // newton meter 
	if(i==1)  { result = (val*0.0007200777004946); unit = " kgf-m"; } //  kilogram froce meter
 	if(i==2)  { result = (val*70615.50002175); unit = " dyn-cm"; } // dyne centimeter
	if(i==3)  { result = (val); unit = " ozf-in"; }  // ounce force inch
	if(i==4)  { result = (val*0.005208324114186); unit = " lbf-ft"; }  // pound force foot 
	if(i==5)  { result = (val*0.06249988938435); unit = " lbf-in"; }  // pound force inch 

	return result;
}

function torque_pound_force_foot(i)
{ 
	if(i==0)  { result = (val*1.355820000323);	unit = " N-m"; } // newton meter 
	if(i==1)  { result = (val*0.1382551632171); unit = " kgf-m"; } //  kilogram froce meter
 	if(i==2)  { result = (val*13558200.00323); unit = " dyn-cm"; } // dyne centimeter
	if(i==3)  { result = (val*192.0003398552); unit = " ozf-in"; }  // ounce force inch
	if(i==4)  { result = (val); unit = " lbf-ft)"; }  // pound force foot 
	if(i==5)  { result = (val*12.00000000271); unit = " lbf-in"; }  // pound force inch 

	return result;
}

function torque_pound_force_inch(i)
{ 
	if(i==0)  { result = (val*0.1129850000014);	unit = " N-m"; } // newton meter 
	if(i==1)  { result = (val*0.01152126359882); unit = " kgf-m"; } //  kilogram froce meter
 	if(i==2)  { result = (val*1129850.000014); unit = " dyn-cm"; } // dyne centimeter
	if(i==3)  { result = (val*16.00002831766); unit = " ozf-in"; }  // ounce force inch
	if(i==4)  { result = (val*0.08333333331451); unit = " lbf-ft"; }  // pound force foot 
	if(i==5)  { result = (val); unit = " lbf-in"; }  // pound force inch 

	return result;
}

function viscosity_square_meter_per_second(i)
{ 
	if(i==0)  { result = (val);	unit = " m<sup>2</sup>/s"; } // square meter per second
	if(i==1)  { result = (val*10000); unit = " cm<sup>2</sup>/s"; } //  square centimeter per second
 	if(i==2)  { result = (val*3600); unit = " m<sup>2</sup>/h"; } // square meter per hour
	if(i==3)  { result = (val*1550.387597); unit = " in<sup>2</sup>/s"; }  // square inch per second
	if(i==4)  { result = (val*10.76391505); unit = " ft<sup>2</sup>/s"; }  // square feet per second
	if(i==5)  { result = (val*38750.67814); unit = " ft<sup>2</sup>/h"; }  // square feet per hour
	if(i==6)  { result = (val*10000); unit = " stoke"; }  // stoke
	if(i==7)  { result = (val*1000000); unit = " cstoke"; }  // centistoke

	return result;
}

function viscosity_square_centimeter_per_second(i)
{ 
	if(i==0)  { result = (val*0.0001);	unit = " m<sup>2</sup>/s"; } // square meter per second
	if(i==1)  { result = (val); unit = " cm<sup>2</sup>/s"; } //  square centimeter per second
 	if(i==2)  { result = (val*0.36); unit = " m<sup>2</sup>/h"; } // square meter per hour
	if(i==3)  { result = (val*0.1550387597); unit = " in<sup>2</sup>/s"; }  // square inch per second
	if(i==4)  { result = (val*0.001076391505); unit = " ft<sup>2</sup>/s"; }  // square feet per second
	if(i==5)  { result = (val*3.875067814); unit = " ft<sup>2</sup>/h"; }  // square feet per hour
	if(i==6)  { result = (val); unit = " stoke"; }  // stoke
	if(i==7)  { result = (val*100); unit = " cstoke"; }  // centistoke

	return result;
}

function viscosity_square_meter_per_hour(i)
{ 
	if(i==0)  { result = (val*0.0002777777777778);	unit = " m<sup>2</sup>/s"; } // square meter per second
	if(i==1)  { result = (val*2.777777777778); unit = " cm<sup>2</sup>/s"; } //  square centimeter per second
 	if(i==2)  { result = (val); unit = " m<sup>2</sup>/h"; } // square meter per hour
	if(i==3)  { result = (val*0.4306632213889); unit = " in<sup>2</sup>/s"; }  // square inch per second
	if(i==4)  { result = (val*0.002989976402778); unit = " ft<sup>2</sup>/s"; }  // square feet per second
	if(i==5)  { result = (val*10.76407726111); unit = " ft<sup>2</sup>/h"; }  // square feet per hour
	if(i==6)  { result = (val*2.777777777778); unit = " stoke"; }  // stoke
	if(i==7)  { result = (val*277.7777777778); unit = " cstoke"; }  // centistoke

	return result;
}

function viscosity_square_inch_per_second(i)
{ 
	if(i==0)  { result = (val*0.0006449999999581);	unit = " m<sup>2</sup>/s"; } // square meter per second
	if(i==1)  { result = (val*6.449999999581); unit = " cm<sup>2</sup>/s"; } //  square centimeter per second
 	if(i==2)  { result = (val*2.321999999849); unit = " m<sup>2</sup>/h"; } // square meter per hour
	if(i==3)  { result = (val); unit = " in<sup>2</sup>/s"; }  // square inch per second
	if(i==4)  { result = (val*0.006942725206799); unit = " ft<sup>2</sup>/s"; }  // square feet per second
	if(i==5)  { result = (val*24.99418739868); unit = " ft<sup>2</sup>/h"; }  // square feet per hour
	if(i==6)  { result = (val*6.449999999581); unit = " stoke"; }  // stoke
	if(i==7)  { result = (val*644.9999999581); unit = " cstoke"; }  // centistoke

	return result;
}

function viscosity_square_feet_per_second(i)
{ 
	if(i==0)  { result = (val*0.09290300001021);	unit = " m<sup>2</sup>/s"; } // square meter per second
	if(i==1)  { result = (val*929.0300001021); unit = " cm<sup>2</sup>/s"; } //  square centimeter per second
 	if(i==2)  { result = (val*334.4508000367); unit = " m<sup>2</sup>/h"; } // square meter per hour
	if(i==3)  { result = (val*144.0356589399); unit = " in<sup>2</sup>/s"; }  // square inch per second
	if(i==4)  { result = (val); unit = " ft<sup>2</sup>/s"; }  // square feet per second
	if(i==5)  { result = (val*3600.054251636); unit = " ft<sup>2</sup>/h"; }  // square feet per hour
	if(i==6)  { result = (val*929.0300001021); unit = " stoke"; }  // stoke
	if(i==7)  { result = (val*92903.00001021); unit = " cstoke"; }  // centistoke

	return result;
}

function viscosity_square_feet_per_hour(i)
{ 
	if(i==0)  { result = (val*parseFloat(2.580599999791))*Math.pow(10,-005);	unit = " m<sup>2</sup>/s"; } // square meter per second 
	if(i==1)  { result = (val*0.2580599999791); unit = " cm<sup>2</sup>/s"; } //  square centimeter per second
 	if(i==2)  { result = (val*0.0929015999925); unit = " m<sup>2</sup>/h"; } // square meter per hour
	if(i==3)  { result = (val*0.04000930232494); unit = " in<sup>2</sup>/s"; }  // square inch per second
	if(i==4)  { result = (val*0.0002777735917578); unit = " ft<sup>2</sup>/s"; }  // square feet per second
	if(i==5)  { result = (val); unit = " ft<sup>2</sup>/h"; }  // square feet per hour
	if(i==6)  { result = (val*0.2580599999791); unit = " stoke"; }  // stoke
	if(i==7)  { result = (val*25.80599999791); unit = " cstoke"; }  // centistoke

	return result;
}

function viscosity_stoke(i)
{ 
	if(i==0)  { result = (val*0.0001);	unit = " m<sup>2</sup>/s"; } // square meter per second 
	if(i==1)  { result = (val); unit = " cm<sup>2</sup>/s"; } //  square centimeter per second
 	if(i==2)  { result = (val*0.36); unit = " m<sup>2</sup>/h"; } // square meter per hour
	if(i==3)  { result = (val*0.1550387597); unit = " in<sup>2</sup>/s"; }  // square inch per second
	if(i==4)  { result = (val*0.001076391505); unit = " ft<sup>2</sup>/s"; }  // square feet per second
	if(i==5)  { result = (val*3.875067814001); unit = " ft<sup>2</sup>/h"; }  // square feet per hour
	if(i==6)  { result = (val); unit = " stoke"; }  // stoke
	if(i==7)  { result = (val*100); unit = " cstoke"; }  // centistoke

	return result;
}

function viscosity_centistoke(i)
{ 
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-006);	unit = " m<sup>2</sup>/s"; } // square meter per second  
	if(i==1)  { result = (val*0.01); unit = " cm<sup>2</sup>/s"; } //  square centimeter per second
 	if(i==2)  { result = (val*0.0036); unit = " m<sup>2</sup>/h"; } // square meter per hour
	if(i==3)  { result = (val*0.001550387597); unit = " in<sup>2</sup>/s"; }  // square inch per second
	if(i==4)  { result = (val*parseFloat(1.076391505))*Math.pow(10,-005); unit = " ft<sup>2</sup>/s"; }  // square feet per second
	if(i==5)  { result = (val*0.03875067814001); unit = " ft<sup>2</sup>/h"; }  // square feet per hour
	if(i==6)  { result = (val*0.01); unit = " stoke"; }  // stoke
	if(i==7)  { result = (val); unit = " cstoke"; }  // centistoke

	return result;
}

function coverage_square_meter_per_liter(i)
{ 
	if(i==0)  { result = (val);	unit = " m<sup>2</sup>/L"; } // square meter per liter
	if(i==1)  { result = (val*1000); unit = " m<sup>2</sup>/m<sup>3</sup>"; } //  square centimeter per cubic meter
 	if(i==2)  { result = (val*40.74583571); unit = " ft<sup>2</sup>/gal"; } // square foot per gallon
	if(i==3)  { result = (val*5867.400341); unit = " in<sup>2</sup>/gal"; }  // square inch per gallon
	if(i==4)  { result = (val*4.527314861); unit = " yd<sup>2</sup>/gal"; }  // square yard per gallon

	return result;
}

function coverage_square_meter_per_cubic_meter(i)
{ 
	if(i==0)  { result = (val*0.001);	unit = " m<sup>2</sup>/L"; } // square meter per liter
	if(i==1)  { result = (val); unit = " m<sup>2</sup>/m<sup>3</sup>"; } //  square centimeter per cubic meter
 	if(i==2)  { result = (val*0.04074583571); unit = " ft<sup>2</sup>/gal"; } // square foot per gallon
	if(i==3)  { result = (val*5.867400341); unit = " in<sup>2</sup>/gal"; }  // square inch per gallon
	if(i==4)  { result = (val*0.004527314861); unit = " yd<sup>2</sup>/gal"; }  // square yard per gallon

	return result;
}

function coverage_square_foot_per_gallon(i)
{ 
	if(i==0)  { result = (val*0.02454238531558);	unit = " m<sup>2</sup>/L"; } // square meter per liter
	if(i==1)  { result = (val*24.54238531558); unit = " m<sup>2</sup>/m<sup>3</sup>"; } //  square centimeter per cubic meter
 	if(i==2)  { result = (val); unit = " ft<sup>2</sup>/gal"; } // square foot per gallon
	if(i==3)  { result = (val*143.9999999696); unit = " in<sup>2</sup>/gal"; }  // square inch per gallon
	if(i==4)  { result = (val*0.1111111057636); unit = " yd<sup>2</sup>/gal"; }  // square yard per gallon

	return result;
}

function coverage_square_inch_per_gallon(i)
{ 
	if(i==0)  { result = (val*0.0001704332313942);	unit = " m<sup>2</sup>/L"; } // square meter per liter
	if(i==1)  { result = (val*0.1704332313942); unit = " m<sup>2</sup>/m<sup>3</sup>"; } //  square centimeter per cubic meter
 	if(i==2)  { result = (val*0.00694444444591); unit = " ft<sup>2</sup>/gal"; } // square foot per gallon
	if(i==3)  { result = (val); unit = " in<sup>2</sup>/gal"; }  // square inch per gallon
	if(i==4)  { result = (val*0.0007716049012992); unit = " yd<sup>2</sup>/gal"; }  // square yard per gallon

	return result;
}

function coverage_square_yard_per_gallon(i)
{ 
	if(i==0)  { result = (val*0.2208814784707);	unit = " m<sup>2</sup>/L"; } // square meter per liter
	if(i==1)  { result = (val*220.8814784707); unit = " m<sup>2</sup>/m<sup>3</sup>"; } //  square centimeter per cubic meter
 	if(i==2)  { result = (val*9.000000433148); unit = " ft<sup>2</sup>/gal"; } // square foot per gallon
	if(i==3)  { result = (val*1296.000062099); unit = " in<sup>2</sup>/gal"; }  // square inch per gallon
	if(i==4)  { result = (val); unit = " yd<sup>2</sup>/gal"; }  // square yard per gallon

	return result;
}

function magnetic_flux_density_b_tesla(i)
{ 
	if(i==0)  { result = (val);	unit = " Wb / m<sup>2</sup>"; } // square meter per liter
	if(i==1)  { result = (val*10000); unit = " gauss"; } //  square centimeter per cubic meter
	
	return result;
}

function magnetic_flux_density_gauss(i)
{ 
		
	if(i==0)  { result = (val*.0001);	unit = " Wb / m<sup>2</sup>"; } // square meter per liter
	if(i==1)  { result = (val); unit = " gauss"; } //  square centimeter per cubic meter
	
	return result;
}

function length_l_centimeter(i,option)
{ 

	if(i==0)  { result = (val);	unit = " cm"; } // centimeter
	if(i==1)  { result = (val*0.3937); unit = " in"; } //  inch
	
	return result;
}

function length_l_inch(i,option)
{ 

	if(i==0)  { result = (val*2.54);	unit = " cm"; } // centimeter
	if(i==1)  { result = (val); unit = " in"; } //  inch
	
	return result;
}

function area_a_square_centimeter(i)
{ 

	if(i==0)  { result = (val);	unit = " cm<sup>2</sup>"; } // sq centimeter
	if(i==1)  { result = (val*0.155); unit = "in<sup>2</sup>"; } //   sq inch
	
	return result;
}

function area_a_square_inch(i)
{ 

	if(i==0)  { result = (val*6.45);	unit = " cm<sup>2</sup>"; } // sq centimeter
	if(i==1)  { result = (val); unit = " in<sup>2</sup>"; } //   sq inch
	
	return result;
}

function volume_v_cubic_centimeter(i)
{ 

	if(i==0)  { result = (val);	unit = " cm<sup>3</sup>"; } // cubic centimeter
	if(i==1)  { result = (val*0.061); unit = " in<sup>3</sup>"; } //   cubic inch
	
	return result;
}

function volume_v_cubic_inch(i)
{ 

	if(i==0)  { result = (val*16.4);	unit = " cm<sup>3</sup>"; } // cubic centimeter
	if(i==1)  { result = (val); unit = " in<sup>3</sup>"; } //   cubic inch
	
	return result;
}

function tensile_strength_rm_N_mm(i)
{ 

	if(i==0)  { result = (val);	unit = " N/mm<sup>2</sup>"; } 
	if(i==1)  { result = (val*0.102); unit = " kg/mm<sup>2</sup>"; } 
	
	return result;
}

function tensile_strength_rm_kg_mm(i)
{ 

	if(i==0)  { result = (val*9.81);	unit = " N/mm<sup>2</sup>"; } 
	if(i==1)  { result = (val); unit = " kg/mm<sup>2</sup>"; } 
	
	return result;
}

function mass_m_gram(i)
{ 
	if(i==0)  { result = (val);	unit = " g"; } 
	if(i==1)  { result = (val*0.001); unit = " kg"; } 
 	if(i==2)  { result = (val*0.0353); unit = " oz"; } 
	if(i==3)  { result = (val*0.00205); unit = " lb"; } 

	return result;
}

function mass_m_kilogram(i)
{ 
	if(i==0)  { result = (val*1000);	unit = " g"; } 
	if(i==1)  { result = (val); unit = " kg"; } 
 	if(i==2)  { result = (val*35.274); unit = " oz"; } 
	if(i==3)  { result = (val*2.205); unit = " lb"; } 

	return result;
}

function mass_m_ounce(i)
{ 
	if(i==0)  { result = (val*28.35);	unit = " g"; } 
	if(i==1)  { result = (val*0.02835); unit = " kg"; } 
 	if(i==2)  { result = (val); unit = " oz"; } 
	if(i==3)  { result = (val*0.0625); unit = " lb"; } 

	return result;
}

function mass_m_pound(i)
{ 
	if(i==0)  { result = (val*453.6);	unit = " g"; } 
	if(i==1)  { result = (val*0.4536); unit = " kg"; } 
 	if(i==2)  { result = (val*16.000062); unit = " oz"; } 
	if(i==3)  { result = (val); unit = " lb"; } 

	return result;
}

function magnetic_field_strength_h_ampere_turns_meter(i)
{ 
	if(i==0)  { result = (val);	unit = " Ampere-Turns / m"; } 
	if(i==1)  { result = (val*0.0126); unit = " oersted"; } 
 	if(i==2)  { result = (val*0.0254); unit = " Ampere-Turns / in"; } 
	if(i==3)  { result = (val*0.01); unit = " Ampere-Turns / cm"; } 

	return result;
}

function magnetic_field_strength_h_oersted(i)
{ 
	if(i==0)  { result = (val*79.6);	unit = " Ampere-Turns / m"; } 
	if(i==1)  { result = (val); unit = " oersted"; } 
 	if(i==2)  { result =  "-"; unit = "-"; } 
	if(i==3)  { result = "-"; unit = "-"; } 

	return result;
}

function magnetic_field_strength_h_ampere_turns_inch(i)
{ 
	if(i==0)  { result = "-";	unit = "-"; } 
	if(i==1)  { result = "-"; unit = "-"; } 
 	if(i==2)  { result =  val; unit = " Ampere-Turns / in"; } 
	if(i==3)  { result = "-"; unit = "-"; } 

	return result;
}

function magnetic_field_strength_h_ampere_turns_cm(i)
{ 
	if(i==0)  { result = "-";	unit = "-"; } 
	if(i==1)  { result = "-"; unit = "-"; } 
 	if(i==2)  { result = "-"; unit = "-"; } 
	if(i==3)  { result = val; unit = " Ampere-Turns / cm"; } 

	return result;
}

function core_loss_watt_kg(i)
{
	if(i==0)  { result = val;	unit = "W/kg"; } 
	if(i==1)  { result = (val*0.4536); unit = "W/lb"; } 
 	if(i==2)  { result = "-"; unit = "-"; } 
 	if(i==3)  { result = "-"; unit = "-"; } 	
 	if(i==4)  { result = "-"; unit = "-"; } 

	return result;
}

function core_loss_watt_pound(i)
{

	if(i==0)  { result = val * 2.205;	unit = "W/kg"; } 
	if(i==1)  { result = (val); unit = "W/lb"; } 
 	if(i==2)  { result = "-"; unit = "-"; } 
 	if(i==3)  { result = "-"; unit = "-"; } 	
 	if(i==4)  { result = "-"; unit = "-"; } 


	return result;
}
function core_loss_watt_kg_60_hz(i)
{

	if(i==0)  { result = "-";	unit = "-"; } 
	if(i==1)  { result = "-"; unit = "-"; } 
 	if(i==2)  { result = val; unit = " W/kg"; } 
 	if(i==3)  
	{ 
		if(document.getElementById("go").checked)
			result = val*0.75; 
		else
			result = val*0.79; 
		unit = " W/kg"; 
	} 	
 	if(i==4)  { result = "-"; unit = "-"; } 

	return result;
}

function core_loss_watt_kg_50_hz(i)
{

	if(i==0)  { result = "-";	unit = "-"; } 
	if(i==1)  { result = "-"; unit = "-"; } 
 	if(i==2)  
	{ 
		if(document.getElementById("go").checked)
			result = val*1.333333333; 
		else
			result = val*1.265822785; 
		unit = " W/kg"; 
	}
 	if(i==3) {result = val; unit = " W/kg" ; }
 	if(i==4) 
	{ 
		if(document.getElementById("go").checked)
			result = val*0.606060606; 
		else
			result = val*0.574712644; 
		unit = " W/lb"; 
	}


	return result;
}

function core_loss_watt_lb_60_hz(i)
{

	if(i==0)  { result = "-";	unit = "-"; } 
	if(i==1)  { result = "-"; unit = "-"; } 
	if(i==2)  { result = "-"; unit = "-"; } 	

 	if(i==3)  
	{ 
		if(document.getElementById("go").checked)
			result = val*1.65; 
		else
			result = val*1.74; 
		unit = " W/kg"; 
	} 	
 	if(i==4)  { result = val; unit = " W/lb"; } 

	return result;
}
