javascript show/hide with memory
<p>i have this show/hide menu.
It is possibly this menu make with memory?( I open sub menu, refresh page and this sub menu stil open. )</p>

<pre><code>&lt;script type="text/javascript"&gt;
function change(id){
     ID = document.getElementById(id);

     if(ID.style.display == "")
          ID.style.display = "none";
     else
          ID.style.display = "";
      }
&lt;/script&gt;
    &lt;div onclick="change(5)" style="cursor: hand"&gt;
        &lt;a href = "#"&gt;+&lt;/a&gt;News
    &lt;/div&gt;
    &lt;div style="display: none" id="5"&gt;
        News1&lt;br/&gt;
        News2&lt;br/&gt;
    &lt;/div&gt;
</code></pre>
