aspx javascript enabling button and checkbox on scroll down
<p>This is the html i'm using.  I'm trying to figure out why my button and checkbox never get set to enabled.</p>

<pre><code>&lt;form id="form1" runat="server"&gt;
&lt;script src="js/mootools-core-1.3.2.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    $(function checkScrollHeight() {
        var textElement = document.getElementsByName("tosgareementdiv")[0].addEventListener("scroll", checkScrollHeight, false);
        if ((textElement.scrollTop + textElement.offsetHeight) &gt;= textElement.scrollHeight) {
            document.getElementsByName("AcceptTOSButton")[0].disabled = false;
        }

    });
&lt;/script&gt;
&lt;div class="tosgareementdiv"&gt;
    &lt;p&gt;hi my stuff&lt;/p&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;asp:CheckBox ID="AcceptTOSCheckBox" Text="I Agree." runat="server" Enabled="false" /&gt;
    &lt;asp:Button ID="AcceptTOSButton" Text="I Agree" runat="server" OnClick="AcceptTOSButton_Click"
        Enabled="false" /&gt;
&lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>I was following the example here but i'm not able to figure out how to get it to fire..</p>

<p>I know there is no code for the checkbox but why wont the button enable?</p>
