Post by mralgae on Apr 23, 2008 22:11:13 GMT -5
<p align="center"><table border="4" bordercolor="ff0000" width="150" cellpadding="1" cellspacing="1" bgcolor="000000">
<tr>
<td><center><b>CALCULATOR</b></center></td></tr>
</table>
<center><table border="0" cellpadding="2" cellspacing="1" width="200px" class="bordercolor">
<tr>
<td class="windowbg" align="center"><input maxlength="8" id="tot" value="0" name="convert" size="8" type="text"/></td>
<td class="windowbg" align="center"><input maxlength="8" id="ans" name="converted" size="8" type="text"/></td>
</tr>
<tr><td id="cent" width="50%" style="cursor: pointer;" class="windowbg2" align="center">°F to °C</td><td id="far" style="cursor: pointer;" class="windowbg2" align="center">°C to °F</td></tr>
<tr><td id="cm" width="50%" style="cursor: pointer;" class="windowbg2" align="center">inch to cm</td><td id="inch" style="cursor: pointer;" class="windowbg2" align="center">cm to inch</td></tr>
<tr><td id="ltr" width="50%" style="cursor: pointer;" class="windowbg2" align="center">gallon to litre</td><td id="gal" style="cursor: pointer;" class="windowbg2" align="center">litre to gallon</td></tr>
</table></center>
<script type="text/javascript">
<!--
document.getElementById('cent').onclick = function(){ans.value = Math.round((tot.value-32)*5/9*100)/100;}
document.getElementById('far').onclick = function(){ans.value = Math.round((tot.value*9/5+32)*100)/100;}
document.getElementById('cm').onclick = function(){ans.value = Math.round((tot.value*2.54)*100)/100;}
document.getElementById('inch').onclick = function(){ans.value = Math.round((tot.value*0.393700787)*100)/100;}
document.getElementById('ltr').onclick = function(){ans.value = Math.round((tot.value*3.7854118)*100)/100;}
document.getElementById('gal').onclick = function(){ans.value = Math.round((tot.value*0.264172051)*100)/100;}
// -->
</script></p>
<br/><br/>
<p align="center"><table border="4" bordercolor="ff0000" width="150" cellpadding="1" cellspacing="1" bgcolor="000000">
<tr>
<td><center><b>c02 CALCULATOR</b></center></td></tr>
</table>
<script>
<!---
function round( Thevalue, Places ) {
return (Math.round( Thevalue * Math.pow(10,Places) ) / Math.pow(10,Places));
}
function calculate_co2() {
var pHcalcresult = 0;
var powerresult = 0;
var TempResult = 0;
with ( document.inputform ) {
TempResult = ( 3 * KH1degrees.value * Math.pow(10, (7 - pH1.value)) );
co2_out.value = round(TempResult,3);
}
return false;
}
function convert_degreestoppm( theinput ) {
var theoutput = 0;
theoutput = Math.round( theinput.value / 0.056 );
document.inputform.KH1ppm.value = theoutput;
calculate_co2();
return true;
}
function convert_ppmtodegrees( theinput ) {
var theoutput = 0;
theoutput = Math.round( (theinput.value * 0.056) * 10 ) / 10;
document.inputform.KH1degrees.value = theoutput;
calculate_co2();
return true;
}
// -->
</script>
<form action="" name="inputform">
<table>
<tr><td>pH</td><td><input onchange="calculate_co2()" name="pH1" size="10" type="text"/></td></tr>
<tr><td>KH</td><td><input onchange="convert_degreestoppm(this)" name="KH1degrees" size="10" type="text"/> degrees</td><td><input onchange="convert_ppmtodegrees(this)" name="KH1ppm" size="10" type="text"/> ppm</td></tr>
<tr><td>CO2 </td><td><input name="co2_out" size="7" type="text"/>ppm.</td></tr>
</table>
</form></p>
<br/><br/>
<p align="center"><table border="4" bordercolor="ff0000" width="150" cellpadding="1" cellspacing="1" bgcolor="000000">
<tr>
<td><center><b>gH CALCULATOR</b></center></td></tr>
</table>
Click anywhere out of the field for calculation.
<form>
PPM <input onchange="DGH.value = (17.86) * (this.value)" onfocus="clear_field(this)" value="1" name="P"/> DGH <input onchange="P.value = (.056) * (this.value)" onfocus="clear_field(this)"
name="DGH" value="17.86"/>
</form>
<!--v comp-->
<!-- /* /* /* ***** End Visual Snippet Component ***** /* /* /* /* //--></p>
<br/>
<p align="center"><table border="4" bordercolor="ff0000" width="150" cellpadding="1" cellspacing="1" bgcolor="000000">
<tr>
<td><center><b>VOLUME CALCULATOR</b></center></td></tr>
</table>
<center>
<script language="JavaScript">
function add (form)
{form.V.value = (form.l.value * form.w.value * form.h.value)/231,form.u.value = form.V.value * 2,form.d.value = form.V.value * 3,form.e.value = form.V.value * 4,form.f.value = ((form.l.value -1) * (form.w.value-1) * (form.h.value-1))/231,form.g.value = form.V.value * 5,form.j.value = form.V.value * 4,form.m.value = form.V.value * 7}
</script>
<br/>
<form>
<p><font face="Arial" color="#cccccc" size="3"> Length inch = <input name="l" size="6" type="text"/> in.<br/>
Width inch = <input name="w" size="6" type="text"/> in.<br/>
Height inch = <input name="h" size="6" type="text"/> in.<br/><br/>
<input value=" Submit " onclick="add(this.form)" type="button"/><br/><br/>
Volume <input name="V" size="8" type="text"/> gals
</font></p></form>
</center>
</p>
<tr>
<td><center><b>CALCULATOR</b></center></td></tr>
</table>
<center><table border="0" cellpadding="2" cellspacing="1" width="200px" class="bordercolor">
<tr>
<td class="windowbg" align="center"><input maxlength="8" id="tot" value="0" name="convert" size="8" type="text"/></td>
<td class="windowbg" align="center"><input maxlength="8" id="ans" name="converted" size="8" type="text"/></td>
</tr>
<tr><td id="cent" width="50%" style="cursor: pointer;" class="windowbg2" align="center">°F to °C</td><td id="far" style="cursor: pointer;" class="windowbg2" align="center">°C to °F</td></tr>
<tr><td id="cm" width="50%" style="cursor: pointer;" class="windowbg2" align="center">inch to cm</td><td id="inch" style="cursor: pointer;" class="windowbg2" align="center">cm to inch</td></tr>
<tr><td id="ltr" width="50%" style="cursor: pointer;" class="windowbg2" align="center">gallon to litre</td><td id="gal" style="cursor: pointer;" class="windowbg2" align="center">litre to gallon</td></tr>
</table></center>
<script type="text/javascript">
<!--
document.getElementById('cent').onclick = function(){ans.value = Math.round((tot.value-32)*5/9*100)/100;}
document.getElementById('far').onclick = function(){ans.value = Math.round((tot.value*9/5+32)*100)/100;}
document.getElementById('cm').onclick = function(){ans.value = Math.round((tot.value*2.54)*100)/100;}
document.getElementById('inch').onclick = function(){ans.value = Math.round((tot.value*0.393700787)*100)/100;}
document.getElementById('ltr').onclick = function(){ans.value = Math.round((tot.value*3.7854118)*100)/100;}
document.getElementById('gal').onclick = function(){ans.value = Math.round((tot.value*0.264172051)*100)/100;}
// -->
</script></p>
<br/><br/>
<p align="center"><table border="4" bordercolor="ff0000" width="150" cellpadding="1" cellspacing="1" bgcolor="000000">
<tr>
<td><center><b>c02 CALCULATOR</b></center></td></tr>
</table>
<script>
<!---
function round( Thevalue, Places ) {
return (Math.round( Thevalue * Math.pow(10,Places) ) / Math.pow(10,Places));
}
function calculate_co2() {
var pHcalcresult = 0;
var powerresult = 0;
var TempResult = 0;
with ( document.inputform ) {
TempResult = ( 3 * KH1degrees.value * Math.pow(10, (7 - pH1.value)) );
co2_out.value = round(TempResult,3);
}
return false;
}
function convert_degreestoppm( theinput ) {
var theoutput = 0;
theoutput = Math.round( theinput.value / 0.056 );
document.inputform.KH1ppm.value = theoutput;
calculate_co2();
return true;
}
function convert_ppmtodegrees( theinput ) {
var theoutput = 0;
theoutput = Math.round( (theinput.value * 0.056) * 10 ) / 10;
document.inputform.KH1degrees.value = theoutput;
calculate_co2();
return true;
}
// -->
</script>
<form action="" name="inputform">
<table>
<tr><td>pH</td><td><input onchange="calculate_co2()" name="pH1" size="10" type="text"/></td></tr>
<tr><td>KH</td><td><input onchange="convert_degreestoppm(this)" name="KH1degrees" size="10" type="text"/> degrees</td><td><input onchange="convert_ppmtodegrees(this)" name="KH1ppm" size="10" type="text"/> ppm</td></tr>
<tr><td>CO2 </td><td><input name="co2_out" size="7" type="text"/>ppm.</td></tr>
</table>
</form></p>
<br/><br/>
<p align="center"><table border="4" bordercolor="ff0000" width="150" cellpadding="1" cellspacing="1" bgcolor="000000">
<tr>
<td><center><b>gH CALCULATOR</b></center></td></tr>
</table>
Click anywhere out of the field for calculation.
<form>
PPM <input onchange="DGH.value = (17.86) * (this.value)" onfocus="clear_field(this)" value="1" name="P"/> DGH <input onchange="P.value = (.056) * (this.value)" onfocus="clear_field(this)"
name="DGH" value="17.86"/>
</form>
<!--v comp-->
<!-- /* /* /* ***** End Visual Snippet Component ***** /* /* /* /* //--></p>
<br/>
<p align="center"><table border="4" bordercolor="ff0000" width="150" cellpadding="1" cellspacing="1" bgcolor="000000">
<tr>
<td><center><b>VOLUME CALCULATOR</b></center></td></tr>
</table>
<center>
<script language="JavaScript">
function add (form)
{form.V.value = (form.l.value * form.w.value * form.h.value)/231,form.u.value = form.V.value * 2,form.d.value = form.V.value * 3,form.e.value = form.V.value * 4,form.f.value = ((form.l.value -1) * (form.w.value-1) * (form.h.value-1))/231,form.g.value = form.V.value * 5,form.j.value = form.V.value * 4,form.m.value = form.V.value * 7}
</script>
<br/>
<form>
<p><font face="Arial" color="#cccccc" size="3"> Length inch = <input name="l" size="6" type="text"/> in.<br/>
Width inch = <input name="w" size="6" type="text"/> in.<br/>
Height inch = <input name="h" size="6" type="text"/> in.<br/><br/>
<input value=" Submit " onclick="add(this.form)" type="button"/><br/><br/>
Volume <input name="V" size="8" type="text"/> gals
</font></p></form>
</center>
</p>