Call another javascript function when a functions is not respondong
<p>I have two javascript functions </p>

<pre><code>searchButtonClicked()
hidemap()
</code></pre>

<p>The <code>searchButtonClicked()</code> will be called in <code>body onload</code>.</p>

<p>The <code>searchButtonClicked()</code> sometimes not respond. So I want to let it try to execute for 5 seconds and if it dosent execute I want to call <code>hidemap()</code>.</p>

<p>Please help. Thanks in advance.
Udy</p>

<p>here is the function</p>

<pre><code>function searchButtonClicked() {
    if (inlocatorHubMode) {
    locatorHubSearch();
    }
    else {
    search();
    }
}
</code></pre>
