javascript input field onchange causes "is not a function"
<p>I have a function i would like to run onChange. This works fine with an a-tag. But when i use it on an input-tag it just says: </p>

<p><strong>form.saveFile is not a function</strong></p>

<p>This works:</p>

<pre><code>&lt;a onclick="form.saveFile('fec056b774ffefa479c7dd3a632275cb','fec056b774ffefa479c7dd3a632275cb_filetest'); return false;" href="#"&gt;Upload file&lt;/a&gt;
</code></pre>

<p>This does NOT work:</p>

<pre><code>&lt;input onchange="form.saveFile('fec056b774ffefa479c7dd3a632275cb','fec056b774ffefa479c7dd3a632275cb_filetest');" id="fec056b774ffefa479c7dd3a632275cb_filetest" class="file" type="file"  name="fec056b774ffefa479c7dd3a632275cb_filetest" accesskey="F"/&gt;
</code></pre>

<p>Both calls the same form.saveFile(); function. </p>

<p>The form variable is declared in a included js file like this:</p>

<pre><code>form = {
  version: '1.0.0',
  ...alot of functions... 
  saveFile : function(callback,p){
    .................
  }
}
</code></pre>
