function energy_joule(i)
{
	if(i==0)  { result = (val);	unit = " J"; } // joule
	if(i==1)  { result = (val *10000000) ; unit = " erg"; } // erg
 	if(i==2)  { result = (val*parseFloat(6.241457006))*Math.pow(10,18); unit = " eV"; } // electronvolt
	if(i==3)  { result = (val *0.238662345); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val *0.2390057361);  unit = " cal"; } // calorie (therm)
	if(i==5)  { result = (val *0.0002390057361) ; unit = " cal"; } // calorie(nutrition)
	if(i==6)  { result = (val*parseFloat(9.478672986))*Math.pow(10,-19); unit = " quad"; }  // quad 
	if(i==7)  { result = (val*parseFloat(2.390057361))*Math.pow(10,-10); unit = " ton"; }   //  ton (TNT)
	if(i==8)  { result = (val); unit = " W-s"; } // wattsecond
	if(i==9)  { result = (val *0.0002777777778); unit = " Wh"; } // watthour
	if(i==10) { result = (val*parseFloat(2.777777778))*Math.pow(10,-007); unit = " kWh"; } // kilowatthour 
	if(i==11) { result = (val *0.737562121); unit = " ft-lbf"; }   //foot pound force
	if(i==12) { result = (val *0.0009478169879); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val *0.000947086289); unit = " Btu"; } // British thermal unit (mean)
	if(i==14) { result = (val *0.0009484516527); unit = " Btu";} // British thermal unit (therm)
	return result;	
}

function energy_erg(i)
{
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-007);	unit = " J"; } // joule
	if(i==1)  { result = (val) ; unit = " erg"; } // erg
 	if(i==2)  { result = (val*624145700600); unit = " eV"; } // electronvolt
	if(i==3)  { result = (val*parseFloat(2.38662345))*Math.pow(10,-008); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*parseFloat(2.390057361))*Math.pow(10,-008);  unit = " cal"; } // calorie (therm) 
	if(i==5)  { result = (val*parseFloat(2.390057361))*Math.pow(10,-11) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(9.478672986))*Math.pow(10,-26); unit = " quad"; }  // quad 
	if(i==7)  { result = (val*parseFloat(2.390057361))*Math.pow(10,-17); unit = " ton"; }   //  ton (TNT)
	if(i==8)  { result = (val*parseFloat(1))*Math.pow(10,-007); unit = " W-s"; } // wattsecond
	if(i==9)  { result = (val*parseFloat(2.777777778))*Math.pow(10,-11); unit = " Wh"; } // watthour 
	if(i==10) { result = (val*parseFloat(2.777777778))*Math.pow(10,-14); unit = " kWh"; } // kilowatthour  
	if(i==11) { result = (val*parseFloat(7.37562121))*Math.pow(10,-008); unit = " ft-lbf"; }   //foot pound force
	if(i==12) { result = (val*parseFloat(9.478169879))*Math.pow(10,-11); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*parseFloat(9.470862890004))*Math.pow(10,-11); unit = " Btu"; } // British thermal unit (mean)
	if(i==14) { result = (val*parseFloat(9.484516527004))*Math.pow(10,-11); unit = " Btu";} // British thermal unit (therm) 
	return result;	
}

function energy_electronvolt(i)
{
	if(i==0)  { result = (val*parseFloat(1.602189999929))*Math.pow(10,-19);	unit = " J"; } // joule
	if(i==1)  { result = (val*parseFloat(1.602189999929))*Math.pow(10,-12) ; unit = " erg"; } // erg
 	if(i==2)  { result = (val); unit = " eV"; } // electronvolt
	if(i==3)  { result = (val*parseFloat(3.823824225187))*Math.pow(10,-20); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*parseFloat(3.829326003052))*Math.pow(10,-20);  unit = " cal"; } // calorie (therm)  
	if(i==5)  { result = (val*parseFloat(3.829326003051))*Math.pow(10,-23) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(1.518663507077))*Math.pow(10,-37); unit = " quad"; }  // quad 
	if(i==7)  { result = (val*parseFloat(3.829326003051))*Math.pow(10,-29); unit = " ton"; }   //  ton (TNT)
	if(i==8)  { result = (val*parseFloat(1.602189999929))*Math.pow(10,-19); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val*parseFloat(4.450527777937))*Math.pow(10,-23); unit = " Wh"; } // watthour  
	if(i==10) { result = (val*parseFloat(4.450527777937))*Math.pow(10,-26); unit = " kWh"; } // kilowatthour  e-026 
	if(i==11) { result = (val*parseFloat(1.181714654593))*Math.pow(10,-19); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val*parseFloat(1.518582899776))*Math.pow(10,-22); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*parseFloat(1.517412181306))*Math.pow(10,-22); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*parseFloat(1.519599753372))*Math.pow(10,-22); unit = " Btu";} // British thermal unit (therm)
	return result;	
}

function energy_calorie_mean(i)
{
	if(i==0)  { result = (val*4.190020005041);	unit = " J"; } // joule
	if(i==1)  { result = (val*41900200.05041) ; unit = " erg"; } // erg
 	if(i==2)  { result = (val*parseFloat(2.615182971574))*Math.pow(10,19); unit = " eV"; } // electronvolt 
	if(i==3)  { result = (val); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*1.001438815579);  unit = " cal"; } // calorie (therm)  
	if(i==5)  { result = (val*0.001001438815579) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(3.971582943258))*Math.pow(10,-18); unit = " quad"; }  // quad  
	if(i==7)  { result = (val*parseFloat(1.001438815579))*Math.pow(10,-009); unit = " ton"; }   //  ton (TNT)
	if(i==8)  { result = (val*4.190020005041); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val*0.001163894445938); unit = " Wh"; } // watthour  
	if(i==10) { result = (val*parseFloat(1.163894445938))*Math.pow(10,-006); unit = " kWh"; } // kilowatthour  
	if(i==11) { result = (val*3.09040004195); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val*0.003971372140419); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*0.00396831049741); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*0.003974031398628); unit = " Btu";} // British thermal unit (therm)
	return result;	
}

function energy_calorie_therm(i)
{
	if(i==0)  { result = (val*4.184000000659);	unit = " J"; } // joule
	if(i==1)  { result = (val*41840000.00659) ; unit = " erg"; } // erg
 	if(i==2)  { result = (val*parseFloat(2.611425611721))*Math.pow(10,19); unit = " eV"; } // electronvolt  
	if(i==3)  { result = (val * 0.9985632516369); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val);  unit = " cal"; } // calorie (therm)  
	if(i==5)  { result = (val*0.001) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(3.965876777967))*Math.pow(10,-18); unit = " quad"; }  // quad  
	if(i==7)  { result = (val*parseFloat(1))*Math.pow(10,-009); unit = " ton"; }   //  ton (TNT) 
	if(i==8)  { result = (val*4.184000000659); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val*0.001162222222498); unit = " Wh"; } // watthour  
	if(i==10) { result = (val*parseFloat(1.162222222498))*Math.pow(10,-006); unit = " kWh"; } // kilowatthour 
	if(i==11) { result = (val*3.08595991475); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val*0.003965666277999); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*0.0039626090338); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*0.003968321715523); unit = " Btu";} // British thermal unit (therm)
	return result;	
}

function energy_calorie_nutrition(i)
{
	if(i==0)  { result = (val*4184.000000659);	unit = " J"; } // joule
	if(i==1)  { result = (val*41840000006.59) ; unit = " erg"; } // erg
 	if(i==2)  { result = (val*parseFloat(2.611425611722))*Math.pow(10,22); unit = " eV"; } // electronvolt 
	if(i==3)  { result = (val * 998.5632516369); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val * 1000);  unit = " cal"; } // calorie (therm)  
	if(i==5)  { result = (val) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(3.965876777967))*Math.pow(10,-15); unit = " quad"; }  // quad  
	if(i==7)  { result = (val*parseFloat(1))*Math.pow(10,-006); unit = " ton"; }   //  ton (TNT) 
	if(i==8)  { result = (val*4184.000000659); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val*1.162222222498); unit = " Wh"; } // watthour  
	if(i==10) { result = (val*0.001162222222498); unit = " kWh"; } // kilowatthour 
	if(i==11) { result = (val*3085.95991475); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val*3.965666277999); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*3.9626090338); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*3.968321715523); unit = " Btu";} // British thermal unit (therm)
	return result;	
}

function energy_quad(i)
{
	if(i==0)  { result = (val*parseFloat(1.054999999976))*Math.pow(10,18);	unit = " J"; } // joule
	if(i==1)  { result = (val*parseFloat(1.054999999976))*Math.pow(10,25) ; unit = " erg"; } // erg 
 	if(i==2)  { result = (val*parseFloat(6.584737141177))*Math.pow(10,36); unit = " eV"; } // electronvolt 
	if(i==3)  { result = (val*parseFloat(2.517887739692))*Math.pow(10,17); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*parseFloat(2.521510515797))*Math.pow(10,17);  unit = " cal"; } // calorie (therm)
	if(i==5)  { result = (val*parseFloat(2.521510515797))*Math.pow(10,14) ; unit = " cal"; } // calorie(nutrition)
	if(i==6)  { result = (val); unit = " quad"; }  // quad  
	if(i==7)  { result = (val*252151051.5797); unit = " ton"; }   //  ton (TNT) 
	if(i==8)  { result = (val*parseFloat(1.054999999976))*Math.pow(10,18); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val*parseFloat(2.930555555723))*Math.pow(10,14); unit = " Wh"; } // watthour 
	if(i==10) { result = (val*293055555572.3); unit = " kWh"; } // kilowatthour 
	if(i==11) { result = (val*parseFloat(7.78128037637))*Math.pow(10,17); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val*parseFloat(9.999469222114))*Math.pow(10,14); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*parseFloat(9.991760348724))*Math.pow(10,17); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*parseFloat(1.000616493575))*Math.pow(10,15); unit = " Btu";} // British thermal unit (therm)
	return result;
}

function energy_ton(i)
{
	if(i==0)  { result = (val*4184000000.659);	unit = " J"; } // joule
	if(i==1)  { result = (val*parseFloat(4.184000000659))*Math.pow(10,16) ; unit = " erg"; } // erg 
 	if(i==2)  { result = (val*parseFloat(2.611425611722))*Math.pow(10,28); unit = " eV"; } // electronvolt
	if(i==3)  { result = (val*998563251.6369); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*1000000000);  unit = " cal"; } // calorie (therm)
	if(i==5)  { result = (val*1000000) ; unit = " cal"; } // calorie(nutrition)
	if(i==6)  { result = (val*parseFloat(3.965876777967))*Math.pow(10,-009); unit = " quad"; }  // quad 
	if(i==7)  { result = (val); unit = " ton"; }   //  ton (TNT) 
	if(i==8)  { result = (val*4184000000.659); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val*1162222.222498); unit = " Wh"; } // watthour 
	if(i==10) { result = (val*1162.222222498); unit = " kWh"; } // kilowatthour 
	if(i==11) { result = (val*3085959914.75); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val*3965666.277999); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*3962609.0338); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*3968321.715523); unit = " Btu";} // British thermal unit (therm)
	return result;
}

function energy_wattsecond(i)
{
	if(i==0)  { result = (val);	unit = " J"; } // joule
	if(i==1)  { result = (val*10000000) ; unit = " erg"; } // erg  
 	if(i==2)  { result = (val*parseFloat(6.241457006))*Math.pow(10,18); unit = " eV"; } // electronvolt
	if(i==3)  { result = (val*0.238662345); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*0.2390057361);  unit = " cal"; } // calorie (therm)
	if(i==5)  { result = (val*0.0002390057361) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(9.478672985998))*Math.pow(10,-19); unit = " quad"; }  // quad 
	if(i==7)  { result = (val*parseFloat(2.390057361))*Math.pow(10,-10); unit = " ton"; }   //  ton (TNT)
	if(i==8)  { result = (val); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val*0.0002777777778); unit = " Wh"; } // watthour 
	if(i==10) { result = (val*parseFloat(2.777777778))*Math.pow(10,-007); unit = " kWh"; } // kilowatthour
	if(i==11) { result = (val*0.7375621209999); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val*0.0009478169879); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*0.0009470862890004); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*0.0009484516527004); unit = " Btu";} // British thermal unit (therm)
	return result;
}

