javascript Reference Error
<p>I am facing a very weird issue.. Maybe not so weird as i am newbie in js..</p>

<p>Take a look at this code.. error is on line 15</p>

<p><a href="http://jsfiddle.net/zqaCK/2/" rel="nofollow">http://jsfiddle.net/zqaCK/2/</a></p>

<p>It says Y is not defined.. whereas it is lying directly beneath it..
So here is the funny thing.. I have three functions..</p>

<pre><code>function foo(){
    Y(foo);
}  //works

function build_graph_from_file(){
    Y(foo); // cant find Y
}

function Y(){

}
</code></pre>

<p>foo can call Y..
but build_graph_from_file() cant call Y.. ?</p>

<p>What am I missing?</p>
