Beginner: Javascript must be on header to run? Does the declaration order of the functions matter?
<p>I have this function in my head:</p>

<pre><code>&lt;head&gt;
      window.onload = function(){
         var x = new Array(0,2,3,4,5,6,7,8);
         var y = new Array(20,10,40,30,60,50,70,10);  
         drawGraph(y,x);
      }
&lt;/head&gt;
</code></pre>

<p>Can I declare the function drawGraph() somewhere in the body? Do I need to declare it before it is called?</p>