function energy_watthour(i)
{
	if(i==0)  { result = (val *3599.999999712);	unit = " J"; } // joule
	if(i==1)  { result = (val*35999999997.12) ; unit = " erg"; } // erg  
 	if(i==2)  { result = (val*parseFloat(2.24692452198))*Math.pow(10,22); unit = " eV"; } // electronvolt
	if(i==3)  { result = (val*859.1844419311); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*860.4206498914);  unit = " cal"; } // calorie (therm)
	if(i==5)  { result = (val*0.8604206498914) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(3.412322274687))*Math.pow(10,-15); unit = " quad"; }  // quad 
	if(i==7)  { result = (val*parseFloat(8.604206498914))*Math.pow(10,-007); unit = " ton"; }   //  ton (TNT)
	if(i==8)  { result = (val *3599.999999712); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val); unit = " Wh"; } // watthour 
	if(i==10) { result = (val*0.001); unit = " kWh"; } // kilowatthour
	if(i==11) { result = (val*2655.223635387); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val*3.412141156167); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*3.409510640128); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*3.414425949447); unit = " Btu";} // British thermal unit (therm)
	return result;
}

function energy_kilowatthour(i)
{
	if(i==0)  { result = (val *3599999.999712);	unit = " J"; } // joule 
	if(i==1)  { result = (val*parseFloat(3.599999999712))*Math.pow(10,13) ; unit = " erg"; } // erg 
 	if(i==2)  { result = (val*parseFloat(2.24692452198))*Math.pow(10,25); unit = " eV"; } // electronvolt
	if(i==3)  { result = (val*859184.4419311); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*860420.6498914);  unit = " cal"; } // calorie (therm)
	if(i==5)  { result = (val*860.4206498914) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(3.412322274687))*Math.pow(10,-12); unit = " quad"; }  // quad 
	if(i==7)  { result = (val*0.0008604206498912); unit = " ton"; }   //  ton (TNT) 
	if(i==8)  { result = (val *3599999.999712); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val *1000); unit = " Wh"; } // watthour 
	if(i==10) { result = (val); unit = " kWh"; } // kilowatthour
	if(i==11) { result = (val*2655223.635387); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val*3412.141156167); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*3409.510640128); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*3414.425949447); unit = " Btu";} // British thermal unit (therm)
	return result;
}

function energy_foot_pound_force(i)
{
	if(i==0)  { result = (val *1.355818000312);	unit = " J"; } // joule 
	if(i==1)  { result = (val*13558180.00312) ; unit = " erg"; } // erg 
 	if(i==2)  { result = (val*parseFloat(8.462279756905))*Math.pow(10,18); unit = " eV"; } // electronvolt 
	if(i==3)  { result = (val*0.3235827033477); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*0.3240482791822);  unit = " cal"; } // calorie (therm)
	if(i==5)  { result = (val*0.0003240482791822) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(1.285135545349))*Math.pow(10,-18); unit = " quad"; }  // quad
	if(i==7)  { result = (val*parseFloat(3.240482791822))*Math.pow(10,-10); unit = " ton"; }   //  ton (TNT)
	if(i==8)  { result = (val *1.355818000312); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val *0.0003766161112279); unit = " Wh"; } // watthour 
	if(i==10) { result = (val*parseFloat(3.766161112279))*Math.pow(10,-007); unit = " kWh"; } // kilowatthour
	if(i==11) { result = (val); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val*0.001285067333196); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*0.001284076638475); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*0.001285927823156); unit = " Btu";} // British thermal unit (therm)
	return result;
}

function energy_British_thermal_unit_intl(i)
{
	if(i==0)  { result = (val *1055.056000015);	unit = " J"; } // joule 
	if(i==1)  { result = (val*10550560000.15) ; unit = " erg"; } // erg 
 	if(i==2)  { result = (val*parseFloat(6.585086663016))*Math.pow(10,21); unit = " eV"; } // electronvolt  
	if(i==3)  { result = (val*251.8021390699); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*252.1644359103);  unit = " cal"; } // calorie (therm)
	if(i==5)  { result = (val*0.2521644359103) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(1.000053080606))*Math.pow(10,-15); unit = " quad"; }  // quad 
	if(i==7)  { result = (val*parseFloat(2.521644359103))*Math.pow(10,-007); unit = " ton"; }   //  ton (TNT) 
	if(i==8)  { result = (val *1055.056000015); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val *0.2930711111387); unit = " Wh"; } // watthour 
	if(i==10) { result = (val*0.0002930711111387); unit = " kWh"; } // kilowatthour
	if(i==11) { result = (val *778.1693411448); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val*0.9992290717414); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*1.000669606905); unit = " Btu";} // British thermal unit (therm)
	return result;
}

function energy_British_thermal_unit_mean(i)
{
	if(i==0)  { result = (val *1055.870000035);	unit = " J"; } // joule 
	if(i==1)  { result = (val*10558700000.35) ; unit = " erg"; } // erg 
 	if(i==2)  { result = (val*parseFloat(6.590167209146))*Math.pow(10,21); unit = " eV"; } // electronvolt 
	if(i==3)  { result = (val*251.9964102236); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*252.3589865844);  unit = " cal"; } // calorie (therm)
	if(i==5)  { result = (val*0.2523589865844) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(1.000824644606))*Math.pow(10,-15); unit = " quad"; }  // quad  
	if(i==7)  { result = (val*parseFloat(2.523589865844))*Math.pow(10,-007); unit = " ton"; }   //  ton (TNT) 
	if(i==8)  { result = (val *1055.870000035); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val *0.2932972222555); unit = " Wh"; } // watthour 
	if(i==10) { result = (val*0.0002932972222555); unit = " kWh"; } // kilowatthour
	if(i==11) { result = (val *778.7697167264); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val *1.000771523048); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val*1.00144164657); unit = " Btu";} // British thermal unit (therm)
	return result;
}

function energy_British_thermal_unit_therm(i)
{
	if(i==0)  { result = (val *1054.349999974);	unit = " J"; } // joule 
	if(i==1)  { result = (val*10543499999.74) ; unit = " erg"; } // erg 
 	if(i==2)  { result = (val*parseFloat(6.580680194117))*Math.pow(10,21); unit = " eV"; } // electronvolt 
	if(i==3)  { result = (val*251.6336434446); unit = " cal"; }  // calorie(mean)
	if(i==4)  { result = (val*251.9956978509);  unit = " cal"; } // calorie (therm)
	if(i==5)  { result = (val*0.2519956978509) ; unit = " cal"; } // calorie(nutrition) 
	if(i==6)  { result = (val*parseFloat(9.993838862547))*Math.pow(10,-16); unit = " quad"; }  // quad   
	if(i==7)  { result = (val*parseFloat(2.519956978509))*Math.pow(10,-007); unit = " ton"; }   //  ton (TNT)  
	if(i==8)  { result = (val *1054.349999974); unit = " W-s"; } // wattsecond 
	if(i==9)  { result = (val *0.2928750000163); unit = " Wh"; } // watthour 
	if(i==10) { result = (val*0.0002928750000163); unit = " kWh"; } // kilowatthour
	if(i==11) { result = (val *777.6486222575); unit = " ft-lbf"; }   //foot pound force 
	if(i==12) { result = (val *0.9993308411684); unit = " Btu"; }   // British thermal unit (int'l)
	if(i==13) { result = (val *0.9985604287829); unit = " Btu"; } // British thermal unit (mean) 
	if(i==14) { result = (val); unit = " Btu";} // British thermal unit (therm)
	return result;
}

function pressure_pascal(i)
{
	if(i==0)  { result = (val);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val*0.001) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*parseFloat(1))*Math.pow(10,-005); unit = " bar"; } // bar1e
	if(i==3)  { result = (val*0.01); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val*10);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val*parseFloat(9.869232667))*Math.pow(10,-006) ; unit = " atm"; } // atmosphere(std)
	if(i==6)  { result = (val*0.004014629309); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val*0.0003345522186); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val *0.0002952997144); unit = " inHg"; } // inch of mercury (32*F)
	if(i==9)  { result = (val *0.007500637554); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val*0.0001450377439); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch
	if(i==11) { result = (val *0.02088543379); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*parseFloat(1.019716213))*Math.pow(10,-005); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm 
	if(i==13) { result = (val *0.101971621); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *0.007500637554); unit = " torr";} // torr
	return result;
}

function pressure_kilopascal(i)
{
	if(i==0)  { result = (val *1000);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*0.01); unit = " bar"; } // bar
	if(i==3)  { result = (val*10); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val*10000);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val*0.009869232667004) ; unit = " atm"; } // atmosphere(std)
	if(i==6)  { result = (val*4.014629309); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val*0.3345522186001); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val *0.2952997144); unit = " inHg"; } // inch of mercury (32*F)
	if(i==9)  { result = (val *7.500637554); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val*0.1450377439); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch
	if(i==11) { result = (val *20.88543379); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*0.01019716213); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm 
	if(i==13) { result = (val *101.971621); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *7.500637554); unit = " torr";} // torr
	return result;
}

function pressure_bar(i)
{
	if(i==0)  { result = (val *100000);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *100) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val); unit = " bar"; } // bar
	if(i==3)  { result = (val*1000); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val*1000000);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val*0.9869232667004) ; unit = " atm"; } // atmosphere(std)
	if(i==6)  { result = (val*401.4629309); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val*33.45522186); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val *29.52997144); unit = " inHg"; } // inch of mercury (32*F)
	if(i==9)  { result = (val *750.0637554); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val*14.50377439); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch
	if(i==11) { result = (val *2088.543379001); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*1.019716213); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm 
	if(i==13) { result = (val *10197.1621); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *750.0637554); unit = " torr";} // torr
	return result;
}

function pressure_millibar(i)
{
	if(i==0)  { result = (val *100);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *0.1) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*0.001); unit = " bar"; } // bar
	if(i==3)  { result = (val); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val*1000);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val*0.0009869232667004) ; unit = " atm"; } // atmosphere(std)
	if(i==6)  { result = (val*0.4014629309); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val*0.03345522186001); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val *0.02952997144); unit = " inHg"; } // inch of mercury (32*F)
	if(i==9)  { result = (val *0.7500637554); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val*0.01450377439); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch
	if(i==11) { result = (val *2.088543379); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*0.001019716213); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm 
	if(i==13) { result = (val *10.1971621); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *0.7500637554); unit = " torr";} // torr
	return result;
}


function pressure_microbar(i)
{
	if(i==0)  { result = (val *0.1);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *0.0001) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*parseFloat(1))*Math.pow(10,-006); unit = " bar"; } // bar
	if(i==3)  { result = (val*0.001); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val*parseFloat(9.869232667004))*Math.pow(10,-007) ; unit = " atm"; } // atmosphere(std) 
	if(i==6)  { result = (val*0.0004014629309); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val*parseFloat(3.345522186001))*Math.pow(10,-005); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val*parseFloat(2.952997144))*Math.pow(10,-005); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val *0.0007500637554); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val*parseFloat(1.450377439))*Math.pow(10,-005); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val *0.002088543379); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*parseFloat(1.019716213))*Math.pow(10,-006); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val *0.0101971621); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *0.0007500637554); unit = " torr";} // torr
	return result;
}

function pressure_atmosphere_std(i)
{
	if(i==0)  { result = (val *101325.0000016);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *101.3250000016) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*1.013250000016); unit = " bar"; } // bar
	if(i==3)  { result = (val*1013.250000016); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val *1013250.000016);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val) ; unit = " atm"; } // atmosphere(std) 
	if(i==6)  { result = (val*406.782314741); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val*33.8985035502); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val*29.92124356207); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val *760.0021001714); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val*14.69594940091); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val *2116.216578806); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*1.033227452839); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val *10332.27449799); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *760.0021001714); unit = " torr";} // torr
	return result;
}

function pressure_inch_of_water_39_F(i)
{
	if(i==0)  { result = (val *249.0890000126);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *0.2490890000126) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*0.002490890000126); unit = " bar"; } // bar
	if(i==3)  { result = (val*2.490890000126); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val *2490.890000126);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val *0.002458317295915) ; unit = " atm"; } // atmosphere(std) 
	if(i==6)  { result = (val); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val*0.08333327758309); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val*0.07355591056392); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val *1.868326307783); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val*0.03612730659213); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val *5.20233181758); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*0.002540000917928); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val *25.40000910455); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *1.868326307783); unit = " torr";} // torr
	return result;
}

function pressure_foot_of_water_39_F(i)
{
	if(i==0)  { result = (val *2989.069999848);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *2.989069999848) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*0.02989069999848); unit = " bar"; } // bar
	if(i==3)  { result = (val*29.89069999848); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val *29890.69999848);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val *0.02949982728645) ; unit = " atm"; } // atmosphere(std) 
	if(i==6)  { result = (val *12.00000802804); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val*0.8826715172769); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val *22.4199306924); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val*0.4335279691372); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val *62.42802357553); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*0.03048003140637); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val *304.800313167); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *22.4199306924); unit = " torr";} // torr
	return result;
}

