ASP.Net JScript Error on Show Hide using IE8
<p>I am getting the following javascript error when changing the value in the dropdownlist.  The error only occurs when using IE8, it works fine in IE6 and IE7. The error is: 'value' is null or not an object</p>

<p>Here is the code.</p>

<pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"&gt;
    &lt;table cellpadding="3" cellspacing="1"&gt;
        &lt;tr&gt;
            &lt;td style="text-align: right"&gt;* Who is reporting the issue:&lt;/td&gt;
            &lt;td&gt;
                &lt;asp:DropDownList ID="ddlWhoReportedIssue" runat="server" 
                    CausesValidation="false"&gt;
                    &lt;asp:ListItem&gt;&lt;/asp:ListItem&gt;
                    &lt;asp:ListItem&gt;Self&lt;/asp:ListItem&gt;
                    &lt;asp:ListItem&gt;Agent's Office&lt;/asp:ListItem&gt;
                    &lt;asp:ListItem&gt;Other Employee In Dept.&lt;/asp:ListItem&gt;
                &lt;/asp:DropDownList&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr id = "Row1" style="display:none"&gt;
            &lt;td style="text-align: right"&gt;* State Agent Code:&lt;/td&gt;
            &lt;td&gt;
                &lt;asp:TextBox ID="txtStateAgentCode" runat="server" Columns="20" MaxLength="50"&gt;&lt;/asp:TextBox&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr id = "Row2" style="display:none"&gt;
            &lt;td style="text-align: right"&gt;* Name of Caller:&lt;/td&gt;
            &lt;td&gt;
                &lt;asp:TextBox ID="txtNameOfCaller" runat="server"&gt;&lt;/asp:TextBox&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr id = "Row3" style="display:none"&gt;
            &lt;td style="text-align: right"&gt;* Name &amp;amp; Alias of Other Employee:&lt;/td&gt;
            &lt;td&gt;
                &lt;asp:TextBox ID="txtNameAndAlias" runat="server" Columns="30" MaxLength="50"&gt;&lt;/asp:TextBox&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;

    &lt;script type="text/javascript"&gt;

        function fcnShowHide1() {
            if (aspnetForm.ctl00_ContentPlaceHolder2_ddlWhoReportedIssue.value == "Self") {
                document.all.Row1.style.display = "none"
                document.all.Row2.style.display = "none"
                document.all.Row3.style.display = "none"
               } else if (aspnetForm.ct100_ContentPlaceHolder2_ddlWhoReportedIssue.value == "Agent's Office") {
                document.all.Row1.style.display = ""
                document.all.Row2.style.display = ""
                document.all.Row3.style.display = "none"
               } else if (aspnetForm.ct100_ContentPlaceHolder2_ddlWhoReportedIssue.value == "Other Employee In Dept.") {
                document.all.Row1.style.display = "none"
                document.all.Row2.style.display = "none"
                document.all.Row3.style.display = ""
            }
        }

    &lt;/script&gt;

&lt;/asp:Content&gt;
</code></pre>
