t<script language="javascript" type="text/javascript"> function VOL_MEASURES() { this.mCubic_meter = 1000 this.mHectoliter = 100 this.mDekaliter = 10 this.mLiter = 1 this.mDeciliter = 0.1 this.mCentiliter = 0.01 this.mMilliliter = 0.001 this.mCubic_millimeter = 0.000001 this.mcTable_spoon= 0.015 this.mcTea_spoon= 0.005 this.uscCubic_inch = 0.016387064 this.uscAcre_foot = 43560 * 1728 * this.uscCubic_inch this.uscCubic_yard = 27 * 1728 * this.uscCubic_inch this.uscCubic_foot = 1728 * this.uscCubic_inch this.uslGallon = 231 * this.uscCubic_inch this.uslBarrel = 42 * this.uslGallon this.uslQuart = this.uslGallon / 4 this.uslPint = this.uslGallon / 8 this.uslGill = this.uslGallon / 32 this.uslFluid_ounce = this.uslGallon / 128 this.uslFluid_dram = this.uslGallon / 1024 this.uslMinim = this.uslFluid_ounce / 61440 this.usdBarrel = 7056 * this.uscCubic_inch this.usdBushel = 2150.42 * this.uscCubic_inch this.usdPeck = this.usdBushel / 4 this.usdQuart = this.usdBushel / 32 this.usdPint = this.usdBushel / 64 this.uscCup = 8 * this.uslFluid_ounce this.uscTable_spoon = this.uslFluid_ounce / 2 this.uscTea_spoon = this.uslFluid_ounce / 6 this.briGallon = 4.54609 this.briBarrel = 36 * this.briGallon this.briBushel = 8 * this.briGallon this.briPint = this.briGallon / 8 this.briFluid_ounce = this.briGallon / 160 } var vol_data = new VOL_MEASURES(); function checkNum(str) { for (var i=0; i<str.length; i++) { var ch = str.substring(i, i + 1) if (ch!="." && ch!="+" && ch!="-" && ch!="e" && ch!="E" && (ch < "0" || ch > "9")) { alert("÷???eQ gHe?vpeW["); return false; } } return true } function normalize(what,digits) { var str=""+what; var pp=Math.max(str.lastIndexOf("+"),str.lastIndexOf("-")); var idot=str.indexOf("."); if (idot>=1) { var ee=(pp>0)?str.substring(pp-1,str.length):""; digits+=idot; if (digits>=str.length) return str; if (pp>0 && digits>=pp) digits-=pp; var c=eval(str.charAt(digits)); var ipos=digits-1; if (c>=5) { while (str.charAt(ipos)=="9") ipos--; if (str.charAt(ipos)==".") { var nc=eval(str.substring(0,idot))+1; if (nc==10 && ee.length>0) { nc=1; ee="e"+(eval(ee.substring(1,ee.length))+1); } return ""+nc+ee; } return str.substring(0,ipos)+(eval(str.charAt(ipos))+1)+ee; } else var ret=str.substring(0,digits)+ee; for (var i=0; i<ret.length; i++) if (ret.charAt(i)>"0" && ret.charAt(i)<="9") return ret; return str; } return str; } function compute(obj,val,data) { if (obj[val].value) { var uval=0; uval = obj[val].value*data[val]; if( (uval >= 0) && (obj[val].value.indexOf("-") != -1) ) { uval = -uval; // *** Hack for Opera 4.0 2000-10-14 } for (var i in data) obj[i].value=normalize(uval/data[i],8); } } function resetValues(form,data) { for (var i in data) form[i].value=""; } function resetAll(form) { resetValues(form,vol_data); } </script> <table width="650" borderColorDark="#ffffff" borderColorLight="#008000" border="1" cellpadding="3" cellspacing="0" align="center"> <form action=""> <tr height=10><td colspan=4 bgcolor="#CCE6CD" align="center">SO?y?T1[??????USMObc?{hV &nbsp; <a href="javascript:window.external.addfavorite('http://www.famens.com', 'SO?y?T1[??????USMObc?{hV')">?!0?ReQ6e??9Y0</a></td></tr> <tr> <td align=center colspan="4"><b>0lQ&nbsp;&nbsp;&nbsp;6R0</b></td> </tr> <tr> <td align=right nowrap>?z1es|<font style="font-size=9px;">(m<sup>3</sup>)</font></td> <td align=left><input name=mCubic_meter size="12"> <input onClick="if (checkNum(mCubic_meter.value)) compute(this.form,mCubic_meter.name,vol_data)" type=button value="bc?{" name=mCubic_meter_bt></td> <td align=right nowrap>lQów<font style="font-size=9px;">(hl)</font></td> <td align=left><input name=mHectoliter size="12"> <input onClick="if (checkNum(mHectoliter.value)) compute(this.form,mHectoliter.name,vol_data)" type=button value="bc?{" name=mHectoliter_bt></td> </tr> <tr> <td align=right nowrap>ASGS<font style="font-size=9px;">(dal)</font></td> <td align=left><input name=mDekaliter size="12"> <input onClick="if (checkNum(mDekaliter.value)) compute(this.form,mDekaliter.name,vol_data)" type=button value="bc?{" name=mDekaliter_bt></td> <td align=right nowrap>?z1eRs|<br /><font style="font-size=9px;">(dm<sup>3</sup>)</font>=GS<font style="font-size=9px;">(l)</font></td> <td align=left><input name=mLiter size="12"> <input onClick="if (checkNum(mLiter.value)) compute(this.form,mLiter.name,vol_data)" type=button value="bc?{" name=mLiter_bt></td> </tr> <tr> <td align=right nowrap>RGS<font style="font-size=9px;">(dl)</font></td> <td align=left><input name=mDeciliter size="12"> <input onClick="if (checkNum(mDeciliter.value)) compute(this.form,mDeciliter.name,vol_data)" type=button value="bc?{" name=mDeciliter_bt></td> <td align=right nowrap>?SGS<font style="font-size=9px;">(cl)</font></td> <td align=left><input name=mCentiliter size="12"> <input onClick="if (checkNum(mCentiliter.value)) compute(this.form,mCentiliter.name,vol_data)" type=button value="bc?{" name=mCentiliter_bt></td> </tr> <tr> <td align=right nowrap>?z1e?Ss|<br /><font style="font-size=9px;">(cm<sup>3</sup>)</font>=?kGS<font style="font-size=9px;">(ml)</font></td> <td align=left><input name=mMilliliter size="12"> <input onClick="if (checkNum(mMilliliter.value)) compute(this.form,mMilliliter.name,vol_data)" type=button value="bc?{" name=mMilliliter_bt></td> <td align=right nowrap>?z1e?ks|<br /><font style="font-size=9px;">(mm<sup>3</sup>)</font></td> <td align=left><input name=mCubic_millimeter size="12"> <input onClick="if (checkNum(mCubic_millimeter.value)) compute(this.form,mCubic_millimeter.name,vol_data)" type=button value="bc?{" name=mCubic_millimeter_bt></td> </tr> <tr> <td align=center colspan="4"><b>0?6Rr^??0</b></td> </tr> <tr> <td align=right nowrap>vh</td> <td align=left><input name=usdBarrel size="12"> <input onClick="if (checkNum(usdBarrel.value)) compute(this.form,usdBarrel.name,vol_data)" type=button value="bc?{" name=usdBarrel_bt></td> <td align=right nowrap>2?_3?<font style="font-size=9px;">(bu)</font></td> <td align=left><input name=usdBushel size="12"> <input onClick="if (checkNum(usdBushel.value)) compute(this.form,usdBushel.name,vol_data)" type=button value="bc?{" name=usdBushel_bt></td> </tr> <tr> <td align=right nowrap>M?KQ<font style="font-size=9px;">(pk)</font></td> <td align=left><input name=usdPeck size="12"> <input onClick="if (checkNum(usdPeck.value)) compute(this.form,usdPeck.name,vol_data)" type=button value="bc?{" name=usdPeck_bt></td> <td align=right nowrap>8Y1?<font style="font-size=9px;">(qt)</font></td> <td align=left><input name=usdQuart size="12"> <input onClick="if (checkNum(usdQuart.value)) compute(this.form,usdQuart.name,vol_data)" type=button value="bc?{" name=usdQuart_bt></td> </tr> <tr> <td align=right nowrap>áT1?<font style="font-size=9px;">(pt)</font></td> <td align=left><input name=usdPint size="12"> <input onClick="if (checkNum(usdPint.value)) compute(this.form,usdPint.name,vol_data)" type=button value="bc?{" name=usdPint_bt></td> <td colspan=3></td> </tr> <tr> <td align=center colspan="4"><b>0??6R2m???Tr^??0</b></td> </tr> <tr> <td align=right nowrap>vh</td> <td align=left><input name=briBarrel size="12"> <input onClick="if (checkNum(briBarrel.value)) compute(this.form,briBarrel.name,vol_data)" type=button value="bc?{" name=briBarrel_bt></td> <td align=right nowrap>2?_3?</td> <td align=left><input name=briBushel size="12"> <input onClick="if (checkNum(briBushel.value)) compute(this.form,briBushel.name,vol_data)" type=button value="bc?{" name=briBushel_bt></td> </tr> <tr> <td align=right nowrap>?R?N<font style="font-size=9px;">(bal)</font></td> <td align=left><input name=briGallon size="12"> <input onClick="if (checkNum(briGallon.value)) compute(this.form,briGallon.name,vol_data)" type=button value=Go! name=briGallon_bt></td> <td align=right nowrap>áT1?<font style="font-size=9px;">(pt)</font></td> <td align=left><input name=briPint size="12"> <input onClick="if (checkNum(briPint.value)) compute(this.form,briPint.name,vol_data)" type=button value="bc?{" name=briPint_bt></td> </tr> <tr> <td align=right nowrap>2m???v?S<font style="font-size=9px;">(fl oz)</font></td> <td align=left><input name=briFluid_ounce size="12"> <input onClick="if (checkNum(briFluid_ounce.value)) compute(this.form,briFluid_ounce.name,vol_data)" type=button value="bc?{" name=briFluid_ounce_bt></td> <td colspan=2>&nbsp;</td> </tr> <tr> <td align=center colspan="4"><b>0lQ6Rùp?6R_0</b></td> </tr> <tr> <td align=right nowrap>dlúR<br /><font style="font-size=9px;">(Table spoon)</font></td> <td align=left><input name=mcTable_spoon size="12"> <input onClick="if (checkNum(mcTable_spoon.value)) compute(this.form,mcTable_spoon.name,vol_data)" type=button value="bc?{" name=mcTable_spoon_bt></td> <td align=right nowrap>?1<br /><font style="font-size=9px;">(Tea spoon)</font></td> <td align=left><input name=mcTea_spoon size="12"> <input onClick="if (checkNum(mcTea_spoon.value)) compute(this.form,mcTea_spoon.name,vol_data)" type=button value="bc?{" name=mcTea_spoon_bt></td> </tr> <tr> <td align=center colspan="4"><b>0?6Rùp?6R_0</b></td> <tr> </tr> <td align=right nowrap>dlúR<font style="font-size=9px;">(Tbs)</font></td> <td align=left><input name=uscTable_spoon size="12"> <input onClick="if (checkNum(uscTable_spoon.value)) compute(this.form,uscTable_spoon.name,vol_data)" type=button value="bc?{" name=uscTable_spoon_bt></td> <td align=right nowrap>?1<font style="font-size=9px;">(tsp)</font></td> <td align=left><input name=uscTea_spoon size="12"> <input onClick="if (checkNum(uscTea_spoon.value)) compute(this.form,uscTea_spoon.name,vol_data)" type=button value="bc?{" name=uscTea_spoon_bt></td> </tr> <tr> <td align=right nowrap>og<font style="font-size=9px;">(fl oz)</font></td> <td align=left><input name=uscCup size="12"> <input onClick="if (checkNum(uscCup.value)) compute(this.form,uscCup.name,vol_data)" type=button value="bc?{" name=uscCup_bt></td> <td colspan=2>&nbsp;</td> </tr> <tr> <td align=center colspan="4"><b>0?6R2m??0</b></td> </tr> <tr> <td align=right nowrap>vh<font style="font-size=9px;">[42?R?N]</td> <td align=left><input name=uslBarrel size="12"> <input onClick="if (checkNum(uslBarrel.value)) compute(this.form,uslBarrel.name,vol_data)" type=button value="bc?{" name=uslBarrel_bt></td> <td align=right nowrap>?R?N<font style="font-size=9px;">(gal)</td> <td align=left><input name=uslGallon size="12"> <input onClick="if (checkNum(uslGallon.value)) compute(this.form,uslGallon.name,vol_data)" type=button value="bc?{" name=uslGallon_spoon_bt></td> </tr> <tr> <td align=right nowrap>8Y1?<font style="font-size=9px;">(qt)</td> <td align=left><input name=uslQuart size="12"> <input onClick="if (checkNum(uslQuart.value)) compute(this.form,uslQuart.name,vol_data)" type=button value="bc?{" name=uslQuart_bt></td> <td align=right nowrap>áT1?<font style="font-size=9px;">(pt)</td> <td align=left><input name=uslPint size="12"> <input onClick="if (checkNum(uslPint.value)) compute(this.form,uslPint.name,vol_data)" type=button value="bc?{" name=uslPint_bt></td> </tr> <tr> <td align=right nowrap>êS3?<font style="font-size=9px;">(gi)</td> <td align=left><input name=uslGill size="12"> <input onClick="if (checkNum(uslGill.value)) compute(this.form,uslGill.name,vol_data)" type=button value="bc?{" name=uslGill_bt></td> <td align=right nowrap>2m???v?S<font style="font-size=9px;">(fl oz)</td> <td align=left><input name=uslFluid_ounce size="12"> <input onClick="if (checkNum(uslFluid_ounce.value)) compute(this.form,uslFluid_ounce.name,vol_data)" type=button value="bc?{" name=uslFluid_ounce_bt></td> </tr> <tr> <td align=right nowrap>2m??SbpQ<font style="font-size=9px;">(fl dr)</td> <td align=left><input name=uslFluid_dram size="12"> <input onClick="if (checkNum(uslFluid_dram.value)) compute(this.form,uslFluid_dram.name,vol_data)" type=button value="bc?{" name=uslFluid_dram_bt></td> <td align=right nowrap>???n<font style="font-size=9px;">(min)</td> <td align=left><input name=uslMinim size="12"> <input onClick="if (checkNum(uslMinim.value)) compute(this.form,uslMinim.name,vol_data)" type=button value="bc?{" name=uslMinim_bt></td> </tr> <tr> <td align=center colspan="4"><b>0??? T6RSO?y????0</b></td> </tr> <tr> <td align=right nowrap>?N??:\</td> <td align=left><input name=uscAcre_foot size="12"> <input onClick="if (checkNum(uscAcre_foot.value)) compute(this.form,uscAcre_foot.name,vol_data)" type=button value="bc?{" name=uscAcre_foot_bt></td> <td align=right nowrap>?z1ex</td> <td align=left><input name=uscCubic_yard size="12"> <input onClick="if (checkNum(uscCubic_yard.value)) compute(this.form,uscCubic_yard.name,vol_data)" type=button value="bc?{" name=uscCubic_yard_bt></td> </tr> <tr> <td align=right nowrap>?z1e??:\</td> <td align=left><input name=uscCubic_foot size="12"> <input onClick="if (checkNum(uscCubic_foot.value)) compute(this.form,uscCubic_foot.name,vol_data)" type=button value="bc?{" name=uscCubic_foot_bt></td> <td align=right nowrap>?z1e???[</td> <td align=left><input name=uscCubic_inch size="12"> <input onClick="if (checkNum(uscCubic_inch.value)) compute(this.form,uscCubic_inch.name,vol_data)" type=button value="bc?{" name=uscCubic_inch_bt></td> </tr> <tr> <td colspan="4"><div align="center"><input onClick=resetAll(this.form) type=button value="pencí?n" name=res7></div></td> </tr> </table>