function pressure_inch_of_mercury_39_F(i)
{
	if(i==0)  { result = (val *3386.390000518);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *3.386390000518) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*0.03386390000518); unit = " bar"; } // bar
	if(i==3)  { result = (val*33.86390000518); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val *33863.90000518);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val *0.03342107081631) ; unit = " atm"; } // atmosphere(std) 
	if(i==6)  { result = (val *13.59510054778); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val *1.132924287718); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val *25.40008401038); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val*0.4911543656407); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val *70.72622414296); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*0.03453156787069); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val *345.315677691); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *25.40008401038); unit = " torr";} // torr
	return result;
}

function pressure_millimeter_mercury_0_C(i)
{
	if(i==0)  { result = (val *133.3220000034);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *0.1333220000034) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*0.001333220000034); unit = " bar"; } // bar
	if(i==3)  { result = (val*1.333220000034); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val *1333.220000034);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val *0.001315785837663) ; unit = " atm"; } // atmosphere(std) 
	if(i==6)  { result = (val *0.5352384087481); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val *0.04460317088933); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val *0.03936994852424); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val*0.01933672209273); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val *2.784487803821); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*0.001359506049531); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val *13.59506045531); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val); unit = " torr";} // torr
	return result;
}

function pressure_pound_force_per_square_inch(i)
{
	if(i==0)  { result = (val *6894.756999871);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *6.894756999871) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*0.06894756999871); unit = " bar"; } // bar
	if(i==3)  { result = (val*68.94756999871); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val *68947.56999871);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val *0.06804596101413) ; unit = " atm"; } // atmosphere(std) 
	if(i==6)  { result = (val *27.67989353012); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val *2.306656251015); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val *2.036019772919); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val *51.71507327894); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val *143.9999908189); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*0.07030695497464); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val *703.0695476778); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *51.71507327894); unit = " torr";} // torr
	return result;
}

function pressure_pound_force_per_square_foot(i)
{
	if(i==0)  { result = (val *47.88025999627);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *0.04788025999627) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*0.0004788025999624); unit = " bar"; } // bar
	if(i==3)  { result = (val*0.4788025999627); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val *478.8025999627);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val *0.0004725414260596) ; unit = " atm"; } // atmosphere(std) 
	if(i==6)  { result = (val *0.1922214951036); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val *0.01601844720889); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val *0.01413902710229); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val *0.3591324762234); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val *0.006944444887205); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val*0.0004882427740086); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val *4.882427725722); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *0.3591324762234); unit = " torr";} // torr
	return result;
}

function pressure_kilogram_force_per_sq_cm(i)
{
	if(i==0)  { result = (val *98066.49999788);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *98.06649999788) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*0.9806649999788); unit = " bar"; } // bar
	if(i==3)  { result = (val*980.6649999788); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val *980664.9999788);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val *0.9678411053174) ; unit = " atm"; } // atmosphere(std) 
	if(i==6)  { result = (val *393.7006451225); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val *32.80836514463); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val *28.95900944158); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val *735.5612726734); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val *14.22334391186); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val *2048.161392722); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val *9999.99997058); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *735.5612726734); unit = " torr";} // torr
	return result;
}

function pressure_kilogram_force_per_sq_meter(i)
{
	if(i==0)  { result = (val *9.806650028639);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *0.009806650028639) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*parseFloat(9.806650028639))*Math.pow(10,-005); unit = " bar"; } // bar
	if(i==3)  { result = (val*0.09806650028639); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val*98.06650028639);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val*parseFloat(9.67841108165))*Math.pow(10,-005) ; unit = " atm"; } // atmosphere(std)
	if(i==6)  { result = (val *0.03937006462808); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val *0.003280836524115); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val *0.002895900952678); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val *0.07355612748374); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val *0.001422334395371); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val *0.2048161398748); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val *0.0001000000002942); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val *0.07355612748374); unit = " torr";} // torr
	return result;
}

function pressure_torr(i)
{
	if(i==0)  { result = (val *133.3220000034);	unit = " Pa"; } // Pascal
	if(i==1)  { result = (val *0.1333220000034) ; unit = " kPa"; } //kilopascal
 	if(i==2)  { result = (val*0.001333220000034); unit = " bar"; } // bar
	if(i==3)  { result = (val*1.333220000034); unit = " mbar"; }  // millibar
	if(i==4)  { result = (val*1333.220000034);  unit = " &#181;bar"; } // microbar
	if(i==5)  { result = (val*0.001315785837663) ; unit = " atm"; } // atmosphere(std)
	if(i==6)  { result = (val *0.5352384087481); unit = " inH20"; }  // inch of water (39.2*F)
	if(i==7)  { result = (val *0.04460317088933); unit = " ftH20"; }   //  foot of water (39.2*F)
	if(i==8)  { result = (val *0.03936994852424); unit = " inHg"; } // inch of mercury (32*F) 
	if(i==9)  { result = (val); unit = " mmHg"; } // millimeter mercury
	if(i==10) { result = (val *0.01933672209273); unit = " lbf/in<sup>2</sup>"; } // pound force per square inch 
	if(i==11) { result = (val *2.784487803821); unit = " lbf/ft<sup>2</sup>"; }   //pound force per square foot
	if(i==12) { result = (val *0.001359506049531); unit = " kgf/cm<sup>2<sup>"; }   // kilogram force per sq cm  
	if(i==13) { result = (val *13.59506045531); unit = " kgf/m<sup>2<sup>"; } // kilogram force per sq meter
	if(i==14) { result = (val); unit = " torr";} // torr
	return result;
}

function force_dyne(i)
{
	if(i==0)  { result = (val);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val*parseFloat(1))*Math.pow(10,-007) ; unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val*parseFloat(1))*Math.pow(10,-005) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val*parseFloat(1))*Math.pow(10,-005); unit = " N"; }  // newton
	if(i==4)  { result = (val*parseFloat(1))*Math.pow(10,-008);  unit = " kM"; } // kilonewtons
	if(i==5)  { result = (val*0.001019716213) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val*parseFloat(1.019716213))*Math.pow(10,-006); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*parseFloat(2.248089237))*Math.pow(10,-009); unit = " klb"; }   //  kilo pound 
	if(i==8)  { result = (val*parseFloat(3.596942455))*Math.pow(10,-005); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val*parseFloat(2.248089237))*Math.pow(10,-006); unit = " lbf"; } // pound force 
	if(i==10) { result = (val*parseFloat(7.233011464))*Math.pow(10,-005); unit = " pdl"; } // poundal 
	if(i==11) { result = (val*parseFloat(1.124044745))*Math.pow(10,-009); unit = " tf"; }   // ton force 

	return result;
} 

function force_joule_per_centimeter(i)
{
	if(i==0)  { result = (val *10000000);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val) ; unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val*100) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val*100); unit = " N"; }  // newton
	if(i==4)  { result = (val*0.1);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val*10197.16213) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val*10.19716213); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*0.02248089237); unit = " klb"; }   //  kilo pound 
	if(i==8)  { result = (val*359.6942455); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val*22.48089237); unit = " lbf"; } // pound force 
	if(i==10) { result = (val*723.3011464); unit = " pdl"; } // poundal
	if(i==11) { result = (val*0.01124044745); unit = " tf"; }   // ton force 

	return result;
}

function force_joule_per_meter(i)
{
	if(i==0)  { result = (val *100000);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val *0.01) ; unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val); unit = " N"; }  // newton
	if(i==4)  { result = (val*0.001);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val*101.9716213) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val*0.1019716213); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*0.0002248089237); unit = " klb"; }   //  kilo pound 
	if(i==8)  { result = (val*3.596942455); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val*0.2248089237); unit = " lbf"; } // pound force 
	if(i==10) { result = (val*7.233011464); unit = " pdl"; } // poundal
	if(i==11) { result = (val*0.0001124044745); unit = " tf"; }   // ton force 

	return result;
}

function force_newton(i)
{
	if(i==0)  { result = (val *100000);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val *0.01) ; unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val); unit = " N"; }  // newton
	if(i==4)  { result = (val*0.001);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val*101.9716213) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val*0.1019716213); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*0.0002248089237); unit = " klb"; }   //  kilo pound 
	if(i==8)  { result = (val*3.596942455); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val*0.2248089237); unit = " lbf"; } // pound force 
	if(i==10) { result = (val*7.233011464); unit = " pdl"; } // poundal
	if(i==11) { result = (val*0.0001124044745); unit = " tf"; }   // ton force 

	return result;
}

function force_kilonewtons(i)
{
	if(i==0)  { result = (val *100000000);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val *10) ; unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val *1000) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val); unit = " N"; }  // newton
	if(i==4)  { result = (val *1000);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val*101971.6213) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val*101.9716213); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*0.2248089237); unit = " klb"; }   //  kilo pound 
	if(i==8)  { result = (val*3596.942455); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val*224.8089237); unit = " lbf"; } // pound force 
	if(i==10) { result = (val*7233.011464); unit = " pdl"; } // poundal
	if(i==11) { result = (val*0.1124044745); unit = " tf"; }   // ton force 

	return result;
}

function force_gram_force(i)
{
	if(i==0)  { result = (val *980.6649999788);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val*parseFloat(9.806649999788))*Math.pow(10,-005); unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val *0.009806649999788) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val *0.009806649999788); unit = " N"; }  // newton
	if(i==4)  { result = (val*parseFloat(9.806649999788))*Math.pow(10,-006);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val*0.001); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*parseFloat(2.204622431555))*Math.pow(10,-006); unit = " klb"; }   //  kilo pound  
	if(i==8)  { result = (val*0.03527395572556); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val*0.002204622431555); unit = " lbf"; } // pound force 
	if(i==10) { result = (val*0.0709316118719); unit = " pdl"; } // poundal
	if(i==11) { result = (val*parseFloat(1.102311339832))*Math.pow(10,-006); unit = " tf"; }   // ton force 
	return result;
}

function force_kilogram_force(i)
{
	if(i==0)  { result = (val *980664.9999788);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val*0.09806649999788); unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val *9.806649999788) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val *9.806649999788); unit = " N"; }  // newton
	if(i==4)  { result = (val *0.009806649999788);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val *1000) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*0.002204622431555); unit = " klb"; }   //  kilo pound  
	if(i==8)  { result = (val*35.27395572556); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val*2.204622431555); unit = " lbf"; } // pound force 
	if(i==10) { result = (val*70.9316118719); unit = " pdl"; } // poundal
	if(i==11) { result = (val*0.001102311339832); unit = " tf"; }   // ton force 
	return result;
}

function force_kilopound(i)
{
	if(i==0)  { result = (val *444822199.9116);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val*44.48221999116); unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val *4448.221999116) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val *4448.221999116); unit = " N"; }  // newton
	if(i==4)  { result = (val *4.448221999116);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val *453592.4091522) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val *453.5924091522); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val); unit = " klb"; }   //  kilo pound  
	if(i==8)  { result = (val*15999.99855789); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val*1000); unit = " lbf"; } // pound force 
	if(i==10) { result = (val*32174.04071403); unit = " pdl"; } // poundal
	if(i==11) { result = (val*0.50000005627); unit = " tf"; }   // ton force 
	return result;
}

function force_ounce_force(i)
{
	if(i==0)  { result = (val *27801.39000027);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val*0.002780139000027); unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val *0.2780139000027) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val *0.2780139000027); unit = " N"; }  // newton
	if(i==4)  { result = (val *0.0002780139000027);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val *28.34952812722) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val *0.02834952812722); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*parseFloat(6.250000563324))*Math.pow(10,-005); unit = " klb"; }   //  kilo pound   
	if(i==8)  { result = (val); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val*0.06250000563326); unit = " lbf"; } // pound force 
	if(i==10) { result = (val*2.010877725871); unit = " pdl"; } // poundal
	if(i==11) { result = (val*parseFloat(3.12500063335))*Math.pow(10,-005); unit = " tf"; }   // ton force  
	return result;
}

function force_pound_force(i)
{
	if(i==0)  { result = (val *444822.1999116);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val*0.04448221999116); unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val *4.448221999116) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val *4.448221999116); unit = " N"; }  // newton
	if(i==4)  { result = (val *0.004448221999116);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val *453.5924091522) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val *0.4535924091522); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*0.001); unit = " klb"; }   //  kilo pound   
	if(i==8)  { result = (val *15.99999855789); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val); unit = " lbf"; } // pound force 
	if(i==10) { result = (val*32.17404071403); unit = " pdl"; } // poundal
	if(i==11) { result = (val*0.00050000005627); unit = " tf"; }   // ton force  
	return result;
}

