Div is hidden but again showed up
<p>I have a situation where I have no of Divs on my page , based upon the autorization I want to hide show the data in those Divs , Problem is Divs are not Hidden ,this is my client script code.</p>

<pre><code>function ShowDiv(obj, condition) {
    var dataDiv = document.getElementById(obj);
    //alert(obj);
    if (condition == true) {
        dataDiv.style.display = "none";
    }
    else {
        dataDiv.style.display = "block";
    }
}
</code></pre>

<p>this is a sample code, when I call this code on button click</p>

<pre><code>&lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" OnClientClick="ShowDiv('Div1','True');" Text="Button" /&gt;
</code></pre>

<p>by this code it does hide the div but gain displays it on postback.
also can I hide no of Div on one go. i.e now I'm using getelementbyid is there any grouping alowed in HTML.</p>

<p>Thanks</p>
