RegisterStartupScript fire at open popup
<p>I am trying to check the class of an object in the parent() of a popup.  This check will determine the UI (ASP form elements of the popup).  For Instance:</p>

<p>Pseudo Code: (JQUERY) I want this executed when the popup is opened and pass in whether or not the specific class was found</p>

<pre><code>if($(document).find('.specificClass'))
{
    //send boolean value to the new popup window
    //if false execute the following
     var labelToHide = document.getElementById('&lt;%= Label.ClientID %&gt;');
           var textBoxToHide = document.getElementById('&lt;%= TextBox.ClientID %&gt;');
           labelToHide.style.display = 'none'
           textBoxToHide.style.display = 'none'
    //else take the textbox value and pass it back to the parent
}
</code></pre>

<p>Also I want to take a value from one of the TextBox elements and pass it back to the parent
to change a height value of the parent element.  I've been working on this for a while and I think my issue involves my selection and where I am trying to call the DOM elements.</p>

<p>Any help or suggestions help.. From what I read I don't think ClientScript.RegisterStartupScript will help but I could be wrong.  </p>

<p>Thanks in advance!
-Mitch</p>