function force_poundal(i)
{
	if(i==0)  { result = (val *13825.50000062);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val*0.001382550000062); unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val *0.1382550000062) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val *0.1382550000062); unit = " N"; }  // newton
	if(i==4)  { result = (val *0.0001382550000062);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val *14.09808650346) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val *0.01409808650346); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*parseFloat(3.108095774753))*Math.pow(10,-005); unit = " klb"; }   //  kilo pound 
	if(i==8)  { result = (val *0.4972952791383); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val *0.03108095774753); unit = " lbf"; } // pound force 
	if(i==10) { result = (val); unit = " pdl"; } // poundal
	if(i==11) { result = (val*parseFloat(1.554048062269))*Math.pow(10,-005); unit = " tf"; }   // ton force 
	return result;
}

function force_ton_force(i)
{
	if(i==0)  { result = (val *889644299.7027);	unit = " dyn"; } // dyne
	if(i==1)  { result = (val*88.96442997027); unit = " J/cm"; } // joule per cm
 	if(i==2)  { result = (val *8896.442997027) ; unit = " J/m"; } // joule per meter
	if(i==3)  { result = (val *8896.442997027); unit = " N"; }  // newton
	if(i==4)  { result = (val *8.896442997027);  unit = " kN"; } // kilonewtons
	if(i==5)  { result = (val *907184.7162095) ; unit = " gf"; } // gram force
	if(i==6)  { result = (val *907.1847162095); unit = " kgf"; }  // kilogram force
	if(i==7)  { result = (val*1.99999977492); unit = " klb"; }   //  kilo pound 
	if(i==8)  { result = (val *31999.9935145); unit = " ozf"; } // ounce force 
	if(i==9)  { result = (val *1999.99977492); unit = " lbf"; } // pound force 
	if(i==10) { result = (val *64348.07418632); unit = " pdl"; } // poundal
	if(i==11) { result = (val); unit = " tf"; }   // ton force 
	return result;
}

function density_kilogram_per_cubic_meter(i)
{
	if(i==0)  { result = (val);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *1000) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*0.001); unit = " kg/L"; } // kilogram per liter
	if(i==3)  { result = (val); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*1000);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val*58.417844485) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *0.13352650168); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val *0.008345406355); unit = " lb/gal"; }   //  pound per gallon
	if(i==8)  { result = (val *0.0005780366868); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val *0.9988473948); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*parseFloat(3.612729815))*Math.pow(10,-005); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch 
	if(i==11) { result = (val *0.06242797373); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot
	if(i==12) { result = (val *1.685554996); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val *0.0008427773559); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard
	if(i==14) { result = (val *0.0007524799859); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard
	return result;
}

function density_gram_per_cubic_meter(i)
{
	if(i==0)  { result = (val *0.001);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*parseFloat(1))*Math.pow(10,-006); unit = " kg/L"; } // kilogram per liter
	if(i==3)  { result = (val *0.001); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val*0.058417844485) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *0.00013352650168); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val*parseFloat(8.345406355))*Math.pow(10,-006); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val*parseFloat(5.780366868))*Math.pow(10,-007); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch 
	if(i==9)  { result = (val *0.0009988473948); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*parseFloat(3.612729815))*Math.pow(10,-008); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch 
	if(i==11) { result = (val*parseFloat(6.242797373))*Math.pow(10,-005); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot
	if(i==12) { result = (val *0.001685554996); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*parseFloat(8.427773559))*Math.pow(10,-007); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*parseFloat(7.524799859))*Math.pow(10,-007); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard 
	return result;
}

function density_kilogram_per_liter(i)
{
	if(i==0)  { result = (val *1000);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *1000000) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val); unit = " kg/L"; } // kilogram per liter
	if(i==3)  { result = (val *1000); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val *1000000);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val*58417.84448498) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *133.52650168); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val*8.345406355); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val*0.5780366868); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch 
	if(i==9)  { result = (val *998.8473947997); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*0.03612729815001); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch 
	if(i==11) { result = (val*62.42797373003); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot
	if(i==12) { result = (val *1685.554996001); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*0.8427773559003); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*0.7524799859006); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard 
	return result;
}

function density_gram_per_liter(i)
{
	if(i==0)  { result = (val);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *1000) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val *0.001); unit = " kg/L"; } // kilogram per liter
	if(i==3)  { result = (val); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val *1000);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val*58.41784448498) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *0.1335265016799); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val*0.008345406355); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val*0.0005780366867997); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch 
	if(i==9)  { result = (val *0.9988473947997); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*parseFloat(3.612729814999))*Math.pow(10,-005); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch  
	if(i==11) { result = (val*0.06242797372999); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot
	if(i==12) { result = (val *1.685554996); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*0.0008427773559003); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*0.0007524799859); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard 
	return result;
}

function density_milligram_per_liter(i)
{
	if(i==0)  { result = (val *0.001);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*parseFloat(1))*Math.pow(10,-006); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*0.001); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val*0.05841784448498) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *0.00013352650168); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val*parseFloat(8.345406355))*Math.pow(10,-006); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val*parseFloat(5.780366868))*Math.pow(10,-007); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch  
	if(i==9)  { result = (val *0.0009988473948004); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*parseFloat(3.612729815))*Math.pow(10,-008); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch
	if(i==11) { result = (val*parseFloat(6.242797373))*Math.pow(10,-005); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val *0.001685554996); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*parseFloat(8.427773559003))*Math.pow(10,-007); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard
	if(i==14) { result = (val*parseFloat(7.524799859))*Math.pow(10,-007); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function density_grain_per_gallon_US(i)
{
	if(i==0)  { result = (val *0.01711805714189);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *17.11805714189) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*parseFloat(1.711805714189))*Math.pow(10,-005); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*0.01711805714189); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*17.11805714189);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *0.002285714285714); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val*0.0001428571428571); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val*parseFloat(9.894865034748))*Math.pow(10,-006); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val *0.01709832678021); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*parseFloat(6.184291541136))*Math.pow(10,-007); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch 
	if(i==11) { result = (val*0.001068645621562); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val *0.02885342673732); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*parseFloat(1.442671093618))*Math.pow(10,-005); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 	
	if(i==14) { result = (val*parseFloat(1.288099539676))*Math.pow(10,-005); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function density_ounce_av_per_gallon(i)
{
	if(i==0)  { result = (val *7.489149999575);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *7489.149999575) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*0.007489149999574); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*7.489149999578); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*7489.149999574);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val *437.5000000001) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val*0.0625); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val*0.004329003452702); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val *7.48051796634); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*0.0002705627549247); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch 
	if(i==11) { result = (val*0.4675324594335); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val *12.62337419758); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*0.006311686034579); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*0.005635435486084); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function density_pound_per_gallon(i)
{
	if(i==0)  { result = (val *119.8263999932);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *119826.3999932) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*0.1198263999932); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*119.8263999932); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*119826.3999932);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val *7000.000000002) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *16); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val*0.06926405524323); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val *119.6882874615); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*0.004329004078795); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch 
	if(i==11) { result = (val*7.480519350935); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val *201.9739871612); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*0.1009869765533); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*0.09016696777732); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function density_ounce_av_per_cubic_inch(i)
{
	if(i==0)  { result = (val *1729.994000097);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *1729994.000097) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*1.729994000097); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*1729.994000098); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*1729994.000097);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val *101062.5204577) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *231.0000467604); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val *14.43750292252); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val *1728.000000017); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*0.06250000903922); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch 
	if(i==11) { result = (val*108.0000199911); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val *2916.000029914); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*1.457999769125); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*1.3017858608); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function density_ounce_av_per_cubic_foot(i)
{
	if(i==0)  { result = (val *1.001153935232);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *1001.153935232) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*0.001001153935232); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*1.001153935232); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*1001.153935231);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val *58.48525489391) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *0.1336805826147); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val *0.008355036413414); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val *0.000578703703698); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*parseFloat(3.616898671216))*Math.pow(10,-005); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch  
	if(i==11) { result = (val*0.06250001156833); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val *1.687500017295); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*0.0008437498663835); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*0.0007533482990669); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function density_pound_per_cubic_inch(i)
{
	if(i==0)  { result = (val *27679.89999828);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *27679899.99828) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*27.67989999827); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*27679.89999829); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*27679899.99828);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val *1617000.09346) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *3696.000213623); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val *231.0000133514); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val *15.99999768596); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val *27647.99600161); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch  
	if(i==11) { result = (val*1728.000069942); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val *46655.99373088); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*23.32799293213); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*20.82857076042); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function density_pound_per_cubic_foot(i)
{
	if(i==0)  { result = (val *16.0184599988);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *16018.4599988) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*0.01601845999879); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*16.0184599988); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*16018.4599988);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val *935.7639050992) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *2.13888892594); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val *0.1336805578713); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val *0.009259257545345); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val *15.99999703851); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val *0.0005787036802803); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch  
	if(i==11) { result = (val); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val *26.9999952792); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val*0.01349999536338); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*0.01205357055404); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function density_pound_per_cubic_yard(i)
{
	if(i==0)  { result = (val *0.5932763999829);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *593.2763999829) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*0.0005932763999826); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*0.5932763999829); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*593.2763999829);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val *34.65792847082) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *0.07921812221899); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val *0.004951132638689); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val *0.0003429355246027); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val *0.5925925865192); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*parseFloat(2.143347338754))*Math.pow(10,-005); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch   
	if(i==11) { result = (val *0.03703704351276); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val* 0.0004999999156954); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*0.0004464286170939); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function density_ton_short_per_cubic_yard(i)
{
	if(i==0)  { result = (val *1186.553000029);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *1186553.000029) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*1.186553000029); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*1186.553000029); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*1186553.000029);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val *69315.86862894) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *158.4362711519); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val *9.902266946988); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val *0.6858711648495); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val *1185.185372871); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*0.04286695400283); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch   
	if(i==11) { result = (val *74.07409951507); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val *2000.000337218); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val*0.8928573847314); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function density_ton_long_per_cubic_yard(i)
{
	if(i==0)  { result = (val *1328.939000024);	unit = " kg/m<sup>3</sup>"; } // kilogram per cubic meter
	if(i==1)  { result = (val *1328939.000024) ; unit = " g/m<sup>3</sup>"; } // gram per cubic meter
 	if(i==2)  { result = (val*1.328939000023); unit = " kg/L"; } // kilogram per liter 
	if(i==3)  { result = (val*1328.939000024); unit = " g/L"; }  // gram per liter
	if(i==4)  { result = (val*1328939.000024);  unit = " mg/L"; } // milligram per liter
	if(i==5)  { result = (val *77633.75183346) ; unit = " gr/gal"; } // grain per gallon (US)
	if(i==6)  { result = (val *177.4485756193); unit = " oz/gal"; }  // ounce (av) per gallon
	if(i==7)  { result = (val *11.09053597621); unit = " lb/gal"; }   //  pound per gallon 
	if(i==8)  { result = (val *0.7681754965332); unit = " oz/in<sup>3</aup>"; } // ounce (av) per cubic inch
	if(i==9)  { result = (val *1327.407258022); unit = "  oz/ft<sup>3</sup>"; } // ounce (av) per cubic foot
	if(i==10) { result = (val*0.04801097547702); unit = " lb/in<sup>3</aup>"; } // pound per cubic inch   
	if(i==11) { result = (val *82.96296898223); unit = " lb/ft<sup>3</sup>"; }   // pound per cubic foot 
	if(i==12) { result = (val *2239.99977087); unit = " lb/yd<sup>3</sup>"; }   // pound per cubic yard
	if(i==13) { result = (val *1.119999696593); unit = " t/yd<sup>3</sup>"; } // ton (short) per cubic yard 
	if(i==14) { result = (val); unit = " t/yd<sup>3</sup>";} // ton (long) per cubic yard  
	return result;
}

