title: executing a reference to field.onchange in Firefox
body: <p>I have HTML code which calls a javascript function from a form, using:</p>
  
  <pre><code>&lt;form name="f" id="f" ...&gt;
    &lt;input name="myField" onchange="doFunct(f.myField.value,f.yourField);" /&gt;
    &lt;input name="yourfield" onchange="doFunct(f.yourField.value,f.anotherField);" /&gt;
  ...
  </code></pre>
  
  <p>In the javascript code:</p>
  
  <pre><code>function doFunct(field,dest){
      // do something with field
      dest.value = field;
      // see if the dest has a change field
      if (dest.onchange !== null) {
          //we have an onchange function, so let's do it!
          dest.onchange();
      }
  }
  </code></pre>
  
  <p>This works fine in Safari, Opera, and Chrome.  It fails in FireFox with an error:</p>
  
  <p><strong>Error: dest.onchange is not a function</strong></p>
  
  <p>Any suggestions on how to execute "dest.onchange()" from javascript in FireFox?</p>
  
  <p>I need this capability to cascade changes to fields in an input form.</p>