</p>
<style><!–
div.pagetext {
margin-bottom:3em;
}
table.padtable {
width:99%;
border:1px solid #ccc;
}
table.padtable tr:nth-child(2n-1) {
background-color:#f9f9f9;
}
table.padtable tr td {
margin:0.5em 0;
}
table.padtable input {
margin:0 auto;
}
table.padtable input[type=button] {
padding:0.75em;
margin:0.5em 0;
}
table.padtable label {
font-weight: bold;
margin-left:1em;
}
@media screen and (max-width: 767px) {
table.padtable tr:nth-child(2n-1) {
background-color:inherit;
}
table.padtable {
border: 0;
}
table.padtable label {
margin-left:0;
}
}
–></style>
<h1 class=”conversionhead”>Unit Conversion Calculator</h1>
<form name=”converse”>
<div id=”page1″ class=”pagetext grid-container”><fieldset>Length
<table class=”padtable”>
<tbody>
<tr>
<td class=”grid12-3″><label for=”d1″>Millimeter(mm)</label></td>
<td class=”grid12-3″><input id=”d1″ type=”number” name=”d1″ /></td>
<td class=”grid12-3″><label for=”j1″>Inch(in)</label></td>
<td class=”grid12-3″><input id=”j1″ type=”number” name=”j1″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”e1″>Centimeter(cm)</label></td>
<td class=”grid12-3″><input id=”e1″ type=”number” name=”e1″ /></td>
<td class=”grid12-3″><label for=”l1″>Feet(ft</label>)</td>
<td class=”grid12-3″><input id=”l1″ type=”number” name=”l1″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”g1″>Meter(m)</label></td>
<td class=”grid12-3″><input id=”g1″ type=”number” name=”g1″ /></td>
<td class=”grid12-3″><label for=”k1″>Yard</label></td>
<td class=”grid12-3″><input id=”k1″ type=”number” name=”k1″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”i1″>Kilometer(km)</label></td>
<td class=”grid12-3″><input id=”i1″ type=”number” name=”i1″ /></td>
<td class=”grid12-3″><label for=”m1″>Mile</label></td>
<td class=”grid12-3″><input id=”m1″ type=”number” name=”m1″ /></td>
</tr>
<tr>
<td colspan=”4″>
<div class=”calcbutton”><input onclick=”convertor1();” type=”button” value=”Convert” name=”button2″ /></div>
</td>
</tr>
</tbody>
</table>
</fieldset></div>
<div id=”page2″ class=”pagetext grid-container”><fieldset><legend>Temperature</legend>
<table class=”padtable”>
<tbody>
<tr>
<td class=”grid12-3″><label for=”a9″>Celsius(°C)</label></td>
<td class=”grid12-3″><input id=”a9″ type=”number” name=”a9″ /></td>
<td class=”grid12-3″><label for=”c9″>Fahrenheit(°F)</label></td>
<td class=”grid12-3″><input id=”c9″ type=”number” name=”c9″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”b9″>Kelvin(K)</label></td>
<td class=”grid12-3″><input id=”b9″ type=”number” name=”b9″ /></td>
<td class=”grid12-3″> </td>
<td class=”grid12-3″> </td>
</tr>
<tr>
<td colspan=”4″>
<div class=”calcbutton”><input onclick=”convertor9();” type=”button” value=”Convert” name=”button” /></div>
</td>
</tr>
</tbody>
</table>
</fieldset></div>
<div id=”page3″ class=”pagetext grid-container”><fieldset><legend>Pressure</legend>
<table class=”padtable”>
<tbody>
<tr>
<td class=”grid12-3″><label for=”b8″>atmosphere(atm)</label></td>
<td class=”grid12-3″><input id=”b8″ type=”number” name=”b8″ /></td>
<td class=”grid12-3″><label for=”l8″>(psia)</label></td>
<td class=”grid12-3″><input id=”l8″ type=”number” name=”l8″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”c8″>pascal(Pa)</label></td>
<td class=”grid12-3″><input id=”c8″ type=”number” name=”c8″ /></td>
<td class=”grid12-3″><label for=”m8″>(kPa)</label></td>
<td class=”grid12-3″><input id=”m8″ type=”number” name=”m8″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”a8″>(bar)</label></td>
<td class=”grid12-3″><input id=”a8″ type=”number” name=”a8″ /></td>
<td class=”grid12-3″><label for=”n8″>(millibar)</label></td>
<td class=”grid12-3″><input id=”n8″ type=”number” name=”n8″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”d8″>(Tor)</label></td>
<td class=”grid12-3″><input id=”d8″ type=”number” name=”d8″ /></td>
<td class=”grid12-3″><label for=”o8″>(inHg)</label></td>
<td class=”grid12-3″><input id=”o8″ type=”number” name=”o8″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”k8″>(mmHg)</label></td>
<td class=”grid12-3″><input id=”k8″ type=”number” name=”k8″ /></td>
<td class=”grid12-3″><label for=”p8″>(cmHg)</label></td>
<td class=”grid12-3″><input id=”p8″ type=”number” name=”p8″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”j8″>(ftH2O)</label></td>
<td class=”grid12-3″><input id=”j8″ type=”number” name=”j8″ /></td>
<td class=”grid12-3″><label for=”q8″>(inH2O)</label></td>
<td class=”grid12-3″><input id=”q8″ type=”number” name=”q8″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”i8″>(mmH2O)</label></td>
<td class=”grid12-3″><input id=”i8″ type=”number” name=”i8″ /></td>
<td class=”grid12-3″><label for=”r8″>(cmH2O)</label></td>
<td class=”grid12-3″><input id=”r8″ type=”number” name=”r8″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”h8″>(mH2O)</label></td>
<td class=”grid12-3″><input id=”h8″ type=”number” name=”h8″ /></td>
<td class=”grid12-3″><label for=”g8″>kg/cm<sup>2</sup></label></td>
<td class=”grid12-3″><input id=”g8″ type=”number” name=”g8″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”f8″>psi</label></td>
<td class=”grid12-3″><input id=”f8″ type=”number” name=”f8″ /></td>
<td class=”grid12-3″> </td>
<td class=”grid12-3″> </td>
</tr>
<tr>
<td colspan=”4″>
<div class=”calcbutton”><input onclick=”convertor8();” type=”button” value=”Convert” name=”button3″ /></div>
</td>
</tr>
</tbody>
</table>
</fieldset></div>
<div id=”page4″ class=”pagetext grid-container”><fieldset><legend>Volume</legend>
<table class=”padtable”>
<tbody>
<tr>
<td class=”grid12-3″><label for=”f3″>liter(l)</label></td>
<td class=”grid12-3″><input id=”f3″ type=”number” name=”f3″ /></td>
<td class=”grid12-3″><label for=”r3″>US Liquid(ounce)</label></td>
<td class=”grid12-3″><input id=”r3″ type=”number” name=”r3″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”p3″>imperial(ounce)</label></td>
<td class=”grid12-3″><input id=”p3″ type=”number” name=”p3″ /></td>
<td class=”grid12-3″><label for=”q3″>US Liquid(pint)</label></td>
<td class=”grid12-3″><input id=”q3″ type=”number” name=”q3″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”o3″>imperial(pint)</label></td>
<td class=”grid12-3″><input id=”o3″ type=”number” name=”o3″ /></td>
<td class=”grid12-3″><label for=”m3″>US Liquid(gallon)</label></td>
<td class=”grid12-3″><input id=”m3″ type=”number” name=”m3″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”n3″>imperial(gallon)</label></td>
<td class=”grid12-3″><input id=”n3″ type=”number” name=”n3″ /></td>
<td class=”grid12-3″><label for=”k3″>cubic feet(ft<sup>3</sup>)</label></td>
<td class=”grid12-3″><input id=”k3″ type=”number” name=”k3″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”d3″>cubic meter(m<sup>3</sup>)</label></td>
<td class=”grid12-3″><input id=”d3″ type=”number” name=”d3″ /></td>
<td class=”grid12-3″><label for=”b3″>centimeter(cm<sup>3</sup>)</label></td>
<td class=”grid12-3″><input id=”b3″ type=”number” name=”b3″ /></td>
</tr>
<tr>
<td colspan=”4″>
<div class=”calcbutton”><input onclick=”convertor3();” type=”button” value=”Convert” name=”button4″ /></div>
</td>
</tr>
</tbody>
</table>
</fieldset></div>
<div id=”page5″ class=”pagetext grid-container”><fieldset><legend>Power</legend>
<table class=”padtable”>
<tbody>
<tr>
<td class=”grid12-3″><label for=”a4″>Horsepower</label></td>
<td class=”grid12-3″><input id=”a4″ type=”number” name=”a4″ /></td>
<td class=”grid12-3″><label for=”b4″>kilowatts(KW)</label></td>
<td class=”grid12-3″><input id=”b4″ type=”number” name=”b4″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”c4″>(metric HP)</label></td>
<td class=”grid12-3″><input id=”c4″ type=”number” name=”c4″ /></td>
<td class=”grid12-3″><label for=”d4″>Btu/s</label></td>
<td class=”grid12-3″><input id=”d4″ type=”number” name=”d4″ /></td>
</tr>
<tr>
<td colspan=”4″>
<div class=”calcbutton”><input onclick=”convertor4();” type=”button” value=”Convert” name=”button5″ /></div>
</td>
</tr>
</tbody>
</table>
</fieldset></div>
<div id=”page6″ class=”pagetext grid-container”><fieldset><legend>Flow-Rate</legend>
<table class=”padtable”>
<tbody>
<tr>
<td class=”grid12-3″><label for=”e7″>L/min</label></td>
<td class=”grid12-3″><input id=”e7″ type=”number” name=”e7″ /></td>
<td class=”grid12-3″><label for=”c7″>m3/h</label></td>
<td class=”grid12-3″><input id=”c7″ type=”number” name=”c7″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”b7″>ft3/h</label></td>
<td class=”grid12-3″><input id=”b7″ type=”number” name=”b7″ /></td>
<td class=”grid12-3″><label for=”a7″>ft3/min</label></td>
<td class=”grid12-3″><input id=”a7″ type=”number” name=”a7″ /></td>
</tr>
<tr>
<td class=”grid12-3″><label for=”k7″>lmp.GPM</label></td>
<td class=”grid12-3″><input id=”k7″ type=”number” name=”k7″ /></td>
<td class=”grid12-3″><label for=”h7″>US GPM</label></td>
<td class=”grid12-3″><input id=”h7″ type=”number” name=”h7″ /></td>
</tr>
<tr>
<td colspan=”4″>
<div class=”calcbutton”><input onclick=”convertor7();” type=”button” value=”Convert” name=”button6″ /></div>
</td>
</tr>
</tbody>
</table>
</fieldset></div>
</form>
<script type=”text/javascript”>
// function mosDHTML(){
// this.ver=navigator.appVersion
// this.agent=navigator.userAgent
// this.dom=document.getElementById?1:0
// this.opera5=this.agent.indexOf(“Opera 5”)<-1
// this.ie5=(this.ver.indexOf(“MSIE 5”)<-1 && this.dom && !this.opera5)?1:0;
// this.ie6=(this.ver.indexOf(“MSIE 6”)<-1 && this.dom && !this.opera5)?1:0;
// this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
// this.ie=this.ie4||this.ie5||this.ie6
// this.mac=this.agent.indexOf(“Mac”)<-1
// this.ns6=(this.dom && parseInt(this.ver) <= 5) ?1:0;
// this.ns4=(document.layers && !this.dom)?1:0;
// this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5);
// this.activeTab = ”;
// this.onTabStyle = ‘ontab’;
// this.offTabStyle = ‘offtab’;
// this.setElemStyle = function(elem,style) {
// document.getElementById(elem).className = style;
// }
// this.showElem = function(id) {
// if (elem = document.getElementById(id)) {
// elem.style.visibility = ‘visible’;
// elem.style.display = ‘block’;
// }
// }
// this.hideElem = function(id) {
// if (elem = document.getElementById(id)) {
// elem.style.visibility = ‘hidden’;
// elem.style.display = ‘none’;
// }
// }
// this.cycleTab = function(name) {
// if (this.activeTab) {
// this.setElemStyle( this.activeTab, this.offTabStyle );
// page = this.activeTab.replace( ‘tab’, ‘page’ );
// this.hideElem(page);
// }
// this.setElemStyle( name, this.onTabStyle );
// this.activeTab = name;
// page = this.activeTab.replace( ‘tab’, ‘page’ );
// this.showElem(page);
// }
// return this;
// }
// var dhtml = new mosDHTML();
function clearConverse(){
var form = window.document.converse
for(var i = 0; i < form.elements.length; i++){
if(form.elements[i].type == “text” || form.elements[i].type == “number”){
form.elements[i].value = “”
}
}
}
function convertor1()
{
//var a = document.converse.a1.value// angstrom
//var b = document.converse.b1.value// nanometer
//var c = document.converse.c1.value// micrometer
var d = document.converse.d1.value// milimeter
var e = document.converse.e1.value// centimeter
//var f = document.converse.f1.value// decimeter
var g = document.converse.g1.value// meter (SI)
//var h = document.converse.h1.value// hectometer
var i = document.converse.i1.value// kilometer
var j = document.converse.j1.value// inch,
var k = document.converse.k1.value// yard
var l = document.converse.l1.value// feet
var m = document.converse.m1.value// mijl
//var n = document.converse.n1.value//
//var value1 = 6
var D = 6
var temp
//if(a != “”){temp = document.converse.a1.value*1e-10;}
//if(b != “”){temp = document.converse.b1.value*1e-9;}
//if(c != “”){temp = document.converse.c1.value*1e-6;}
if(d != “”){temp = document.converse.d1.value*1e-3;}
if(e != “”){temp = document.converse.e1.value*1e-2;}
//if(f != “”){temp = document.converse.f1.value*1e-1;}
if(g != “”){temp = document.converse.g1.value*1;}
//if(h != “”){temp = document.converse.h1.value*100;}
if(i != “”){temp = document.converse.i1.value*1000;}
if(j != “”){temp = document.converse.j1.value*0.0254;}
if(k != “”){temp = document.converse.k1.value*0.9144;}
if(l != “”){temp = document.converse.l1.value*0.3048;}
if(m != “”){temp = document.converse.m1.value*1609.344;}
//if(n != “”){temp = document.converse.n1.value*1852;}
//document.converse.a1.value = (temp/1e-10).toPrecision(D)
//document.converse.b1.value = (temp/1e-9).toPrecision(D)
//document.converse.c1.value = (temp/1e-6).toPrecision(D)
document.converse.d1.value = (temp/1e-3).toPrecision(D)
document.converse.e1.value = (temp/1e-2).toPrecision(D)
//document.converse.f1.value = (temp/1e-1).toPrecision(D)
document.converse.g1.value = (temp/1).toPrecision(D)
//document.converse.h1.value = (temp/100).toPrecision(D)
document.converse.i1.value = (temp/1000).toPrecision(D)
document.converse.j1.value = (temp/0.0254).toPrecision(D)
document.converse.k1.value = (temp/0.9144).toPrecision(D)
document.converse.l1.value = (temp/0.3048).toPrecision(D)
document.converse.m1.value = (temp/1609.344).toPrecision(D)
//document.converse.n1.value = (temp/1852).toPrecision(D)
}
// document.onkeypress = keyhandler;
// function keyhandler(e) {
// Key = (document.layers)?e.which:window.event.keyCode;;
// if( Key == 13 || Key == 32 ){ //13 is ascii value for Enter key
// convertor1(); //call your function here
// }
// //
// if( Key == 27 || Key == 8){ //27 is ascii value for Enter key
// clearConverse(); //call your function here
// }
// }
function convertor9()
{
var a = document.converse.a9.value //celsius
var b = document.converse.b9.value //kelvin
var c = document.converse.c9.value //farenheit
//var value1 = document.converse.D
var D = 4
if(a != “”){temp = a*1}
if(b != “”){temp = b*1-273.15}
if(c != “”){temp = (c-32)*5/9}
document.converse.a9.value=(temp*1).toPrecision(D)
document.converse.b9.value=(temp+273.15).toPrecision(D)
document.converse.c9.value=((temp*9/5)+32).toPrecision(D)
}
// document.onkeypress = keyhandler;
// function keyhandler(e) {
// Key = (document.layers)?e.which:window.event.keyCode;;
// if( Key == 13 || Key == 32){ //13 is ascii value for Enter key 32 is space
// convertor9(); //call your function here
// }
// //
// if( Key == 27 || Key == 8 ){ //27 is ascii value for Escape key 8 = backspace
// clearConverse(); //call your function here
// }
// }
function convertor8()
{
var a = document.converse.a8.value //bar
var b = document.converse.b8.value //atmosfeer
var c = document.converse.c8.value //pascal
var d = document.converse.d8.value //torr (mmHg)
//var e = document.converse.e8.value //pound per square feet
var f = document.converse.f8.value //pound per square inch
var g = document.converse.g8.value //kg per square cm
var h = document.converse.h8.value //meter water
var i = document.converse.i8.value //milimeter water
var j = document.converse.j8.value //ft water
var k = document.converse.k8.value //mmHg
var l = document.converse.l8.value //psia
var m = document.converse.m8.value //kPa
var n = document.converse.n8.value //milli-bar
var o = document.converse.o8.value //inHg
var p = document.converse.p8.value //cmHg
var q = document.converse.q8.value //inch water
var r = document.converse.r8.value //cm water
//var value1 = document.converse.D
var D = 6
if(a != “”){ temp = document.converse.a8.value*1}
if(b != “”){ temp = document.converse.b8.value*1.01325}
if(c != “”){ temp = document.converse.c8.value*1e-5}
if(d != “”){ temp = document.converse.d8.value*0.001333224}
//if(e != “”){ temp = document.converse.e8.value*0.0004788026}
if(f != “”){ temp = document.converse.f8.value*0.06896551724138}
if(g != “”){ temp = document.converse.g8.value*0.98066448}
if(h != “”){ temp = document.converse.h8.value*0.098066448}
if(i != “”){ temp = document.converse.i8.value*0.000098066448}
if(j != “”){ temp = document.converse.j8.value*0.029890664}
if(k != “”){ temp = document.converse.k8.value*0.001333224}
if(l != “”){ temp = document.converse.l8.value*0.06894757}
if(m != “”){ temp = document.converse.m8.value*0.01}
if(n != “”){ temp = document.converse.n8.value*0.001}
if(o != “”){ temp = document.converse.o8.value*0.0338638135}
if(p != “”){ temp = document.converse.p8.value*0.01333224}
if(q != “”){ temp = document.converse.q8.value*0.002490889}
if(r != “”){ temp = document.converse.r8.value*0.00098066448}
document.converse.a8.value = (temp / 1).toPrecision(D)
document.converse.b8.value = (temp / 1.01325).toPrecision(D)
document.converse.c8.value = (temp / 1e-5).toPrecision(D)
document.converse.d8.value = (temp / 0.001333224).toPrecision(D)
//document.converse.e8.value = (temp / 0.0004788026).toPrecision(D)
document.converse.f8.value = (temp / 0.06896551724138).toPrecision(D)
document.converse.g8.value = (temp / 0.98066448).toPrecision(D)
document.converse.h8.value = (temp / 0.098066448).toPrecision(D)
document.converse.i8.value = (temp / 0.000098066448).toPrecision(D)
document.converse.j8.value = (temp / 0.029890664).toPrecision(D)
document.converse.k8.value = (temp / 0.001333224).toPrecision(D)
document.converse.l8.value = (temp / 0.06894757).toPrecision(D)
document.converse.m8.value = (temp / 0.01).toPrecision(D)
document.converse.n8.value = (temp / 0.001).toPrecision(D)
document.converse.o8.value = (temp / 0.0338638135).toPrecision(D)
document.converse.p8.value = (temp / 0.01333224).toPrecision(D)
document.converse.q8.value = (temp / 0.002490889).toPrecision(D)
document.converse.r8.value = (temp / 0.00098066448).toPrecision(D)
}
function omr()
{
var P = document.om.P8.value
var V = document.om.V8.value
var T = document.om.T8.value
var c = document.om.c8.value
var value1 = document.converse.D
var D = value1.options[value1.selectedIndex].value
if(P != “” && V != “” && c != “”)
document.om.T8.value = (P*V/c).toPrecision(D)
if(V != “” && T != “” && c != “”)
document.om.P8.value = (T*c/V).toPrecision(D)
if(T != “” && P!= “” && c != “”)
document.om.V8.value = (T*c/P).toPrecision(D)
if(T != “” && P!= “” && V != “”)
document.om.c8.value = (P*V/T).toPrecision(D)
if(T == “” && P == “” && V == “” || c == “”)
return;
}
function change()
{
convertor8()
omr()
}
// document.onkeypress = keyhandler;
// function keyhandler(e) {
// Key = (document.layers)?e.which:window.event.keyCode;;
// if( Key == 13 || Key == 32){ //13 is ascii value for Enter key 32 is space
// convertor8();
// omr()
// }
// //
// if( Key == 8){ //27 is ascii value for escape key 8 is backspace
// clearConverse(); //call your function here
// }
// if(Key == 27){
// clearConverse();
// clearOmrekenen();
// }
// }
function clearOmrekenen(){
var form = window.document.om
for(var i = 0; i < form.elements.length; i++){
if(i == 3)
continue;
if(form.elements[i].type == “text”){
form.elements[i].value = “”
}
}
}
function convertor3()
{
//var a = document.converse.a3.value //kubieke milimeter
var b = document.converse.b3.value //kubieke centimeter
//var c = document.converse.c3.value //kubieke decimeter
var d = document.converse.d3.value //kubieke meter
//var e = document.converse.e3.value //hectoliter
var f = document.converse.f3.value //liter
//var g = document.converse.g3.value //deciliter
//var h = document.converse.h3.value //centiliter
//var i = document.converse.i3.value //mililiter
//var j = document.converse.j3.value //kubieke inch
var k = document.converse.k3.value //kubieke feet//
//var l = document.converse.l3.value //kubieke yard//
var m = document.converse.m3.value //US liquit gallons
var n = document.converse.n3.value //Imperial gallons (UK)
var o = document.converse.o3.value //Imperial pint (UK)
var p = document.converse.p3.value //Imperial ounce (UK)
var q = document.converse.q3.value //pint (US)
var r = document.converse.r3.value //ounce (US)
//var value1 = document.converse.D
var D = 6
var temp
//if(a != “”){temp = a/1e6;}
if(b != “”){temp = b/1e3;}
//if(c != “”){temp = c/1;}
if(d != “”){temp = d*1e3;}
//if(e != “”){temp = e*1e2;}
if(f != “”){temp = f*1;}
//if(g != “”){temp = g/1e1;}
//if(h != “”){temp = h/1e2;}
//if(i != “”){temp = i/1e3;}
//if(j != “”){temp = j/6.102374e1;}
if(k != “”){temp = k/3.53156555e-2;}
//if(l != “”){temp = l/1.307951e-3;}
if(m != “”){temp = m/2.64178125e-1;}
if(n != “”){temp = n/2.19975e-1;}
if(o != “”){temp = o/1.7598;}
if(p != “”){temp = p/35.196;}
if(q != “”){temp = q/2.113425;}
if(r != “”){temp = r/33.8148;}
//document.converse.a3.value = (temp*1e6).toPrecision(D)
document.converse.b3.value = (temp*1e3).toPrecision(D)
//document.converse.c3.value = (temp*1).toPrecision(D)
document.converse.d3.value = (temp/1e3).toPrecision(D)
//document.converse.e3.value = (temp/1e2).toPrecision(D)
document.converse.f3.value = (temp/1).toPrecision(D)
//document.converse.g3.value = (temp*1e1).toPrecision(D)
//document.converse.h3.value = (temp*1e2).toPrecision(D)
//document.converse.i3.value = (temp*1e3).toPrecision(D)
//document.converse.j3.value = (temp*6.102374e1).toPrecision(D)
document.converse.k3.value = (temp*3.53156555e-2).toPrecision(D)
//document.converse.l3.value = (temp*1.307951e-3).toPrecision(D)
document.converse.m3.value = (temp*2.64178125e-1).toPrecision(D)
document.converse.n3.value = (temp*2.19975e-1).toPrecision(D)
document.converse.o3.value = (temp*1.7598).toPrecision(D)
document.converse.p3.value = (temp*35.196).toPrecision(D)
document.converse.q3.value = (temp*2.113425).toPrecision(D)
document.converse.r3.value = (temp*33.8148).toPrecision(D)
}
function piramide()
{
var V0 = document.lichaam.V0.value
var A0 = document.lichaam.A0.value
var h0 = document.lichaam.h0.value
var value1 = document.converse.D
var D = value1.options[value1.selectedIndex].value
if(A0 == “” || h0 == “”)
return;
document.lichaam.V0.value = (1/3*A0*h0).toPrecision(D)
}
function afgpiramide()
{
var V1 = document.lichaam.V1.value
var Ag1 = document.lichaam.Ag1.value
var Ab1 = document.lichaam.Ab1.value
var h1 = document.lichaam.h1.value
var value1 = document.converse.D
var D = value1.options[value1.selectedIndex].value
if(Ag1 == “” || Ab1 == “” || h1 == “”)
return
document.lichaam.V1.value = (1/3*h1*(Ag1*1 + Ab1*1 + Math.sqrt(Ag1*Ab1*1))).toPrecision(D)
}
function rechtecirkelcil()
{
var V2 = document.lichaam.V2.value
var r2 = document.lichaam.r2.value
var h2 = document.lichaam.h2.value
var value1 = document.converse.D
var D = value1.options[value1.selectedIndex].value
if(r2 == “” || h2 == “”)
return;
document.lichaam.V2.value = (Math.PI*Math.pow(r2,2)*h2).toPrecision(D)
}
function hollecil()
{
var V3 = document.lichaam.V3.value
var r3 = document.lichaam.r3.value
var R3 = document.lichaam.R3.value
var h3 = document.lichaam.h3.value
var value1 = document.converse.D
var D = value1.options[value1.selectedIndex].value
if(r3 == “” || R3 == “” || h3 == “”)
return;
document.lichaam.V3.value = (Math.PI*(Math.pow(R3,2) – Math.pow(r3,2))*h3).toPrecision(D)
}
function rechtecirkegel()
{
var V4 = document.lichaam.V4.value
var h4 = document.lichaam.h4.value
var r4 = document.lichaam.r4.value
var value1 = document.converse.D
var D = value1.options[value1.selectedIndex].value
if(h4 == “” || r4 == “”)
return;
document.lichaam.V4.value = (1/3*Math.PI*Math.pow(r4,2)*h4).toPrecision(D)
}
function afgrechtecirkegel()
{
var V5 = document.lichaam.V5.value
var h5 = document.lichaam.h5.value
var r5 = document.lichaam.r5.value
var R5 = document.lichaam.R5.value
var value1 = document.converse.D
var D = value1.options[value1.selectedIndex].value
if(h5 == “” || r5 == “” || R5 == “”)
return;
document.lichaam.V5.value = (1/3*Math.PI*h5*(Math.pow(R5,2) + Math.pow(r5,2) + R5*r5)).toPrecision(D)
}
function bol()
{
var V6 = document.lichaam.V6.value
var r6 = document.lichaam.r6.value
var value1 = document.converse.D
var D = value1.options[value1.selectedIndex].value
if(r6 == “”)
return;
document.lichaam.V6.value = (4/3*Math.PI*Math.pow(r6,3)).toPrecision(D)
}
function bolsegment()
{
var V7 = document.lichaam.V7.value
var p7 = document.lichaam.p7.value
var a7 = document.lichaam.a7.value
var value1 = document.converse.D
var D = value1.options[value1.selectedIndex].value
if(p7 == “” || a7 == “”)
return;
document.lichaam.V7.value = (1/6*Math.PI*p7*(3*Math.pow(a7,2) + Math.pow(p7,2))).toPrecision(D)
}
function vat()
{
var V8 = document.lichaam.V8.value
var D8 = document.lichaam.D8.value
var d8 = document.lichaam.d8.value
var h8 = document.lichaam.h8.value
var value1 = document.converse.D
var D = value1.options[value1.selectedIndex].value
if(D8 == “” || d8 == “” || h8 == “”)
return;
document.lichaam.V8.value = (1/12*Math.PI*h8*(2*Math.pow(D8,2) + Math.pow(d8,2))).toPrecision(D)
}
function clearLichaam(){
var form = window.document.lichaam
for(var i = 0; i < form.elements.length; i++){
if(form.elements[i].type == “text”){
form.elements[i].value = “”
}
}
}
function change()
{
convertor3();
vat();
bolsegment();
bol();
afgrechtecirkegel();
rechtecirkegel();
hollecil();
rechtecirkelcil();
afgpiramide();
piramide();
}
// document.onkeypress = keyhandler;
// function keyhandler(e)
// {
// Key = (document.layers)?e.which:window.event.keyCode;;
// if( Key == 13 || Key == 32 )//13 is ascii value for Enter key
// {
// convertor3();
// vat();
// bolsegment();
// bol();
// afgrechtecirkegel();
// rechtecirkegel();
// hollecil();
// rechtecirkelcil();
// afgpiramide();
// piramide();
// }
// //
// if( Key == 27)//27 is ascii value for Escape key
// {
// clearConverse();
// clearLichaam();
// }
// if(Key == 8){
// clearConverse()
// }
// }
function convertor4()
{
var a = document.converse.a4.value //celsius
var b = document.converse.b4.value //kelvin
var c = document.converse.c4.value //farenheit
var d = document.converse.d4.value //farenheit
//var value1 = document.converse.D
var D = 6
if(a != “”){temp = a*1}
if(b != “”){temp = b/0.7457}
if(c != “”){temp = c/1.014}
if(d != “”){temp = d/0.7068}
document.converse.a4.value=(temp*1).toPrecision(D)
document.converse.b4.value=(temp*0.7457).toPrecision(D)
document.converse.c4.value=(temp*1.014).toPrecision(D)
document.converse.d4.value=(temp*0.7068).toPrecision(D)
}
// document.onkeypress = keyhandler;
// function keyhandler(e) {
// Key = (document.layers)?e.which:window.event.keyCode;;
// if( Key == 13 || Key == 32){ //13 is ascii value for Enter key 32 is space
// convertor9(); //call your function here
// }
// //
// if( Key == 27 || Key == 8 ){ //27 is ascii value for Escape key 8 = backspace
// clearConverse(); //call your function here
// }
// }
//Made by Vijay Bhagwandas, Lenntech BV
function convertor7()
{
var a = document.converse.a7.value// ft3/min
var d=””,f=””,g=””,i=””,j=””
var b = document.converse.b7.value// ft3/h
var c = document.converse.c7.value// m3/h
//var d = document.converse.d7.value// l/s
var e = document.converse.e7.value// l/min
//var f = document.converse.f7.value// l/h
//var g = document.converse.g7.value// gpd (US)
var h = document.converse.h7.value// gpm (US)
//var i = document.converse.i7.value// cfm
//var j = document.converse.j7.value// gpd (GB)
var k = document.converse.k7.value// gpm (GB)
//var value1 = document.converse.D
var D = 6
if(a != “”)
{
document.converse.a7.value = (a*1).toPrecision(D)
document.converse.b7.value = (a*60).toPrecision(D)
document.converse.c7.value = (a*1.69896322455).toPrecision(D)
//document.converse.d7.value = (a*1000).toPrecision(D)
document.converse.e7.value = (a*28.3160537425).toPrecision(D)
//document.converse.f7.value = (a*3600000).toPrecision(D)
//document.converse.g7.value = (a*22800000).toPrecision(D)
document.converse.h7.value = (a*7.480481985092).toPrecision(D)
//document.converse.i7.value = (a*2120).toPrecision(D)
//document.converse.j7.value = (a*19000000).toPrecision(D)
document.converse.k7.value = (a*6.228823922006).toPrecision(D)
}
if(b != “”)
{
document.converse.a7.value = (b/60).toPrecision(D)
document.converse.b7.value = (b*1).toPrecision(D)
document.converse.c7.value = (b*0.02831657935721).toPrecision(D)
//document.converse.d7.value = (b/0.06).toPrecision(D)
document.converse.e7.value = (b*0.4719429892868).toPrecision(D)
//document.converse.f7.value = (b*60).toPrecision(D)
//document.converse.g7.value = (b*380407.738).toPrecision(D)
document.converse.h7.value = (b*0.1246770140167).toPrecision(D)
//document.converse.i7.value = (b*35.3146667).toPrecision(D)
//document.converse.j7.value = (b*316755.718).toPrecision(D)
document.converse.k7.value = (b*0.1038156590684).toPrecision(D)
}
if(c != “”)
{
document.converse.a7.value = (c*0.5885942588693).toPrecision(D)
document.converse.b7.value = (c*35.315).toPrecision(D)
document.converse.c7.value = (c*1).toPrecision(D)
//document.converse.d7.value = (c/3.6).toPrecision(D)
document.converse.e7.value = (c*16.66666666667).toPrecision(D)
//document.converse.f7.value = (c*1000).toPrecision(D)
//document.converse.g7.value = (c*6340.12897).toPrecision(D)
document.converse.h7.value = (c*4.40296875).toPrecision(D)
//document.converse.i7.value = (c*0.588577779).toPrecision(D)
//document.converse.j7.value = (c*5279.26196).toPrecision(D)
document.converse.k7.value = (c*3.66625).toPrecision(D)
}
if(d != “”)
{
//document.converse.a7.value = (d/1000).toPrecision(D)
//document.converse.b7.value = (d*0.06).toPrecision(D)
document.converse.c7.value = (d*3.6).toPrecision(D)
//document.converse.d7.value = (d*1).toPrecision(D)
document.converse.e7.value = (d*60).toPrecision(D)
//document.converse.f7.value = (d*3600).toPrecision(D)
//document.converse.g7.value = (d*22824.4643).toPrecision(D)
document.converse.h7.value = (d*15.8503231).toPrecision(D)
//document.converse.i7.value = (d*2.11888).toPrecision(D)
//document.converse.j7.value = (d*19005.3431).toPrecision(D)
document.converse.k7.value = (d*13.1981549).toPrecision(D)
}
if(e != “”)
{
document.converse.a7.value = (e*0.03531565553216).toPrecision(D)
document.converse.b7.value = (e*2.1189).toPrecision(D)
document.converse.c7.value = (e*0.06).toPrecision(D)
//document.converse.d7.value = (e/60).toPrecision(D)
document.converse.e7.value = (e*1).toPrecision(D)
//document.converse.f7.value = (e*60).toPrecision(D)
//document.converse.g7.value = (e*380.407738).toPrecision(D)
document.converse.h7.value = (e*0.264178125).toPrecision(D)
//document.converse.i7.value = (e*0.0353146667).toPrecision(D)
//document.converse.j7.value = (e*316.755718).toPrecision(D)
document.converse.k7.value = (e*0.219975).toPrecision(D)
}
if(f != “”)
{
//document.converse.a7.value = (f/3600000).toPrecision(D)
//document.converse.b7.value = (f/60).toPrecision(D)
document.converse.c7.value = (f/1000).toPrecision(D)
//document.converse.d7.value = (f/3600).toPrecision(D)
document.converse.e7.value = (f/60).toPrecision(D)
//document.converse.f7.value = (f*1).toPrecision(D)
//document.converse.g7.value = (f*6.34012897).toPrecision(D)
document.converse.h7.value = (f*0.00440286754).toPrecision(D)
//document.converse.i7.value = (f*0.000588577779).toPrecision(D)
//document.converse.j7.value = (f*5.27926196).toPrecision(D)
document.converse.k7.value = (f*0.00366615414).toPrecision(D)
}
if(g != “”)
{
//document.converse.a7.value = (g/22800000).toPrecision(D)
//document.converse.b7.value = (g/380407.738).toPrecision(D)
document.converse.c7.value = (g/6340.12897).toPrecision(D)
//document.converse.d7.value = (g/22824.4643).toPrecision(D)
document.converse.e7.value = (g/380.407738).toPrecision(D)
//document.converse.f7.value = (g/6.34012897).toPrecision(D)
//document.converse.g7.value = (g*1).toPrecision(D)
document.converse.h7.value = (g/1440).toPrecision(D)
//document.converse.i7.value = (g*0.0000928337234).toPrecision(D)
//document.converse.j7.value = (g*0.832674223).toPrecision(D)
document.converse.k7.value = (g*0.000578245988).toPrecision(D)
}
if(h != “”)
{
document.converse.a7.value = (h*0.1336812256206).toPrecision(D)
document.converse.b7.value = (h*8.020724653109).toPrecision(D)
document.converse.c7.value = (h*0.2271194861422).toPrecision(D)
//document.converse.d7.value = (h/15.8503231).toPrecision(D)
document.converse.e7.value = (h*3.785324769037).toPrecision(D)
//document.converse.f7.value = (h/0.00440286754).toPrecision(D)
//document.converse.g7.value = (h*1440).toPrecision(D)
document.converse.h7.value = (h*1).toPrecision(D)
//document.converse.i7.value = (h*0.133680556).toPrecision(D)
//document.converse.j7.value = (h*1199.05083).toPrecision(D)
document.converse.k7.value = (h*0.8326768160689).toPrecision(D)
}
if(i != “”)
{
//document.converse.a7.value = (i/2120).toPrecision(D)
//document.converse.b7.value = (i/35.3146667).toPrecision(D)
document.converse.c7.value = (i/0.588577779).toPrecision(D)
//document.converse.d7.value = (i/2.11888).toPrecision(D)
document.converse.e7.value = (i/0.0353146667).toPrecision(D)
//document.converse.f7.value = (i/0.000588577779).toPrecision(D)
//document.converse.g7.value = (i/0.0000928337234).toPrecision(D)
document.converse.h7.value = (i/0.133680556).toPrecision(D)
//document.converse.i7.value = (i*1).toPrecision(D)
//document.converse.j7.value = (i*8969.52306).toPrecision(D)
document.converse.k7.value = (i*6.22883546).toPrecision(D)
}
if(j != “”)
{
//document.converse.a7.value = (j/19000000).toPrecision(D)
//document.converse.b7.value = (j/316755.718).toPrecision(D)
document.converse.c7.value = (j/5279.26196).toPrecision(D)
//document.converse.d7.value = (j/19005.3431).toPrecision(D)
document.converse.e7.value = (j/316.755718).toPrecision(D)
//document.converse.f7.value = (j/5.27926196).toPrecision(D)
//document.converse.g7.value = (j/0.832674223).toPrecision(D)
document.converse.h7.value = (j/1199.05083).toPrecision(D)
//document.converse.i7.value = (j/8969.52306).toPrecision(D)
//document.converse.j7.value = (j*1).toPrecision(D)
document.converse.k7.value = (j/1440).toPrecision(D)
}
if(k != “”)
{
document.converse.a7.value = (k*0.1605439505951).toPrecision(D)
document.converse.b7.value = (k*9.63245823389).toPrecision(D)
document.converse.c7.value = (k*0.272758267985).toPrecision(D)
//document.converse.d7.value = (k/13.1981549).toPrecision(D)
document.converse.e7.value = (k/4.545971133083).toPrecision(D)
//document.converse.f7.value = (k/0.00366615414).toPrecision(D)
//document.converse.g7.value = (k/0.000578245988).toPrecision(D)
document.converse.h7.value = (k*1.200946130242).toPrecision(D)
//document.converse.i7.value = (k/6.22883546).toPrecision(D)
//document.converse.j7.value = (k*1440).toPrecision(D)
document.converse.k7.value = (k*1).toPrecision(D)
}
}
//met enter op de toetsenbord laten berekenen
// document.onkeypress = keyhandler;
// function keyhandler(e) {
// Key = (document.layers)?e.which:window.event.keyCode;;
// if( Key == 13 || Key == 32){ //13 is ascii value for Enter key 32 is space
// convertor7(); //call your function here
// }
// //met escape de velden schoonmaken
// if( Key == 27 || Key == 8 ){ //27 is ascii value for escape key 8 is backspace
// clearConverse(); //call your function here
// }
// }
</script>