want to execute a java script code .cs page
<p>i have a change password popup window.i want to send the user name and changed password to the parent window after it has been successfully changed by the popup window and want the popup to be closed after few seconds....but i am not able to call the javascript from the .cs file.i am giving the code..can u help me how to do it...`</p>

<pre><code>string script = "&lt;script&gt;" + "return updateParent();";
         if (!ClientScript.IsStartupScriptRegistered("someKey"))
         {
             ClientScript.RegisterStartupScript(this.GetType(), "someKey", script);
         }   

&lt;script type="text/javascript"&gt;
       function updateParent() {
           opener.document.form1.getElementById(Username).value = document.form1.getElementById(Username).value;
           opener.document.form1.getElementById(pswrd).value = document.form1.getElementById(new_paswrd).value;
           self.close();
           return false;
       }
&lt;/script&gt;`
</code></pre>
