title: currency converter in javascript
body: <p>I'm trying to make currency converter.  I have 2 inputs and 2 currencies. Here is my HTML code:</p>
  
  <pre><code>&lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt; want to buy &lt;input id="firstinput" onkeyup="convert('C')"&gt;&lt;/td&gt;
              &lt;td&gt;
                  &lt;select id="from"&gt;
                      &lt;option value="GEL" selected&gt;EURO(EUR)&lt;/option&gt;
                      &lt;option value="USD"&gt;USdollar(USD)&lt;/option&gt;
                  &lt;/select&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt; want to buy &lt;input id="secondinput" onkeyup="convert('F')"&gt;&lt;/td&gt;
              &lt;td&gt;
                  &lt;select id="to"&gt;
                      &lt;option value="EUR"&gt;EUR0(EUR)&lt;/option&gt;
                      &lt;option value="USD" selected&gt;USdollar(USD)&lt;/option&gt;
                  &lt;/select&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>When the first selection is EUR and the second is USD, it should multiply by some value (say 2).  When the first selection is USD and the second EUR, then divide by 2.  Otherwise multiply by 1.</p>
  
  <p>Please help me figure this out.</p>