function velocity_meter_per_second(i)
{
	if(i==0)  { result = (val);	unit = " m/s"; } // meter per second
	if(i==1)  { result = (val *3600) ; unit = " m/h"; } // meter per hour
 	if(i==2)  { result = (val*0.001); unit = " km/s"; } // kilometer per second
	if(i==3)  { result = (val*3.6); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*100);  unit = " cm/s"; } // centimeter per second
	if(i==5)  { result = (val *360000) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *1000); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *3600000); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val *3.280839895); unit = " ft/s"; } // foot per second
	if(i==9)  { result = (val *11811.02316); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val*39.37007874); unit = " in/s"; } // inch per second
	if(i==11) { result = (val *1.94384466); unit = " kn"; }   // knot
	if(i==12) { result = (val *2.236936292); unit = " mi/h"; }   // mile per hour
	if(i==13) { result = (val *0.0006213711922); unit = " mi/s"; } // mile per second
	if(i==14) { result = (val *0.003016955289); unit = " Ma";} // mach number
	return result;
}

function velocity_meter_per_hour(i)
{
	if(i==0)  { result = (val *0.0002777777777778);	unit = " m/s"; } // meter per second
	if(i==1)  { result = (val) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*parseFloat(2.777777777778))*Math.pow(10,-007); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val*0.001); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*0.02777777777778);  unit = " cm/s"; } // centimeter per second
	if(i==5)  { result = (val *100) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *0.2777777777778); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *1000); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val *0.0009113444152778); unit = " ft/s"; } // foot per second
	if(i==9)  { result = (val *3.280839766667); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val*0.01093613298333); unit = " in/s"; } // inch per second
	if(i==11) { result = (val *0.00053995685); unit = " kn"; }   // knot
	if(i==12) { result = (val *0.0006213711922222); unit = " mi/h"; }   // mile per hour
	if(i==13) { result = (val*parseFloat(1.726031089444))*Math.pow(10,-007); unit = " mi/s"; } // mile per second
	if(i==14) { result = (val*parseFloat(8.380431358333))*Math.pow(10,-007); unit = " Ma";} // mach number 
	return result;
}

function velocity_kilometer_per_second(i)
{
	if(i==0)  { result = (val *1000);	unit = " m/s"; } // meter per second
	if(i==1)  { result = (val *3600000) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val*3600); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*100000);  unit = " cm/s"; } // centimeter per second
	if(i==5)  { result = (val *360000000) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *1000000); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *3600000000); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val *3280.839895); unit = " ft/s"; } // foot per second
	if(i==9)  { result = (val *11811023.16); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val*39370.07874); unit = " in/s"; } // inch per second
	if(i==11) { result = (val *1943.84466); unit = " kn"; }   // knot
	if(i==12) { result = (val *2236.936292); unit = " mi/h"; }   // mile per hour
	if(i==13) { result = (val*0.6213711922); unit = " mi/s"; } // mile per second
	if(i==14) { result = (val*3.016955289); unit = " Ma";} // mach number 
	return result;
}

function velocity_kilometer_per_hour(i)
{
	if(i==0)  { result = (val *0.2777777777778);	unit = " m/s"; } // meter per second
	if(i==1)  { result = (val *1000) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val *0.0002777777777778); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*27.77777777778);  unit = " cm/s"; } // centimeter per second
	if(i==5)  { result = (val *100000) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *277.7777777778); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *1000000); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val *0.9113444152781); unit = " ft/s"; } // foot per second
	if(i==9)  { result = (val *3280.839766667); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val*10.93613298333); unit = " in/s"; } // inch per second
	if(i==11) { result = (val *0.53995685); unit = " kn"; }   // knot
	if(i==12) { result = (val *0.6213711922222); unit = " mi/h"; }   // mile per hour
	if(i==13) { result = (val*0.0001726031089445); unit = " mi/s"; } // mile per second
	if(i==14) { result = (val*0.0008380431358333); unit = " Ma";} // mach number 
	return result;
}

function velocity_centimeter_per_second(i)
{
	if(i==0)  { result = (val*0.01);	unit = " m/s"; } // meter per second
	if(i==1)  { result = (val *36) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*0.0005999999999999); unit = " km/s"; } // kilometer per second
	if(i==3)  { result = (val*0.036); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val);  unit = " cm/s"; } // centimeter per second
	if(i==5)  { result = (val*3600) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *10); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *36000); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val*0.03280839895); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val *118.1102316); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val*0.3937007874); unit = " in/s"; } // inch per second
	if(i==11) { result = (val*0.0194384466); unit = " kn"; }   // knot
	if(i==12) { result = (val*0.02236936292); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val*parseFloat(6.213711922003))*Math.pow(10,-006); unit = " mi/s"; } // mile per second 
	if(i==14) { result = (val*parseFloat(3.016955289))*Math.pow(10,-005); unit = " Ma";} // mach number  
	return result;
}

function velocity_centimeter_per_hour(i)
{
	if(i==0)  { result = (val*parseFloat(2.777777777778))*Math.pow(10,-006);	unit = " m/s"; } // meter per second
	if(i==1)  { result = (val *0.01) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*parseFloat(2.777777777778))*Math.pow(10,-009); unit = " km/s"; } // kilometer per second
	if(i==3)  { result = (val*parseFloat(1))*Math.pow(10,-005); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*0.0002777777777778);  unit = " cm/s"; } // centimeter per second
	if(i==5)  { result = (val) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *0.002777777777778); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *10); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val*parseFloat(9.113444152781))*Math.pow(10,-006); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val *0.03280839766667); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val*0.0001093613298333); unit = " in/s"; } // inch per second
	if(i==11) { result = (val*parseFloat(5.399568499999))*Math.pow(10,-006); unit = " kn"; }   // knot
	if(i==12) { result = (val*parseFloat(6.213711922223))*Math.pow(10,-006); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val*parseFloat(1.726031089445))*Math.pow(10,-009); unit = " mi/s"; } // mile per second 
	if(i==14) { result = (val*parseFloat(8.380431358335))*Math.pow(10,-009); unit = " Ma";} // mach number  
	return result;
}

function velocity_millimeter_per_second(i)
{
	if(i==0)  { result = (val*0.001);	unit = " m/s"; } // meter per second
	if(i==1)  { result = (val *3.6) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*parseFloat(1))*Math.pow(10,-006); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val*0.0036); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*0.1);  unit = " cm/s"; } // centimeter per second
	if(i==5)  { result = (val *360) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *3600); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val*0.003280839895); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val *11.81102316); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val*0.03937007874); unit = " in/s"; } // inch per second
	if(i==11) { result = (val*0.00194384466); unit = " kn"; }   // knot
	if(i==12) { result = (val*0.002236936292); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val*parseFloat(6.213711922003))*Math.pow(10,-007); unit = " mi/s"; } // mile per second 
	if(i==14) { result = (val*parseFloat(3.016955289))*Math.pow(10,-006); unit = " Ma";} // mach number 
	return result;
}

function velocity_millimeter_per_hour(i)
{
	if(i==0)  { result = (val*parseFloat(2.777777777778))*Math.pow(10,-007);	unit = " m/s"; } // meter per second
	if(i==1)  { result = (val *0.001) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*parseFloat(2.777777777778))*Math.pow(10,-10); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val*parseFloat(1))*Math.pow(10,-06); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*parseFloat(2.777777777778))*Math.pow(10,-005);  unit = " cm/s"; } // centimeter per second 
	if(i==5)  { result = (val *0.1) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *0.0002777777777778); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val*parseFloat(9.113444152781))*Math.pow(10,-007); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val *0.003280839766667); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val*parseFloat(1.093613298333))*Math.pow(10,-005); unit = " in/s"; } // inch per second 
	if(i==11) { result = (val*parseFloat(5.399568499999))*Math.pow(10,-007); unit = " kn"; }   // knot 
	if(i==12) { result = (val*parseFloat(6.213711922223))*Math.pow(10,-007); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val*parseFloat(1.726031089445))*Math.pow(10,-10); unit = " mi/s"; } // mile per second  
	if(i==14) { result = (val*parseFloat(8.380431358335))*Math.pow(10,-10); unit = " Ma";} // mach number  
	return result;
}


function velocity_foot_per_second(i)
{
	if(i==0)  { result = (val*0.3048000000012);	unit = " m/s"; } // meter per second
	if(i==1)  { result = (val *1097.280000004) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*0.0003048000000012); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val*1.097280000004); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*30.48000000012);  unit = " cm/s"; } // centimeter per second 
	if(i==5)  { result = (val *109728.0000004) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *304.8000000012); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *1097280.000004); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val *3599.999859182); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val*12); unit = " in/s"; } // inch per second 
	if(i==11) { result = (val*0.5924838523704); unit = " kn"; }   // knot 
	if(i==12) { result = (val*0.6818181818043); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val*0.0001893939393833); unit = " mi/s"; } // mile per second  
	if(i==14) { result = (val*0.0009195679720909); unit = " Ma";} // mach number  
	return result;
}

function velocity_foot_per_hour(i)
{
	if(i==0)  { result = (val*parseFloat(8.466666997883))*Math.pow(10,-005);	unit = " m/s"; } // meter per second 
	if(i==1)  { result = (val *0.3048000119237) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*parseFloat(8.466666997882))*Math.pow(10,-008); unit = " km/s"; } // kilometer per second
	if(i==3)  { result = (val*0.0003048000119237); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*0.008466666997882);  unit = " cm/s"; } // centimeter per second 
	if(i==5)  { result = (val *30.48000119237) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *0.08466666997882); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *304.8000119237); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val *0.0002777777886434); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val*0.00333333346372); unit = " in/s"; } // inch per second 
	if(i==11) { result = (val*0.0001645788543183); unit = " kn"; }   // knot 
	if(i==12) { result = (val*0.0001893939467985); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val*parseFloat(5.260942966435))*Math.pow(10,-008); unit = " mi/s"; } // mile per second  
	if(i==14) { result = (val*parseFloat(2.554355577946))*Math.pow(10,-007); unit = " Ma";} // mach number 
	return result;
}

function velocity_inch_per_second(i)
{
	if(i==0)  { result = (val*0.0254000000001);	unit = " m/s"; } // meter per second 
	if(i==1)  { result = (val *91.44000000039) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*parseFloat(2.54000000001))*Math.pow(10,-005); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val*0.09144000000037); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*2.54000000001);  unit = " cm/s"; } // centimeter per second 
	if(i==5)  { result = (val *9144.000000037) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *25.4000000001); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *91440.00000037); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val *0.08333333333333); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val *299.9999882652); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val); unit = " in/s"; } // inch per second 
	if(i==11) { result = (val*0.0493736543642); unit = " kn"; }   // knot 
	if(i==12) { result = (val*0.05681818181703); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val*parseFloat(1.578282828194))*Math.pow(10,-005); unit = " mi/s"; } // mile per second   
	if(i==14) { result = (val*parseFloat(7.663066434091))*Math.pow(10,-005); unit = " Ma";} // mach number 
	return result;
}

function velocity_knot(i)
{
	if(i==0)  { result = (val*0.5144444000993);	unit = " m/s"; } // meter per second 
	if(i==1)  { result = (val *1851.999840358) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*0.0005144444000993); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val*1.851999840358); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*51.44444000993);  unit = " cm/s"; } // centimeter per second 
	if(i==5)  { result = (val *185199.9840358) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *514.4444000993); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *1851999.840358); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val *1.687809711605); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val *6076.114724106); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val *20.25371653926); unit = " in/s"; } // inch per second 
	if(i==11) { result = (val); unit = " kn"; }   // knot 
	if(i==12) { result = (val*1.150779348798); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val*0.0003196609302103); unit = " mi/s"; } // mile per second   
	if(i==14) { result = (val*0.001552055753776); unit = " Ma";} // mach number 
	return result;
}

function velocity_mile_per_hour(i)
{
	if(i==0)  { result = (val*0.4470400000109);	unit = " m/s"; } // meter per second 
	if(i==1)  { result = (val *1609.344000039) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*0.0004470400000109); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val*1.609344000039); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*44.70400000109);  unit = " cm/s"; } // centimeter per second 
	if(i==5)  { result = (val *160934.4000039) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *447.0400000109); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *1609344.000039); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val *1.466666666697); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val *5279.999793573); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val *17.60000000036); unit = " in/s"; } // inch per second 
	if(i==11) { result = (val *0.8689763168278); unit = " kn"; }   // knot 
	if(i==12) { result = (val); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val*0.0002777777777679); unit = " mi/s"; } // mile per second   
	if(i==14) { result = (val*0.001348699692427); unit = " Ma";} // mach number 
	return result;
}

