///////////////////////////////////////////////////////////////////////////// // // javascript source code for the Futura calculator at: // http://www.natew.com/frames.cgi/heli/calc/html.FuturaGearing // // Nate Waddoups, 8 May 2001 // ///////////////////////////////////////////////////////////////////////////// var rPi = 3.1415926535; var g_rClutch = 10; var g_rMain = 90; var g_rTotal = 1; function InitializeRatios () { g_rClutch = 10; g_rMain = 90; Solve (null); RPM (); } function Solve (button) { if (button) { with (button.form) { if (button.form.id == "ClutchForm") { g_rClutch = eval(button.teeth); } if (button.form.id == "MainForm") { g_rMain = eval(button.teeth); } } } g_rTotal = g_rMain / g_rClutch; g_rTotal = Math.round (g_rTotal * 100) / 100; document.all["Ratio"].innerHTML = g_rTotal + " : 1"; RPM (); } function RPM () { document.all["OutputRotorSpeed"].innerHTML = Math.round (document.all["InputMotorSpeed"].value / g_rTotal); document.all["OutputMotorSpeed"].innerHTML = Math.round (document.all["InputRotorSpeed"].value * g_rTotal); } ///////////////////////////////////////////////////////////////////////////// // EOF. Stop reading here ->