closing pop up window on button click(if successcede) and reload parent window
<p>I am using this code.This pop up window pops up when I clicks a button on the main page.Now I want the pop up window to be closed if the password is successfully changed and reload the main page,but if the password is not changed then refresh the pop up window again.
I used javascript for form validation<code>enter code here</code>
Here is the code..... </p>

<pre><code>&lt;asp:Textbox id="curnt_paswrd" textmode="Password" runat="server" size="30" /&gt;
&lt;asp:Textbox id="new_paswrd" textmode="Password" runat="server" size="30" /&gt;
&lt;asp:button ID="btnChange" class="submit-button" 
          OnClientClick="return validate()" runat="server" Text="Change" 
          onclick="btnChange_Click" /&gt;
</code></pre>
