how do I go about correcting the following error within within javascript?
<p>I have created a 5 page Website which unfortunately I cannot publish owing to the following error. Within the files created, when I click on the folder
global_navtree.js, I am presented within a windows script host the following:</p>

<pre><code>Line: 1
Char:1
Error: ‘WPNavBar’ is undefined
Code: 800A1391
Source: Microsoft Jscript runtime error.
</code></pre>

<p>Since this folder would not open, I copied it to my notepad which displayed the following. In addition to this, I managed to obtain additional information.
Obviously it is telling me of the error but since I am new to this process how do I go about correcting it within javascript?</p>

<pre><code>var customNavTree1 = WpNavBar.readTree({
"childArray" : [
{   sTitle:'Gaggia',
bIsWebPath:true,
sUrl:'index.html'
},
{   sTitle:'Page 2',
    bIsWebPath:true,
    sUrl:'page2.html'
},
{   sTitle:'Page 3',
bIsWebPath:true,
sUrl:'page3.html'
},
{   sTitle:'Page 4',
    bIsWebPath:true,
    sUrl:'page4.html'
},
{   sTitle:'Grinder',
    bIsWebPath:true,
    sUrl:'page5.html'
}]
});
</code></pre>

<hr>

<pre><code>Error:uncaught exception: [Exception…”Component returned failure code:0x80070057
(NS_ERROR_ILLEGAL_VALUE) [nsIWebNavigation.loadURI]” nsresult: ”0x80070057
(NS_ERROR_ILLEGAL_VALUE)” location: JS frame:: chrome://global/content/viewSource.js :: view Source :: line 179” data: no]

Error: WPNavBar is not defined
Source File: javascript:%20WPNavBar
Line 1
</code></pre>