function velocity_mile_per_second(i)
{
	if(i==0)  { result = (val*1609.344000097);	unit = " m/s"; } // meter per second 
	if(i==1)  { result = (val *5793638.40035) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*1.609344000097); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val*5793.638400346); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*160934.4000096);  unit = " cm/s"; } // centimeter per second 
	if(i==5)  { result = (val *579363840.0346) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *1609344.000096); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *5793638400.346); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val *5280.000000297); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val *19007999.25755); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val *63360.00000357); unit = " in/s"; } // inch per second 
	if(i==11) { result = (val *3128.314740691); unit = " kn"; }   // knot 
	if(i==12) { result = (val *3600.000000128); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val); unit = " mi/s"; } // mile per second   
	if(i==14) { result = (val*4.855318892912); unit = " Ma";} // mach number 
	return result;
}

function velocity_mach_number(i)
{
	if(i==0)  { result = (val*331.4599999695);	unit = " m/s"; } // meter per second 
	if(i==1)  { result = (val *1193255.99989) ; unit = " m/h"; } // meter per hour 
 	if(i==2)  { result = (val*0.3314599999695); unit = " km/s"; } // kilometer per second 
	if(i==3)  { result = (val*1193.25599989); unit = " km/h"; }  // kilometer per hour
	if(i==4)  { result = (val*33145.99999695);  unit = " cm/s"; } // centimeter per second 
	if(i==5)  { result = (val *119325599.989) ; unit = " cm/h"; } // centimeter per hour
	if(i==6)  { result = (val *331459.9999695); unit = " mm/s"; }  // millimeter per second
	if(i==7)  { result = (val *1193255999.89); unit = " mm/h"; }   //  millimeter per hour
	if(i==8)  { result = (val *1087.467191497); unit = " ft/s"; } // foot per second 
	if(i==9)  { result = (val *3914881.736254); unit = "  ft/h"; } // foot per hour
	if(i==10) { result = (val *13049.60629796); unit = " in/s"; } // inch per second 
	if(i==11) { result = (val *644.3067509444); unit = " kn"; }   // knot 
	if(i==12) { result = (val *741.4549032782); unit = " mi/h"; }   // mile per hour 
	if(i==13) { result = (val *0.2059596953477); unit = " mi/s"; } // mile per second   
	if(i==14) { result = (val); unit = " Ma";} // mach number 
	return result;
}

function money_US_dollar(i)
{
	if(i==0)  { result = (val);	unit = " $"; } // US dollar
	if(i==1)  { result = (val *1.6456) ; unit = " DM"; } // German mark
 	if(i==2)  { result = (val*0.6577); unit = " &pound;"; } // British pound
	if(i==3)  { result = (val*102.955); unit = " &yen;"; }  // Janpanese yen
	if(i==4)  { result = (val*1.382);  unit = " $ CDN"; } // Canadian dollar
	if(i==5)  { result = (val *5.6126) ; unit = " ff"; } // Franch franc
	if(i==6)  { result = (val *1.844); unit = " guilder"; }  // Dutch guilder
	if(i==7)  { result = (val *1594.39); unit = " lira"; }   //  Italian lira
	if(i==8)  { result = (val *3.3755); unit = " peso"; } // Mexican peso 
	if(i==9)  { result = (val *1.3872); unit = "  SFr"; } // Swiss franc
	return result;
}

function money_German_mark(i)
{
	if(i==0)  { result = (val*0.6076810889645);	unit = " $"; } // US dollar
	if(i==1)  { result = (val) ; unit = " DM"; } // German mark
 	if(i==2)  { result = (val*0.399671852212); unit = " &pound;"; } // British pound
	if(i==3)  { result = (val*62.56380651434); unit = " &yen;"; }  // Janpanese yen
	if(i==4)  { result = (val*0.839815264949);  unit = " $ CDN"; } // Canadian dollar
	if(i==5)  { result = (val *3.410670879922) ; unit = " ff"; } // Franch franc
	if(i==6)  { result = (val *1.120563928051); unit = " guilder"; }  // Dutch guilder
	if(i==7)  { result = (val *968.8806514341); unit = " lira"; }   //  Italian lira
	if(i==8)  { result = (val *2.0512275158); unit = " peso"; } // Mexican peso 
	if(i==9)  { result = (val *0.8429752066116); unit = "  SFr"; } // Swiss franc
	return result;
}

function money_British_pound(i)
{
	if(i==0)  { result = (val*1.520450053216);	unit = " $"; } // US dollar
	if(i==1)  { result = (val*2.502052607572) ; unit = " DM"; } // German mark
 	if(i==2)  { result = (val); unit = " &pound;"; } // British pound
	if(i==3)  { result = (val*156.5379352288); unit = " &yen;"; }  // Janpanese yen
	if(i==4)  { result = (val*2.101261973544);  unit = " $ CDN"; } // Canadian dollar
	if(i==5)  { result = (val *8.533677968679) ; unit = " ff"; } // Franch franc
	if(i==6)  { result = (val *2.80370989813); unit = " guilder"; }  // Dutch guilder
	if(i==7)  { result = (val *2424.190360347); unit = " lira"; }   //  Italian lira
	if(i==8)  { result = (val *5.13227915463); unit = " peso"; } // Mexican peso 
	if(i==9)  { result = (val *2.109168313821); unit = "  SFr"; } // Swiss franc
	return result;
}

function money_Japanese_yen(i)
{
	if(i==0)  { result = (val*0.009712981399641);	unit = " $"; } // US dollar
	if(i==1)  { result = (val*0.01598368219125) ; unit = " DM"; } // German mark
 	if(i==2)  { result = (val*0.006388227866545); unit = " &pound;"; } // British pound
	if(i==3)  { result = (val); unit = " &yen;"; }  // Janpanese yen
	if(i==4)  { result = (val*0.0134233402943);  unit = " $ CDN"; } // Canadian dollar
	if(i==5)  { result = (val *0.05451507940362) ; unit = " ff"; } // Franch franc
	if(i==6)  { result = (val *0.01791073770094); unit = " guilder"; }  // Dutch guilder
	if(i==7)  { result = (val *15.48628041377); unit = " lira"; }   //  Italian lira
	if(i==8)  { result = (val *0.03278616871449); unit = " peso"; } // Mexican peso 
	if(i==9)  { result = (val *0.01347384779758); unit = "  SFr"; } // Swiss franc
	return result;
}

function money_Canadian_dollar(i)
{
	if(i==0)  { result = (val*0.7235890014472);	unit = " $"; } // US dollar
	if(i==1)  { result = (val*1.190738060781) ; unit = " DM"; } // German mark
 	if(i==2)  { result = (val*0.4759044862518); unit = " &pound;"; } // British pound
	if(i==3)  { result = (val*74.49710564401); unit = " &yen;"; }  // Janpanese yen
	if(i==4)  { result = (val);  unit = " $ CDN"; } // Canadian dollar
	if(i==5)  { result = (val *4.061215629522) ; unit = " ff"; } // Franch franc
	if(i==6)  { result = (val *1.334298118669); unit = " guilder"; }  // Dutch guilder
	if(i==7)  { result = (val *1153.683068017); unit = " lira"; }   //  Italian lira
	if(i==8)  { result = (val *2.442474674385); unit = " peso"; } // Mexican peso 
	if(i==9)  { result = (val *1.003762662808); unit = "  SFr"; } // Swiss franc
	return result;
}

function money_French_franc(i)
{
	if(i==0)  { result = (val*0.1781705448455);	unit = " $"; } // US dollar
	if(i==1)  { result = (val*0.2931974485978) ; unit = " DM"; } // German mark
 	if(i==2)  { result = (val*0.1171827673449); unit = " &pound;"; } // British pound
	if(i==3)  { result = (val*18.34354844457); unit = " &yen;"; }  // Janpanese yen
	if(i==4)  { result = (val*0.2462316929765);  unit = " $ CDN"; } // Canadian dollar
	if(i==5)  { result = (val) ; unit = " ff"; } // Franch franc
	if(i==6)  { result = (val *0.3285464846952); unit = " guilder"; }  // Dutch guilder
	if(i==7)  { result = (val *284.0733349963); unit = " lira"; }   //  Italian lira
	if(i==8)  { result = (val *0.6014146741261); unit = " peso"; } // Mexican peso 
	if(i==9)  { result = (val *0.2471581798097); unit = "  SFr"; } // Swiss franc
	return result;
}

function money_Dutch_guilder(i)
{
	if(i==0)  { result = (val*0.5422993492408);	unit = " $"; } // US dollar
	if(i==1)  { result = (val*0.8924078091103) ; unit = " DM"; } // German mark
 	if(i==2)  { result = (val*0.3566702819956); unit = " &pound;"; } // British pound
	if(i==3)  { result = (val*55.83242950108); unit = " &yen;"; }  // Janpanese yen
	if(i==4)  { result = (val*0.7494577006505);  unit = " $ CDN"; } // Canadian dollar
	if(i==5)  { result = (val*3.043709327548) ; unit = " ff"; } // Franch franc
	if(i==6)  { result = (val); unit = " guilder"; }  // Dutch guilder
	if(i==7)  { result = (val *864.636659436); unit = " lira"; }   //  Italian lira
	if(i==8)  { result = (val *1.830531453362); unit = " peso"; } // Mexican peso 
	if(i==9)  { result = (val *0.7522776572668); unit = "  SFr"; } // Swiss franc
	return result;
}

function money_Italian_lira(i)
{
	if(i==0)  { result = (val*0.0006271991169036);	unit = " $"; } // US dollar
	if(i==1)  { result = (val*0.001032118866777) ; unit = " DM"; } // German mark
 	if(i==2)  { result = (val*0.0004125088591875); unit = " &pound;"; } // British pound
	if(i==3)  { result = (val*0.06457328508083); unit = " &yen;"; }  // Janpanese yen
	if(i==4)  { result = (val*0.0008667891795611);  unit = " $ CDN"; } // Canadian dollar
	if(i==5)  { result = (val*0.003520217763533) ; unit = " ff"; } // Franch franc
	if(i==6)  { result = (val*0.00115655517157); unit = " guilder"; }  // Dutch guilder
	if(i==7)  { result = (val); unit = " lira"; }   //  Italian lira
	if(i==8)  { result = (val *0.002117110619108); unit = " peso"; } // Mexican peso 
	if(i==9)  { result = (val *0.0008700506149687); unit = "  SFr"; } // Swiss franc
	return result;
}

function money_Maxican_peso(i)
{
	if(i==0)  { result = (val*0.2962524070508);	unit = " $"; } // US dollar
	if(i==1)  { result = (val*0.4875129610427) ; unit = " DM"; } // German mark
 	if(i==2)  { result = (val*0.1948452081173); unit = " &pound;"; } // British pound
	if(i==3)  { result = (val*30.50066656791); unit = " &yen;"; }  // Janpanese yen
	if(i==4)  { result = (val*0.4094208265442);  unit = " $ CDN"; } // Canadian dollar
	if(i==5)  { result = (val*1.662746259813) ; unit = " ff"; } // Franch franc
	if(i==6)  { result = (val*0.5462894386018); unit = " guilder"; }  // Dutch guilder
	if(i==7)  { result = (val*472.3418752778); unit = " lira"; }   //  Italian lira
	if(i==8)  { result = (val); unit = " peso"; } // Mexican peso 
	if(i==9)  { result = (val *0.4109613390609); unit = "  SFr"; } // Swiss franc
	return result;
}

function money_Swiss_franc(i)
{
	if(i==0)  { result = (val*0.7208765859285);	unit = " $"; } // US dollar
	if(i==1)  { result = (val*1.186274509804) ; unit = " DM"; } // German mark
 	if(i==2)  { result = (val*0.4741205305651); unit = " &pound;"; } // British pound
	if(i==3)  { result = (val*74.21784890428); unit = " &yen;"; }  // Janpanese yen
	if(i==4)  { result = (val*0.9962514417527);  unit = " $ CDN"; } // Canadian dollar
	if(i==5)  { result = (val*4.045991926182) ; unit = " ff"; } // Franch franc
	if(i==6)  { result = (val*1.329296424452); unit = " guilder"; }  // Dutch guilder
	if(i==7)  { result = (val*1149.358419839); unit = " lira"; }   //  Italian lira
	if(i==8)  { result = (val*2.433318915801); unit = " peso"; } // Mexican peso 
	if(i==9)  { result = (val); unit = "  SFr"; } // Swiss franc
	return result;
}

