title: take user input from a Form perform calculation (order of operations) and output back into that form
body: <p>I'm trying to take input from one element of Form (INPUT1) and perform a calculation which would essentially OUTPUT1=((INPUT1/20)<em>.58)</em>.30 
  I've seen a number of examples for conversion of CM to inches etc.. But nothing with order of operations. Please help! The wall and my head have met too many times. 
  This is what I have so far, (which doesn't work)</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transititonal//EN"
  ""http://www.w3.org/TR/XHTML1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
  
  &lt;form name="TESTING"&gt;
  &lt;table border="1" width="600" height="200" cellpadding="10" cellspacing="3"&gt;
  &lt;tr&gt;&lt;th colspan="2"&gt;&lt;h1&gt;TESTING&lt;/h1&gt;&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;  &lt;th&gt;&lt;h3&gt;INPUT&lt;/h3&gt;&lt;/th&gt;
  &lt;th&gt;&lt;h3&gt;OUTPUT&lt;/h3&gt;&lt;/th&gt;    &lt;/tr&gt;
  &lt;tr&gt;&lt;/tr&gt;
  &lt;td&gt;&lt;input type="number" name="INPUT1"/&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="number" name="OUTPUT1"&gt;&lt;/td&gt;
  &lt;table&gt;
  
  &lt;/form&gt;
  
  &lt;script type="text/javascript"&gt;
  var USERINPUT1 = document.TESTING.INPUT1.value;
  var CALC1 = USERINPUT1/20;
  var CALC2 = CALC1*.585;
  var CALC3 = CALC2*.30;
  var CALC3 = OUTPUT1;
  
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>