Javascript toggle state function
<p>I have two functions in my js file:</p>

<pre><code>function all_opened()
{
    allToggle(true);
}   

function all_closed()
{
   allToggle(false);
}
</code></pre>

<p>I need both functions called in single function like
<code>function openclose()</code></p>

<p>And my HTML Code:</p>

<pre><code>&lt;a href="#" onclick=""&gt;Open/Close&lt;/a&gt;    
</code></pre>