function acceleration_meter_per_second(i)
{
	if(i==0)  { result = (val);	unit = " m/s<sup>2</sup>"; } // meter per second 2
	if(i==1)  { result = (val*100) ; unit = " cm/s<sup>2</sup>"; } // centimeter per second 2
 	if(i==2)  { result = (val*3.6); unit = " km/(h-s)"; } // kilometer per hour-second
	if(i==3)  { result = (val*39.37007874); unit = " in/s<sup>2</sup>"; }  // inch per second 2
	if(i==4)  { result = (val*3.280839895);  unit = " ft/s<sup>2</sup>"; } // foot per second 2
	if(i==5)  { result = (val*0.101971621) ; unit = " g"; } // gravity
	return result;
}

function acceleration_centimeter_per_second(i)
{
	if(i==0)  { result = (val*0.01);	unit = " m/s<sup>2</sup>"; } // meter per second 2
	if(i==1)  { result = (val) ; unit = " cm/s<sup>2</sup>"; } // centimeter per second 2
 	if(i==2)  { result = (val*0.036); unit = " km/(h-s)"; } // kilometer per hour-second
	if(i==3)  { result = (val*0.3937007874); unit = " in/s<sup>2</sup>"; }  // inch per second 2
	if(i==4)  { result = (val*0.03280839895);  unit = " ft/s<sup>2</sup>"; } // foot per second 2
	if(i==5)  { result = (val*0.00101971621) ; unit = " g"; } // gravity
	return result;
}

function acceleration_kilometer_per_hour_second(i)
{
	if(i==0)  { result = (val*0.2777777777778);	unit = " m/s<sup>2</sup>"; } // meter per second 2
	if(i==1)  { result = (val*27.77777777778) ; unit = " cm/s<sup>2</sup>"; } // centimeter per second 2
 	if(i==2)  { result = (val); unit = " km/(h-s)"; } // kilometer per hour-second
	if(i==3)  { result = (val*10.93613298333); unit = " in/s<sup>2</sup>"; }  // inch per second 2
	if(i==4)  { result = (val*0.9113444152778);  unit = " ft/s<sup>2</sup>"; } // foot per second 2
	if(i==5)  { result = (val*0.02832545027778) ; unit = " g"; } // gravity
	return result;
}

function acceleration_inch_per_second(i)
{
	if(i==0)  { result = (val*0.0254000000001);	unit = " m/s<sup>2</sup>"; } // meter per second 2
	if(i==1)  { result = (val*2.54000000001) ; unit = " cm/s<sup>2</sup>"; } // centimeter per second 2
 	if(i==2)  { result = (val*0.09144000000039); unit = " km/(h-s)"; } // kilometer per hour-second
	if(i==3)  { result = (val); unit = " in/s<sup>2</sup>"; }  // inch per second 2
	if(i==4)  { result = (val*0.08333333333333);  unit = " ft/s<sup>2</sup>"; } // foot per second 2
	if(i==5)  { result = (val*0.00259007917341) ; unit = " g"; } // gravity
	return result;
}

function acceleration_foot_per_second(i)
{
	if(i==0)  { result = (val*0.3048000000012);	unit = " m/s<sup>2</sup>"; } // meter per second 2
	if(i==1)  { result = (val*30.48000000012) ; unit = " cm/s<sup>2</sup>"; } // centimeter per second 2
 	if(i==2)  { result = (val*1.097280000004); unit = " km/(h-s)"; } // kilometer per hour-second
	if(i==3)  { result = (val*12); unit = " in/s<sup>2</sup>"; }  // inch per second 2
	if(i==4)  { result = (val);  unit = " ft/s<sup>2</sup>"; } // foot per second 2
	if(i==5)  { result = (val*0.03108095008092) ; unit = " g"; } // gravity
	return result;
}

function acceleration_gravity(i)
{
	if(i==0)  { result = (val*9.806650028639);	unit = " m/s<sup>2</sup>"; } // meter per second 2
	if(i==1)  { result = (val*980.6650028639) ; unit = " cm/s<sup>2</sup>"; } // centimeter per second 2
 	if(i==2)  { result = (val*35.3039401031); unit = " km/(h-s)"; } // kilometer per hour-second
	if(i==3)  { result = (val*386.0885838032); unit = " in/s<sup>2</sup>"; }  // inch per second 2
	if(i==4)  { result = (val*32.17404865027);  unit = " ft/s<sup>2</sup>"; } // foot per second 2
	if(i==5)  { result = (val) ; unit = " g"; } // gravity
	return result;
}

function angacceleration_radian_per_second(i)
{
	if(i==0)  { result = (val);	unit = " rad/s<sup>2</sup>"; } // radian per second 2
	if(i==1)  { result = (val*57.29578779) ; unit = " <sup>o</sup>/s<sup>2</sup>"; } // degree per second 2
 	if(i==2)  { result = (val*9.549296596); unit = " r/(m-s)"; } // revolution per minute-sec
	if(i==3)  { result = (val*572.9577951); unit = " r/min<sup>2</sup>"; }  // revolution per minute 2
	if(i==4)  { result = (val*0.159154943);  unit = " r/s<sup>2</sup>"; } // revolution per second 2

	return result;
}

function angacceleration_degree_per_second(i)
{
	if(i==0)  { result = (val*0.01745328999865);	unit = " rad/s<sup>2</sup>"; } // radian per second 2
	if(i==1)  { result = (val) ; unit = " <sup>o</sup>/s<sup>2</sup>"; } // degree per second 2
 	if(i==2)  { result = (val*0.1666666427731); unit = " r/(m-s)"; } // revolution per minute-sec
	if(i==3)  { result = (val*9.999998554868); unit = " r/min<sup>2</sup>"; }  // revolution per minute 2
	if(i==4)  { result = (val*0.002777777374898);  unit = " r/s<sup>2</sup>"; } // revolution per second 2

	return result;
}

function angacceleration_revolution_per_minute_second(i)
{
	if(i==0)  { result = (val*0.1047197550047);	unit = " rad/s<sup>2</sup>"; } // radian per second 2
	if(i==1)  { result = (val*6.000000860169) ; unit = " <sup>o</sup>/s<sup>2</sup>"; } // degree per second 2
 	if(i==2)  { result = (val); unit = " r/(m-s)"; } // revolution per minute-sec
	if(i==3)  { result = (val*59.99999993088); unit = " r/min<sup>2</sup>"; }  // revolution per minute 2
	if(i==4)  { result = (val*0.01666666663874);  unit = " r/s<sup>2</sup>"; } // revolution per second 2

	return result;
}

function angacceleration_revolution_per_minute(i)
{
	if(i==0)  { result = (val*0.001745329252088);	unit = " rad/s<sup>2</sup>"; } // radian per second 2
	if(i==1)  { result = (val*0.1000000144513) ; unit = " <sup>o</sup>/s<sup>2</sup>"; } // degree per second 2
 	if(i==2)  { result = (val*0.01666666668587); unit = " r/(m-s)"; } // revolution per minute-sec
	if(i==3)  { result = (val); unit = " r/min<sup>2</sup>"; }  // revolution per minute 2
	if(i==4)  { result = (val*0.0002777777776323);  unit = " r/s<sup>2</sup>"; } // revolution per second 2

	return result;
}

function angacceleration_revolution_per_second(i)
{
	if(i==0)  { result = (val*6.283185310807);	unit = " rad/s<sup>2</sup>"; } // radian per second 2
	if(i==1)  { result = (val*360.0000522132) ; unit = " <sup>o</sup>/s<sup>2</sup>"; } // degree per second 2
 	if(i==2)  { result = (val*60.00000010054); unit = " r/(m-s)"; } // revolution per minute-sec
	if(i==3)  { result = (val*3600.000001885); unit = " r/min<sup>2</sup>"; }  // revolution per minute 2
	if(i==4)  { result = (val);  unit = " r/s<sup>2</sup>"; } // revolution per second 2

	return result;
}

function angvelocity_radian_per_second(i)
{
	if(i==0)  { result = (val);	unit = " rad/s"; } // radian per second 
	if(i==1)  { result = (val*57.29578779) ; unit = " <sup>o</sup>/s"; } // degree per second 
 	if(i==2)  { result = (val*3437.746873); unit = " <sup>o</sup>/min"; } // degree per minute
	if(i==3)  { result = (val*206264.7982); unit = " <sup>o</sup>/h"; }  // degree per hour
	if(i==4)  { result = (val*0.159154943);  unit = " r/s"; } // revolution per second
	if(i==5)  { result = (val*9.549296596);  unit = " r/min"; } // revolution per minute
	if(i==6)  { result = (val*572.9577951);  unit = " r/h"; } // revolution per hour

	return result;
}

function angvelocity_degree_per_second(i)
{
	if(i==0)  { result = (val*0.01745328999865);	unit = " rad/s"; } // radian per second 
	if(i==1)  { result = (val) ; unit = " <sup>o</sup>/s"; } // degree per second 
 	if(i==2)  { result = (val*59.99999311642); unit = " <sup>o</sup>/min"; } // degree per minute
	if(i==3)  { result = (val*3599.999339498); unit = " <sup>o</sup>/h"; }  // degree per hour
	if(i==4)  { result = (val*0.002777777374898);  unit = " r/s"; } // revolution per second
	if(i==5)  { result = (val*0.1666666427731);  unit = " r/min"; } // revolution per minute
	if(i==6)  { result = (val*9.999998554868);  unit = " r/h"; } // revolution per hour

	return result;
}

function angvelocity_degree_per_minute(i)
{
	if(i==0)  { result = (val*0.0002908882000167);	unit = " rad/s"; } // radian per second 
	if(i==1)  { result = (val*0.01666666857877) ; unit = " <sup>o</sup>/s"; } // degree per second 
 	if(i==2)  { result = (val); unit = " <sup>o</sup>/min"; } // degree per minute
	if(i==3)  { result = (val*59.99999587521); unit = " <sup>o</sup>/h"; }  // degree per hour
	if(i==4)  { result = (val*parseFloat(4.629629489303))*Math.pow(10,-005);  unit = " r/s"; } // revolution per second 
	if(i==5)  { result = (val*0.002777777698236);  unit = " r/min"; } // revolution per minute
	if(i==6)  { result = (val*0.1666666617022);  unit = " r/h"; } // revolution per hour

	return result;
}

function angvelocity_degree_per_hour(i)
{
	if(i==0)  { result = (val*parseFloat(4.848137000238))*Math.pow(10,-006);	unit = " rad/s"; } // radian per second 
	if(i==1)  { result = (val*0.0002777778287424) ; unit = " <sup>o</sup>/s"; } // degree per second 
 	if(i==2)  { result = (val*0.01666666781244); unit = " <sup>o</sup>/min"; } // degree per minute
	if(i==3)  { result = (val); unit = " <sup>o</sup>/h"; }  // degree per hour
	if(i==4)  { result = (val*parseFloat(7.71604967929))*Math.pow(10,-007);  unit = " r/s"; } // revolution per second 
	if(i==5)  { result = (val*parseFloat(4.629629815331))*Math.pow(10,-005);  unit = " r/min"; } // revolution per minute 
	if(i==6)  { result = (val*0.002777777885999);  unit = " r/h"; } // revolution per hour

	return result;
}

function angvelocity_relovution_per_second(i)
{
	if(i==0)  { result = (val*6.283185310807);	unit = " rad/s"; } // radian per second 
	if(i==1)  { result = (val*360.0000522132) ; unit = " <sup>o</sup>/s"; } // degree per second 
 	if(i==2)  { result = (val*21600.00065471); unit = " <sup>o</sup>/min"; } // degree per minute
	if(i==3)  { result = (val*1295999.950187); unit = " <sup>o</sup>/h"; }  // degree per hour
	if(i==4)  { result = (val);  unit = " r/s"; } // revolution per second 
	if(i==5)  { result = (val*60.00000010053);  unit = " r/min"; } // revolution per minute 
	if(i==6)  { result = (val*3600.000001885);  unit = " r/h"; } // revolution per hour

	return result;
}

function angvelocity_relovution_per_minute(i)
{
	if(i==0)  { result = (val*0.1047197550047);	unit = " rad/s"; } // radian per second 
	if(i==1)  { result = (val*6.000000860169) ; unit = " <sup>o</sup>/s"; } // degree per second 
 	if(i==2)  { result = (val*360.0000103086); unit = " <sup>o</sup>/min"; } // degree per minute
	if(i==3)  { result = (val*21599.99913359); unit = " <sup>o</sup>/h"; }  // degree per hour
	if(i==4)  { result = (val*0.01666666663874);  unit = " r/s"; } // revolution per second 
	if(i==5)  { result = (val);  unit = " r/min"; } // revolution per minute 
	if(i==6)  { result = (val*59.99999993088);  unit = " r/h"; } // revolution per hour

	return result;
}

