setTimeout Usage Issues
<p>I have the following javascript but I am having issues within using setTimeout, ie:</p>

<pre><code>function setUrl()
{
  // Get system URL details
  var url_path = new String(window.location.pathname);

  var new_url;

  new_url = window.location.host;
  }
  setTimeout("setValue('ONE_UP_URL',new_url);",2000);
}
</code></pre>

<p>But for some reason, I am getting the error: 'new_url' is undefined.</p>

<p>Would really appreciate your help on calling this javascript function using setTimeout.</p>

<p>Thanks.</p>
