Javascript Scope
<p>I have 3 javascript files :</p>

<ol>
<li>Constants.js</li>
<li>Edit.js</li>
<li>Summary.js</li>
</ol>

<p>The Constants file contains Constants, Eg <code>var XMLTYPEID = "typeId"</code></p>

<p>The Edit and Summary files contain normal javascript functions.</p>

<p>All the files sit in the same folder, the Edit.js file can use any of the 
constant values in the Constants.js file but the Summary.js file can not. </p>

<p>I can not see any difference between the Edit and Summary files apart from 
the different named functions. </p>

<p>I'm somewhat baffled and would appreciate any suggestions regarding how 
I can get the Summary.js file to use the constant values from the Constants.js
file</p>