function angvelocity_relovution_per_hour(i)
{
	if(i==0)  { result = (val*0.001745329252088);	unit = " rad/s"; } // radian per second 
	if(i==1)  { result = (val*0.1000000144513) ; unit = " <sup>o</sup>/s"; } // degree per second 
 	if(i==2)  { result = (val*6.000000178721); unit = " <sup>o</sup>/min"; } // degree per minute
	if(i==3)  { result = (val*359.9999859745); unit = " <sup>o</sup>/h"; }  // degree per hour
	if(i==4)  { result = (val*0.0002777777776323);  unit = " r/s"; } // revolution per second 
	if(i==5)  { result = (val*0.01666666668587);  unit = " r/min"; } // revolution per minute 
	if(i==6)  { result = (val);  unit = " r/h"; } // revolution per hour

	return result;
}

function capacitance_farad(i)
{
	if(i==0)  { result = (val);	unit = " F"; } // farad
	if(i==1)  { result = (val*1000000) ; unit = " &#181;F"; } // microfarad
 	if(i==2)  { result = (val*1000000000000); unit = " pF"; } // picofarad
	if(i==3)  { result = (val*898755224000); unit = " sF"; }  // statfarad
	if(i==4)  { result = (val*parseFloat(1))*Math.pow(10,-009);  unit = " aF"; } // abafarad
	if(i==5)  { result = (val*898755224000);  unit = " ESU"; } // eletrostatic unit of capacitance
	if(i==6)  { result = (val*parseFloat(1))*Math.pow(10,-009);  unit = " EMU"; } // elecromagnetic unit of capacitance 

	return result;
}
function capacitance_microfarad(i)
{
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-006);	unit = " F"; } // farad 
	if(i==1)  { result = (val) ; unit = " &#181;F"; } // microfarad
 	if(i==2)  { result = (val*1000000); unit = " pF"; } // picofarad
	if(i==3)  { result = (val*898755.224); unit = " sF"; }  // statfarad
	if(i==4)  { result = (val*parseFloat(1))*Math.pow(10,-15);  unit = " aF"; } // abafarad 
	if(i==5)  { result = (val*898755.224);  unit = " ESU"; } // eletrostatic unit of capacitance
	if(i==6)  { result = (val*parseFloat(1))*Math.pow(10,-15);  unit = " EMU"; } // elecromagnetic unit of capacitance 

	return result;
}

function capacitance_picofarad(i)
{
	if(i==0)  { result = (val*parseFloat(1))*Math.pow(10,-12);	unit = " F"; } // farad 
	if(i==1)  { result = (val*parseFloat(1))*Math.pow(10,-006) ; unit = " &#181;F"; } // microfarad
 	if(i==2)  { result = (val); unit = " pF"; } // picofarad
	if(i==3)  { result = (val*0.898755224); unit = " sF"; }  // statfarad
	if(i==4)  { result = (val*parseFloat(1))*Math.pow(10,-21);  unit = " aF"; } // abafarad 
	if(i==5)  { result = (val*0.898755224);  unit = " ESU"; } // eletrostatic unit of capacitance
	if(i==6)  { result = (val*parseFloat(1))*Math.pow(10,-21);  unit = " EMU"; } // elecromagnetic unit of capacitance 

	return result;
}

function capacitance_statfarad(i)
{
	if(i==0)  { result = (val*parseFloat(1.112650000018))*Math.pow(10,-12);	unit = " F"; } // farad  
	if(i==1)  { result = (val*parseFloat(1.112650000018))*Math.pow(10,-006) ; unit = " &#181;F"; } // microfarad
 	if(i==2)  { result = (val*1.112650000018); unit = " pF"; } // picofarad
	if(i==3)  { result = (val); unit = " sF"; }  // statfarad
	if(i==4)  { result = (val*parseFloat(1.112650000018))*Math.pow(10,-21);  unit = " aF"; } // abafarad  
	if(i==5)  { result = (val);  unit = " ESU"; } // eletrostatic unit of capacitance
	if(i==6)  { result = (val*parseFloat(1.112650000018))*Math.pow(10,-21);  unit = " EMU"; } // elecromagnetic unit of capacitance 

	return result;
}

function capacitance_abafarad(i)
{
	if(i==0)  { result = (val*1000000000);	unit = " F"; } // farad  
	if(i==1)  { result = (val*parseFloat(1))*Math.pow(10,15) ; unit = " &#181;F"; } // microfarad
 	if(i==2)  { result = (val*parseFloat(1))*Math.pow(10,21); unit = " pF"; } // picofarad
	if(i==3)  { result = (val*parseFloat(8.987552240002))*Math.pow(10,20); unit = " sF"; }  // statfarad 
	if(i==4)  { result = (val);  unit = " aF"; } // abafarad  
	if(i==5)  { result = (val*parseFloat(8.98755224))*Math.pow(10,20);  unit = " ESU"; } // eletrostatic unit of capacitance 
	if(i==6)  { result = (val);  unit = " EMU"; } // elecromagnetic unit of capacitance 

	return result;
}

function capacitance_electrostatic_unit_of_capacitance(i)
{
	if(i==0)  { result = (val*parseFloat(1.112650000018))*Math.pow(10,-12);	unit = " F"; } // farad  
	if(i==1)  { result = (val*parseFloat(1.112650000018))*Math.pow(10,-006) ; unit = " &#181;F"; } // microfarad 
 	if(i==2)  { result = (val*1.112650000018); unit = " pF"; } // picofarad
	if(i==3)  { result = (val); unit = " sF"; }  // statfarad 
	if(i==4)  { result = (val*parseFloat(1.112650000018))*Math.pow(10,-21);  unit = " aF"; } // abafarad  
	if(i==5)  { result = (val);  unit = " ESU"; } // eletrostatic unit of capacitance 
	if(i==6)  { result = (val*parseFloat(1.112650000018))*Math.pow(10,-21);  unit = " EMU"; } // elecromagnetic unit of capacitance 

	return result;
}

function capacitance_electromagnetic_unit_of_capacitance(i)
{
	if(i==0)  { result = (val*1000000000);	unit = " F"; } // farad  
	if(i==1)  { result = (val*parseFloat(1))*Math.pow(10,15) ; unit = " &#181;F"; } // microfarad 
 	if(i==2)  { result = (val*parseFloat(1))*Math.pow(10,21); unit = " pF"; } // picofarad
	if(i==3)  { result = (val*parseFloat(8.987552240002))*Math.pow(10,20); unit = " sF"; }  // statfarad 
	if(i==4)  { result = (val);  unit = " aF"; } // abafarad  
	if(i==5)  { result = (val*parseFloat(8.987552240002))*Math.pow(10,20);  unit = " ESU"; } // eletrostatic unit of capacitance  
	if(i==6)  { result = (val);  unit = " EMU"; } // elecromagnetic unit of capacitance 

	return result;
}

function charge_coulomb(i)
{
	if(i==0)  { result = (val);	unit = " C"; } // coulomb
	if(i==1)  { result = (val*0.1) ; unit = " aC"; } // abacoulomb
 	if(i==2)  { result = (val*2997924537); unit = " sC"; } // statcoulomb
	if(i==3)  { result = (val*0.0002777777778); unit = " A-h"; }  // ampere hour
	if(i==4)  { result = (val*parseFloat(1.03640905))*Math.pow(10,-005);  unit = " faraday"; } // faraday (carbon 12) 
	if(i==5)  { result = (val*parseFloat(1.036315608))*Math.pow(10,-005);  unit = " faraday"; } // faraday (chemical)  
	if(i==6)  { result = (val*parseFloat(1.036034309))*Math.pow(10,-005);  unit = " faraday"; } // faraday (physical)

	return result;
}

function charge_abacoulomb(i)
{
	if(i==0)  { result = (val*10);	unit = " C"; } // coulomb
	if(i==1)  { result = (val) ; unit = " aC"; } // abacoulomb
 	if(i==2)  { result = (val*29979245370); unit = " sC"; } // statcoulomb
	if(i==3)  { result = (val*0.002777777778); unit = " A-h"; }  // ampere hour
	if(i==4)  { result = (val*0.000103640905);  unit = " faraday"; } // faraday (carbon 12) 
	if(i==5)  { result = (val*0.0001036315608);  unit = " faraday"; } // faraday (chemical)  
	if(i==6)  { result = (val*0.0001036034309);  unit = " faraday"; } // faraday (physical)

	return result;
}

function charge_statcoulomb(i)
{
	if(i==0)  { result = (val*parseFloat(3.335640999825))*Math.pow(10,-10);	unit = " C"; } // coulomb 
	if(i==1)  { result = (val*parseFloat(3.335640999825))*Math.pow(10,-11) ; unit = " aC"; } // abacoulomb 
 	if(i==2)  { result = (val); unit = " sC"; } // statcoulomb
	if(i==3)  { result = (val*parseFloat(9.265669444701))*Math.pow(10,-14); unit = " A-h"; }  // ampere hour 
	if(i==4)  { result = (val*parseFloat(3.45708851977))*Math.pow(10,-15);  unit = " faraday"; } // faraday (carbon 12)  
	if(i==5)  { result = (val*parseFloat(3.456776830804))*Math.pow(10,-15);  unit = " faraday"; } // faraday (chemical) 
	if(i==6)  { result = (val*parseFloat(3.455838518326))*Math.pow(10,-15);  unit = " faraday"; } // faraday (physical) 

	return result;
}

function charge_ampere_hour(i)
{
	if(i==0)  { result = (val*3599.999999712);	unit = " C"; } // coulomb 
	if(i==1)  { result = (val*359.9999999712) ; unit = " aC"; } // abacoulomb 
 	if(i==2)  { result = (val*parseFloat(1.079252833234))*Math.pow(10,13); unit = " sC"; } // statcoulomb 
	if(i==3)  { result = (val); unit = " A-h"; }  // ampere hour 
	if(i==4)  { result = (val*0.03731072579702);  unit = " faraday"; } // faraday (carbon 12)  
	if(i==5)  { result = (val*0.03730736188502);  unit = " faraday"; } // faraday (chemical) 
	if(i==6)  { result = (val*0.03729723512102);  unit = " faraday"; } // faraday (physical) 

	return result;
}

function charge_faraday_carbon_12(i)
{
	if(i==0)  { result = (val*96486.99999291);	unit = " C"; } // coulomb 
	if(i==1)  { result = (val*9648.699999291) ; unit = " aC"; } // abacoulomb 
 	if(i==2)  { result = (val*parseFloat(2.892607447803))*Math.pow(10,14); unit = " sC"; } // statcoulomb 
	if(i==3)  { result = (val*26.80194444462); unit = " A-h"; }  // ampere hour 
	if(i==4)  { result = (val);  unit = " faraday"; } // faraday (carbon 12)  
	if(i==5)  { result = (val*0.9999098406175);  unit = " faraday"; } // faraday (chemical) 
	if(i==6)  { result = (val*0.9996384236514);  unit = " faraday"; } // faraday (physical) 

	return result;
}

function charge_faraday_chemical(i)
{
	if(i==0)  { result = (val*96495.69998564);	unit = " C"; } // coulomb 
	if(i==1)  { result = (val*9649.569998564) ; unit = " aC"; } // abacoulomb 
 	if(i==2)  { result = (val*parseFloat(2.892868267019))*Math.pow(10,14); unit = " sC"; } // statcoulomb 
	if(i==3)  { result = (val*26.80436110926); unit = " A-h"; }  // ampere hour 
	if(i==4)  { result = (val*1.000090167512);  unit = " faraday"; } // faraday (carbon 12)  
	if(i==5)  { result = (val);  unit = " faraday"; } // faraday (chemical) 
	if(i==6)  { result = (val*0.9997285585609);  unit = " faraday"; } // faraday (physical) 

	return result;
}

function charge_faraday_physical(i)
{
	if(i==0)  { result = (val*96521.90002908);	unit = " C"; } // coulomb 
	if(i==1)  { result = (val*9652.190002908) ; unit = " aC"; } // abacoulomb 
 	if(i==2)  { result = (val*parseFloat(2.893653724551))*Math.pow(10,14); unit = " sC"; } // statcoulomb  
	if(i==3)  { result = (val*26.81163889911); unit = " A-h"; }  // ampere hour 
	if(i==4)  { result = (val*1.000361707133);  unit = " faraday"; } // faraday (carbon 12)  
	if(i==5)  { result = (val*1.00027151514);  unit = " faraday"; } // faraday (chemical) 
	if(i==6)  { result = (val);  unit = " faraday"; } // faraday (physical) 

	return result;
}
