title: Javascript Object required error when calling value of hidden field
body: <p>Code:
  Html:</p>
  
  <pre><code>&lt;input type="hidden" id="lblHierarchyType" value="" runat="server" /&gt;
  </code></pre>
  
  <p>C# Codebehind:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
      {
          if (lblHierarchyType.Value == "")
          {
              lblHierarchyType.Value = "AOR";
          }
          if (!Page.IsPostBack)
          {
              txtUserID.Focus();
              FillGroupsList();
              FillOrgTree();
              ClearErrorMsgs();
          }           
      }
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>        function populateSelectedNode(node) {
              debugger
              var selectedOrg = node.getValue();
              var hierarchyType = document.getElementById("lblHierarchyType").value;
          }
  </code></pre>
  
  <p>The code errors out (Microsoft JScript runtime error: Object required) when it hits the assignment of lblHierarachy.value to var hierarchy.  </p>
  
  <p>Thanks</p>