function convertform(form){ var firstvalue = 0; for (var i = 1; i <= form.count; i++) { // Find first non-blank entry if (form.elements[i].value != null && form.elements[i].value.length != 0) { if (i == 1 && form.elements[2].value != "") return false; firstvalue = form.elements[i].value / form.elements[i].factor; break; } } if (firstvalue == 0) { clearform(form); return false; } for (var i = 1; i <= form.count; i++) form.elements[i].value = formatvalue((firstvalue * form.elements[i].factor), form.rsize); return true; } function formatvalue(input, rsize) { var invalid = "**************************"; var nines = "999999999999999999999999"; var strin = "" + input; var fltin = parseFloat(strin); if (strin.length <= rsize) return strin; if (strin.indexOf("e") != -1 || fltin > parseFloat(nines.substring(0,rsize)+".4")) return invalid.substring(0, rsize); var rounded = "" + (fltin + (fltin - parseFloat(strin.substring(0, rsize)))); return rounded.substring(0, rsize); } function resetform(form) { clearform(form); form.elements[1].value = 1; convertform(form); return true; } function clearform(form) { for (var i = 1; i <= form.count; i++) form.elements[i].value = ""; return true; } // END -->
[ Foreign Trade On-Line homepage ]
 Search
 Exhibitions
 Showcase
 Register
 Services
 Reference
 Resources
 Forums
 News
 Download
 About Us
 Login

Volume Converter

Enter a volume in any box and click Calculate button to see the conversion to other units. Click Calibrate to see 1 cubic centimeter and other units.

Volume Unit Conversion Calculator

Cubic Centimeter
Cubic Decimeter
Cubic Meter
Cubic Inches
Cubic Feet
Cubic Yard
Millilitre
Litre
Kilolitre
Megalitre
Fluid Ounces
Quarts
Gallons
Imperial Gallons




Copyright © 1999-2008 Foreign Trade On-Line.
All rights reserved.  Privacy Statement
Please read important copyright notices and disclaimers information.