We help IT Professionals succeed at work.

GetElementbyID

jliotine
jliotine used Ask the Experts™
on
Hi -- I have a scritp that attempts to find a drop down control on a page using the getelementbyid method.  It works in IE 7, but not in FireFox or IE8.  I've read up on the topic and most say that it is cause by passing the element name to the method instead of the element id.  I am passing the element id.

HEre is the code ---
HTML for the dropdown is
<TD vAlign="baseline" noWrap>
<H3>Subtopic:</H3>
</TD>
<TD vAlign="baseline" noWrap><FONT face="Arial"><asp:dropdownlist id=ddlSubtopic runat="server" Width="286px" DataSource="<%# dstopics %>" DataMember="table2" DataTextField="tt" DataValueField="topicid"></asp:dropdownlist></FONT></TD>
</TR>


Here is the Javascript:

nSubtopics = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options.length

Oh and I negleted to metion that I am using Master pages.  that's why in the script the field name is _ctl0_ContentPlaceHolder1_ddlSubTopic.  

Any help would be appreciated.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
leakim971Multitechnician
Top Expert 2014

Commented:
Use :

var nSubtopics = document.getElementById('<%= ddlSubTopic.ClientID %>').options.length

leakim971Multitechnician
Top Expert 2014

Commented:

Author

Commented:
That looks like vb script code.  I'm using JavaScript.  ANyhow I tried it and got an error that said ddlSubtopic not decalred.
Akin DeluI’m a software engineer, tech enthusiast and UI/UX lover.

Commented:
confirm that the id of your dropdown is ddlSubtopic

Author

Commented:
Here is the line of generated HTML.    As I said in my original post,  .Net adds the "_ctl0....." because this page uses a .Net master page.  

<TD vAlign="baseline" noWrap><FONT face="Arial"><select name="_ctl0:ContentPlaceHolder1:ddlSubtopic" id="_ctl0_ContentPlaceHolder1_ddlSubtopic" style="width:286px;">
leakim971Multitechnician
Top Expert 2014

Commented:
>That looks like vb script code.
It's the case! ( < %= ddlSubTopic.ClientID % > )

>As I said in my original post,  .Net adds the "_ctl0....." because this page uses a .Net master page.
You are generaly not able to anticipate the new id generated by .net compilator that's why you need to use : < %= ddlSubTopic.ClientID % >

could you post your page ?

Author

Commented:
HEre is the HTML

<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/MPRPublications.Master" CodeBehind="Publications3.aspx.vb" Inherits="MPR.Publications.Web.Publications3"
    title="Untitled Page" %>
<asp:Content ID="ContentPlaceHolder1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language="javascript" type="text/javascript">
<!--

function TABLE1_onclick() {

}

// -->
</script>

 <!--  <script type="text/javascript" src="../_jsp/pubscriptsVer2.jsp">
  </script>
   -->
    <table cellSpacing="0" cellPadding="0" border="0" id="TABLE1" language="javascript" onclick="return TABLE1_onclick()">
      <TBODY>
            <TR>
                  <td  height="23" width="99%">
                    <h1>
                        <strong>Search Our Publications </strong>
                    </h1>
                </td>
            </TR>
            <TR>
                  <TD colspan="2" >
                        <DIV align="left">
                              <TABLE  cellSpacing="0" cellPadding="4" border="0" id="TABLE2">
                                    <TBODY>
                                          <TR>
                                                <TD vAlign="baseline" noWrap height="23">
                                                      <H3>Topic:</H3>
                                                </TD>
                                                <TD vAlign="baseline" noWrap height="23"><FONT face="Arial"><asp:dropdownlist id=ddlTopic runat="server" Width="286px" DataSource="<%# dsTopics %>" DataMember="table" DataTextField="topictext" DataValueField="topicid"></asp:dropdownlist></FONT>
                                                </TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="baseline" noWrap>
                                                      <H3>Subtopic:</H3>
                                                </TD>
                                                <TD vAlign="baseline" noWrap><FONT face="Arial"><asp:dropdownlist id=ddlSubtopic runat="server" Width="286px" DataSource="<%# dstopics %>" DataMember="table2" DataTextField="tt" DataValueField="topicid"></asp:dropdownlist></FONT></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="baseline" noWrap>
                                                      <H3>Title:</H3>
                                                </TD>
                                                <TD vAlign="baseline" noWrap><FONT face="Arial"><asp:textbox id="txtTitle" runat="server" Width="286px"></asp:textbox></FONT></TD>
                                          </TR>
                                           <tr>
                        <td nowrap="nowrap" valign="baseline">
                            <h3>
                                Include:</h3>
                        </td>
                        <td>
                        <asp:CheckBoxList ID="cblKeywords" runat="server" Font-Names="Arial" Font-Size="XX-Small"
                                RepeatColumns="3" RepeatDirection="Horizontal">
                                <asp:ListItem Value="Keyword">Keywords</asp:ListItem>
                                <asp:ListItem Value="Description">Description</asp:ListItem>
                               
                            </asp:CheckBoxList></td>
                    </tr>
                                          <TR>
                                                <TD vAlign="baseline" noWrap>
                                                      <H3>Author:</H3>
                                                </TD>
                                                <TD vAlign="baseline" noWrap><FONT face="Arial"><asp:textbox id="txtAuthor" runat="server" Width="286px"></asp:textbox></FONT></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="baseline" noWrap>
                                                      <H3>Publication Date:</H3>
                                                </TD>
                                                <TD vAlign="baseline" noWrap><FONT face="Arial">&nbsp;
                                                            <asp:dropdownlist id=ddlPubDateQualifier runat="server" DataSource="<%# pubQualifier %>">
                                                            </asp:dropdownlist>&nbsp;&nbsp;&nbsp;
                                                            <asp:dropdownlist id=ddlPubDateMonth runat="server" DataSource="<%# pubMonths %>">
                                                            </asp:dropdownlist>&nbsp;&nbsp;
                                                            <asp:dropdownlist id=ddlPubDateYear runat="server" DataSource="<%# pubYears %>">
                                                            </asp:dropdownlist></FONT></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="baseline" noWrap>
                                                      <H3>Sort by:</H3>
                                                </TD>
                                                <TD vAlign="baseline" noWrap><asp:radiobuttonlist id="rblSortBy" runat="server" RepeatDirection="Horizontal" Font-Size="XX-Small"
                                                            Font-Names="Arial">
                                                            <asp:ListItem Value="Most Recent First" Selected="True">Most Recent First</asp:ListItem>
                                                            <asp:ListItem Value="Oldest First">Oldest First</asp:ListItem>
                                                            <asp:ListItem Value="Author">Author</asp:ListItem>
                                                      </asp:radiobuttonlist></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="baseline" noWrap>
                                                      <H3>
                                                            Show:<BR>
                                                      </H3>
                                                </TD>
                                                <TD vAlign="baseline" noWrap><asp:checkbox id="cbNoAnnotations" runat="server" Text="Annotations" Checked="True" Font-Size="XX-Small"
                                                            Font-Names="Arial"></asp:checkbox><asp:checkbox id="cbOnlineOnly" runat="server" Text="On-line Publications Only" Font-Size="XX-Small"
                                                            Font-Names="Arial"></asp:checkbox></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="top" noWrap>
                                                      <H3>Search Only:</H3>
                                                </TD>
                                                <TD vAlign="top" noWrap>
                                                      <asp:CheckBoxList id="cblOnly" runat="server" RepeatDirection="Horizontal" RepeatColumns="3" Font-Size="XX-Small"
                                                            Font-Names="Arial">
                                                            <asp:ListItem Value="IB">Issue/Policy Briefs</asp:ListItem>
                                                            <asp:ListItem Value="JA">Journal Articles</asp:ListItem>
                                                            <asp:ListItem Value="ES">Executive Summaries</asp:ListItem>
                                                            <asp:ListItem Value="TS">Testimony</asp:ListItem>
                                                            <asp:ListItem Value="PR">Project Reports</asp:ListItem>
                                                            <asp:ListItem Value="PRES">Presentations</asp:ListItem>
                                                            <asp:ListItem Value="DS">Data Sets</asp:ListItem>
                                                      </asp:CheckBoxList></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="baseline" noWrap>
                                                      <!-- <H3>Keywords:</H3>-->
                                                </TD>
                                                <TD vAlign="baseline" noWrap><asp:textbox id="txtKeywords" runat="server" Width="286px" Visible="false"></asp:textbox></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="baseline" noWrap colspan="2">
                                                      <asp:label id="lblErrorMsg" runat="server" Text="" EnableViewState="False"></asp:label></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="baseline" noWrap><FONT face="Arial"><BR>
                                                            <asp:button id="btnSearch"   UseSubmitBehavior=true runat="server" Text="Search Now!"></asp:button></FONT></TD>
                                                <TD vAlign="baseline" noWrap><FONT face="Arial"><BR>
                                                            <asp:button id="btnReset" runat="server" Text="Reset Form"></asp:button>&nbsp;&nbsp;&nbsp;
                                                            <asp:button id="btnViewOrder" runat="server" Text="ViewOrder"></asp:button></FONT></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="baseline" noWrap colSpan="2"><BR>
                                                      <H3>Display&nbsp;
                                                            <asp:dropdownlist id=ddlPubsPerPage runat="server" Width="54px" DataSource="<%# pubsPerPage %>">
                                                            </asp:dropdownlist>&nbsp;&nbsp;&nbsp;&nbsp;publications at a time</H3>
                                                </TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="baseline" colSpan="2">
                                                      <P><a name="Help"></a>&nbsp;</P>
                                                </TD>
                                          </TR>
                                    </TBODY></TABLE>
                        </DIV>
                        <DIV></DIV>
                  </TD>
            </TR>
      </TBODY>
      </table>
      
</asp:Content>


Here is the Java Script

<script type="text/javascript" >
var nSubtopics;
var nTopics;
var aTopicText;
var aTopicValue;
var aSubtopicText;
var aSubtopicValue;
var nSelectedTopic;
var nSelectedSubtopic;
function OnInitial()
{
debugger;;
      var i, j, n, strTopic, strSubtopic, strTest;

      nTopics =document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').options.length
      aTopicText = new Array(nTopics);
      aTopicValue = new Array(nTopics);
      for (i=0; i< nTopics; i++)
      {
            aTopicText[i] = document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').options[i].text;
            aTopicValue[i] = document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').options[i].value;
      }
      strTest = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic')
      if (strTest == null ){
      }
      else{
      nSubtopics=document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options.length
      

      aSubtopicText = new Array(nSubtopics);
      aSubtopicValue = new Array(nSubtopics);
      for (i = 0; i < nSubtopics; i++) {
            aSubtopicText[i] = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options[i].text;
            aSubtopicValue[i] = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options[i].value;
      }
      
      nSelectedTopic = document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').selectedIndex;
      nSelectedSubtopic = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').selectedIndex;
      if (nSelectedTopic == 0) {
            document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options.length = 1;
      }
      else {
            strTopic = document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').options[nSelectedTopic].text;
            n = strTopic.length;
            j = 0;
            for (i = 1; i < nSubtopics; i++) {
                  strSubtopic = aSubtopicValue[i];
                  if (strTopic != strSubtopic.substring(0, n))
                  {
                        document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options[i - j] = null;
                        j++;
                  }
            }
      }
}
}
function OnChangeTopic()
{ var i, j, n, strTopic, strSubtopic,strSubtopicVal;
 
      if (nSelectedTopic != document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').selectedIndex)
      {
               
             
            nSelectedTopic = document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').selectedIndex;
                 strTopic =       document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic')[nSelectedTopic].text;
            
            document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options.length = 1;
            if (nSelectedTopic != 0)
            {
                  j =      1;
                  n = strTopic.length;
                  for (i = 1; i < nSubtopics; i++)
                  {
                        //strSubtopic = aSubtopicValue[i];
                        strSubtopic = aSubtopicText[i];
                        strSubtopicVal = aSubtopicValue[i];
                        if (strTopic == strSubtopic.substring(0, n))
                        {
                              document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options[j] = new Option(strSubtopic.substring(n + 1, strSubtopic.length), strSubtopicVal);
                              if (nSelectedSubtopic == i) {
                                    document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').selectedIndex = j;
                              }
                              j++;
                        }
                  }
            }
      }
}
function OnChangeSubtopic()
{ var i, n, strSubtopic;
      n = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').selectedIndex;
      if (n == 0)
      {
            nSelectedSubtopic = 0;
      }
      else
      {
            strSubtopic = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic')[n].value;
            for (i = 1; i < nSubtopics; i++)
            {
                  if (strSubtopic == aSubtopicValue[i])
                  {
                        nSelectedSubtopic = i;
                        break;
                  }
            }
      }
}

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
Commented:
A few thoughts:

A) The INamingContainer convention does not usually start with an underscore "_ctl0". It usually starts with ctrlName##_ctl# etc.

Have you actually looked at the ID in the source in each browser and made sure it is the one you are using in JavaScript?

B) It doesn't make sense that the browser type has anything to do with the issue excepting the difference in the javascript. I do not believe the INamingContainer convention changes based on browser, nor does the getElementById() method.

C) The reason it's not working is likely due to it not being fed the correct ID, that is all. Or there is an error in your JavaScript somewhere that is not an error in IE7 but is an error in the newer browsers. You did not mention the error message in your post. Whatever you are seeing between browsers is likely a side issue that is not about the ID itself.

An error as simple as this one at the start of your Javascript could be the whole problem:
nTopics =document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').options.length
(missing semi-colon)
Syntax will kill you sometimes. Check your page and javascript for syntax issues.
If you have the web developer toolbar installed in FF it will likely point you straight to the error.



D) You might want to surround your dropdown list ID with the proper quotes "" just to be on the safe side. There's a few places where this is the case in your markup. You can get away with it usually, but it's best to be neat and orderly. Otherwise issues can cascade and be hard to identify.

D) What the others are in some sense trying to point out to you is that trying to use an INamingContainer ID directly in JavaScript like this is a bad practice as sooner or later it will cause confusion. It may not be an issue here.

It is better to attach your function from the code-behind where you can use the object.ClientID, or use the 'this' keyword creatively, or use RegisterClientScriptBlock to make ID's that are manipulated by the INamingContainer available to you.

I think you're problem is likely bad JavaScript!

leakim971Multitechnician
Top Expert 2014

Commented:
Did you try : ddlSubTopic.ClientID

Could you post a generated page (richt click on your page in the web browser and choose view source) and post it in code snippet

Author

Commented:
Here is the generated page


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
   <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
 
<title>Mathematica Policy Research Publications Search</title>
<meta name="Search Publications" content="Mathematica Policy Research Publications Search" />
<meta name="Keywords" content="Mathematica, healthcare, education, welfare, employment, labor, nutrition, disability, early childhood, federal, government, national, policy, research, data, collection, agencies, universities, professional, associations, businesses, public, publications, order, PDF" />
<meta name="Description" content="Search Mathematica Policy Research publication library" />

<link href="../_css/MainIndex.css" rel="stylesheet" type="text/css" />
  <script src="../_js/SpryTabbedNews.js" type="text/javascript">
  </script>
<script type="text/javascript" src="../_js/jquery-1.2.6.pack.js">
  </script>
<script type="text/javascript" src="../_js/ddaccordion.js">
  </script>
    <script type="text/javascript">


    ddaccordion.init({
    headerclass: "expandable", //Shared CSS class name of headers group that are expandable
    contentclass: "categoryitems", //Shared CSS class name of contents group
    revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
    mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
    collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
    defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
    onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
    animatedefault: false, //Should contents open by default be animated into view?
    persiststate: true, //persist state of opened contents within browser session?
    toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
    togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
    animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
    oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
    //do nothing
    },
    onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
    //do nothing
    }
    })


    </script>

<script type="text/javascript" >
var nSubtopics;
var nTopics;
var aTopicText;
var aTopicValue;
var aSubtopicText;
var aSubtopicValue;
var nSelectedTopic;
var nSelectedSubtopic;
function OnInitial() 
{
debugger;;
	var i, j, n, strTopic, strSubtopic, strTest;

	nTopics =document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').options.length 
	aTopicText = new Array(nTopics);
	aTopicValue = new Array(nTopics);
	for (i=0; i< nTopics; i++)
	{
		aTopicText[i] = document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').options[i].text;
		aTopicValue[i] = document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').options[i].value;
	}
	strTest = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic')
	if (strTest == null ){
	}
	else{
	nSubtopics = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options.length 
	
	aSubtopicText = new Array(nSubtopics);
	aSubtopicValue = new Array(nSubtopics);
	for (i = 0; i < nSubtopics; i++) {
		aSubtopicText[i] = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options[i].text;
		aSubtopicValue[i] = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options[i].value;
	}
	
	nSelectedTopic = document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').selectedIndex;
	nSelectedSubtopic = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').selectedIndex;
	if (nSelectedTopic == 0) {
		document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options.length = 1;
	}
	else {
		strTopic = document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').options[nSelectedTopic].text;
		n = strTopic.length;
		j = 0;
		for (i = 1; i < nSubtopics; i++) {
			strSubtopic = aSubtopicValue[i];
			if (strTopic != strSubtopic.substring(0, n)) 
			{
				document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options[i - j] = null;
				j++;
			}
		}
	}
}
}
function OnChangeTopic() 
{ var i, j, n, strTopic, strSubtopic,strSubtopicVal; 
 
	if (nSelectedTopic != document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').selectedIndex) 
	{ 
                
              
		nSelectedTopic = document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic').selectedIndex; 
                 strTopic = 	document.getElementById('_ctl0_ContentPlaceHolder1_ddlTopic')[nSelectedTopic].text; 
		
		document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options.length = 1; 
		if (nSelectedTopic != 0) 
		{ 
			j =	1; 
			n = strTopic.length; 
			for (i = 1; i < nSubtopics; i++) 
			{ 
				//strSubtopic = aSubtopicValue[i]; 
				strSubtopic = aSubtopicText[i];
				strSubtopicVal = aSubtopicValue[i];
				if (strTopic == strSubtopic.substring(0, n)) 
				{ 
					document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').options[j] = new Option(strSubtopic.substring(n + 1, strSubtopic.length), strSubtopicVal); 
					if (nSelectedSubtopic == i) { 
						document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').selectedIndex = j; 
					} 
					j++; 
				} 
			} 
		} 
	} 
} 
function OnChangeSubtopic() 
{ var i, n, strSubtopic; 
	n = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic').selectedIndex; 
	if (n == 0) 
	{ 
		nSelectedSubtopic = 0; 
	} 
	else 
	{ 
		strSubtopic = document.getElementById('_ctl0_ContentPlaceHolder1_ddlSubTopic')[n].value; 
		for (i = 1; i < nSubtopics; i++) 
		{ 
			if (strSubtopic == aSubtopicValue[i]) 
			{ 
				nSelectedSubtopic = i; 
				break; 
			} 
		} 
	} 
}

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

  </script> 
  <!-- Need this style so that there is no gap between forms on the page -->
 <style> 
    form {margin-top: 0em;} 
   </style> 
  
  </head>
  

<body>
  <table id="layout" width="100%" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#f2f7fa">&nbsp;</td>
    <td width="900" bgcolor="#FFFFFF">
<a href="#pagecontent" class="skip">Skip Navigation</a>
<div id="banner"><table border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="bottom"><img src="/images/spacer.gif" alt="spacer" width="182" height="10" /></td>
      <td nowrap="nowrap" height="16" valign="top"><a href="http://www.disabilitypolicyresearch.org/">Disability</a>&nbsp;&nbsp;<a href="/EarlyChildhood/">Early Childhood</a>
&nbsp;<a href="/education">Education</a>
&nbsp;&nbsp;<a href="/family_support">Family Support</a>
&nbsp;&nbsp;&nbsp;&nbsp;<a href="/health">Health</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/international">International</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/labor">Labor</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/nutrition">Nutrition</a>
&nbsp;&nbsp;</td>
      <td height="16" valign="bottom">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3" valign="bottom"><img src="/images/banner/head.jpg" alt="Mathematica Policy Research" border="0" usemap="#Map" /></td>
      </tr>

    <tr>
      <td valign="bottom">&nbsp;</td>
    </tr>
  </table>
</div> 
<!-- end banner --><script src="/_js/SpryMenuBar.js" type="text/javascript"></script><noscript>Your browser does not support JavaScript! Please visit our <a href="/About_Us/sitemap.asp">Site Map</a>.</noscript>
<div id="mastNav">
  
<ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="/">Home</a></li>
    <li><a class="MenuBarItemSubmenu" href="/About_Us/">About Us</a>
        <ul>
          <li><a href="/About_Us/mission.asp">Our Mission</a></li>
          <li><a href="/About_Us/boardofdirectors.asp">Our People</a>
							<ul>
							<li><a href="/About_Us/boardofdirectors.asp">Board of Directors</a></li>
							<li><a href="/About_Us/srmgmtteam.asp">Senior Management</a></li>
							<li><a href="/About_Us/seniorfellows.asp">Senior Fellows</a></li>
							</ul>
						</li>
          				<li><a href="/Employment/diversity.asp">Diversity</a></li>
						<li><a href="/About_Us/company_history.asp">History</a></li>
						<li><a href="/About_Us/employee_ownership.asp">Employee Ownership</a></li>
						<li><a href="/About_Us/awards.asp">Awards and Honors</a></li>
						<li><a href="/About_Us/selectedclients.asp">Selected Clients</a></li>
						<li><a href="/About_Us/reachus.asp">Contacts and Locations</a></li>
        </ul>
    </li>
    <li><a href="#">Contracting With Us</a>
    	<ul>
						<li><a href="/contracting/contracting.asp">Contracting Made Simple</a></li>
						<li><a href="/contracting/smallbussub.asp">Small Business Subcontracting</a></li>
						</ul>
                        </li>
             <li><a href="/Employment/">Employment</a>
    	<ul>
						<li><a href="http://careers.mathematica-mpr.com">Career Opportunities</a></li>
						<li><a href="/Employment/parttimedata.asp">P/T Data Collection</a></li>
						<li><a href="/Employment/parttimefield.asp">P/T Field Interviewers</a></li>
						<li><a href="/Employment/diversity.asp">Diversity</a></li>
						<li><a href="/Employment/benefits.asp">Benefits</a></li>
						<li><a href="/Employment/summerfellow.asp">Summer Fellowships</a></li>
						</ul>
                        </li>
                        <li><a href="#">Newsroom</a>
    	<ul>
						<li><a href="/newsroom/releases/index_pr.asp">Current Press Releases</a></li>
						<li><a href="/newsroom/releases/index_cn.asp">Current Company News</a></li>
						<li><a href="/newsroom/releases/archive_pr.asp">Past Press Releases</a></li>
						<li><a href="/newsroom/releases/archive_cn.asp">Past Company News</a></li>
						</ul>
                        </li>
                        <li><a href="#">Out and About</a>                        
                          <ul>
                            <li><a href="/Out_About/Presentations/2010/index.asp">2010 Conferences</a></li>
                            <li><a href="/Out_About/Presentations/2009/index.asp">2009 Conferences</a></li>
                            <li><a href="/Out_About/Presentations/2008/index.asp">2008 Conferences</a></li>
                          </ul>
  </li>
                        <li><a href="/publications/">Publications</a>
    	<ul>
						<li><a href="/publications/">Search</a></li>
						<li><a href="/publications/#help">How to Search</a></li>
						<li><a href="/publications/howtoorder.asp">How to Order</a></li>
						<li><a href="/publications/top5downloads.asp" target="_blank">Top 5 Downloads</a></li>
						</ul>
                        </li>
 <li><a href="#">Research Areas</a>
    	<ul>
						<li><a href="http://www.disabilitypolicyresearch.org/">Disability</a></li>
						<li><a href="/earlychildhood">Early Childhood</a></li>
						<li><a href="/education">Education</a></li>
						<li><a href="/family_support">Family Support</a></li>
                        <li><a href="/health">Health</a></li>
                        <li><a href="/international">International</a></li>
                        <li><a href="/labor">Labor</a></li>
                        <li><a href="/nutrition">Nutrition</a></li>
						</ul>
                        </li>
                        <li><a class="MenuBarItemSubmenu" href="/services/">Services We Provide</a>
              <ul>
                <li><a href="/Services/program_evaluation.asp">Program Evaluation &amp; <br />Policy Research</a></li>
						<li><a href="/Services/data_collection.asp">Survey Design &amp; 
					    Data<br />Collection</a></li>
                        <li><a href="/Services/assessing.asp">Research Assessment &amp;<br />Interpretation </a></li>
						<li><a href="/Services/data_management.asp">Program Performance<br />&amp; Data Management</a></li>
              </ul>
          </li>
  </ul>
			
<!-- End CSS Horizontal Popout Menu -->	
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"/images/no_Image_Spacer.gif", imgRight:"/images/banner/SpryMenuBarRightHover.gif"});
//-->
</script><noscript></noscript>
  &nbsp;</div>
<!-- end hornav -->
<div id="mastSrch"><table width="100%" border="0">

 <tr><td valign="top"><form name="frmSearch" id="frmSearch" method="post" action="/publications/jumpsrch2.aspx">
     
			
	      <label for="txtSearch" accesskey="S" id="lblSearch">Search</label>
				<input name="txtSearch" type="text" id="txtSearch" accesskey="S" maxlength="25" size="10" alt="Search all of www.mathematica-mpr.com. (Access Key: S)" />
				
				<input type="radio" name="rdoSearch" id="rdoPubs" value="publications" checked="checked" size="5" class="input" />
				<label for="rdoPubs" class="rdoSearch">Publications</label>
		        <input type="radio" name="rdoSearch" value="Site" id="rdoSite" class="input" />
	          <label for="rdoSite" class="rdoSearch">Site</label>
		    <input type="image" src="/images/go_button.gif" alt="begin search" onclick="submit();" align="middle" /></form></td>
    <td valign="top">
      <div align="right"><a class="a2a_dd" href="http://www.addtoany.com/share_save?linkname=Mathematica-mpr.com&amp;linkurl=http%3A%2F%2Fwww.mathematica-mpr.com"><img src="http://static.addtoany.com/buttons/favicon.png" width="16" height="16" border="0" alt="Share/Save/Bookmark"/></a><script type="text/javascript">a2a_linkname="Mathematica-mpr.com";a2a_linkurl="http://www.mathematica-mpr.com";a2a_show_title=1;a2a_custom_services=[["Get Our RSS Feed","/publications/rss.asp?name=A2A_LINKNAME_ENC&url=A2A_LINKURL_ENC","/images/banner/rss.jpg"]];</script><noscript></noscript><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script><noscript></noscript>  <a href="javascript:window.print()"><img src="/images/banner/print.gif" alt="Print this page." width="20" height="20" border="0" /></a>
 <a href="/publications/rss.asp"><img src="/images/banner/rss.jpg" alt="Get our RSS Feed" width="34" height="16" border="0" /></a> <a href="/GuestbookV2/"><img src="/images/banner/email.gif" alt="Get Updates via Email" width="24" height="20" border="0" /></a></div></td>
  </tr>
</table>
</div><!-- end search -->

<map name="Map" id="Map">
  <area shape="rect" coords="9,8,141,58" href="/index.asp" alt="Mathematica Policy Research" />
  <area shape="rect" coords="171,4,232,58" href="http://www.disabilitypolicyresearch.org/" alt="Disability" />
<area shape="rect" coords="243,5,304,55" href="/EarlyChildhood/" alt="Early Childhood" />
<area shape="rect" coords="313,5,374,57" href="/Education/" alt="Education" />
<area shape="rect" coords="395,5,450,56" href="/Family_Support/" alt="Family Support" />
<area shape="rect" coords="466,2,526,56" href="/Health/" alt="Health" />
<area shape="rect" coords="541,5,602,57" href="/International/" alt="International" />
<area shape="rect" coords="612,8,675,56" href="/labor/" alt="Labor" />
<area shape="rect" coords="693,6,751,57" href="/Nutrition/" alt="Nutrition" />
</map><form name="aspnetForm" method="post" action="Publications3.aspx" id="aspnetForm">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTI4Mzc2NDU4Nw9kFgJmD2QWAgIGD2QWAgIDD2QWFAIBDxAPFgIeC18hRGF0YUJvdW5kZxYCHgdvbkNsaWNrBRBPbkNoYW5nZVRvcGljKCk7EBULASALRGF0YSBJc3N1ZXMKRGlzYWJpbGl0eQpEaXNhYmlsaXR5D0Vhcmx5IENoaWxkaG9vZAlFZHVjYXRpb24PRmFtaWx5IFN1cHBvcnQgBkhlYWx0aAVMYWJvcg9NaWNyb3NpbXVsYXRpb24JTnV0cml0aW9uFQsBIAExAjQ3AjQ5AjUyATIBNwEzATQBNQE2FCsDC2dnZ2dnZ2dnZ2dnFgFmZAIDDxAPFgIfAGdkEBUsCXh4eHh4eHh4IC1EYXRhIElzc3VlcyBEYXRhIFF1YWxpdHkgYW5kIFJlc2VhcmNoIE1ldGhvZHMURGF0YSBJc3N1ZXMgU2FtcGxpbmceRGF0YSBJc3N1ZXMgU3VydmV5IE1ldGhvZG9sb2d5IkVkdWNhdGlvbiBFYXJseSBDYXJlIGFuZCBFZHVjYXRpb24ORWR1Y2F0aW9uIEstMTIhRWR1Y2F0aW9uIFBvc3RzZWNvbmRhcnkgYW5kIEFkdWx0GEVkdWNhdGlvbiBTY2hvb2wgdG8gV29yaxhIZWFsdGggQmVoYXZpb3JhbCBIZWFsdGgiSGVhbHRoIENocm9uaWMgQ2FyZSBhbmQgRGlzYWJpbGl0eRxIZWFsdGggRGF0YSBmb3IgUG9saWN5bWFraW5nL0hlYWx0aCBIZWFsdGggQ2FyZSBDb3N0cyBhbmQgSW5zdXJhbmNlIENvdmVyYWdlG0hlYWx0aCBIZWFsdGggUHJvZmVzc2lvbmFscxNIZWFsdGggTWFuYWdlZCBDYXJlKkhlYWx0aCBNYXRlcm5hbCBhbmQgQ2hpbGQgSGVhbHRoIGFuZC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vbp1KkIAvbpuE4C9unMpQYC9unQyg4CwYPsjQQCwYPw0gwCwYPE9wcCwYOonA4CwYO8oQECwYOAxgkCwYOUawLBg/iPCwLBg4znDgLBg5CMAQL8qo6jAgL8qpLICgL8qubsDQL8qsqxBAL8qt7WDAL8qqL7BwL8qraADgL8qpqlAQL8qq6cBAL8qrKhDwK4ydvXCgK4ya/8DQK4ybOBBAK4yYemDwK4yevKBwK4yf/vDgK4ycO0AQK4ydfZCQK4yfuwDwK4yc/VBwLT8P1MAtKZjqoHAsqUq4YEAoTU2KoGArbU5/4HAubCtJUGAujS9uIGAr7Tz/IHAtm87YcCAoiBlMgDAqPqsd0NAtKu2J0PAu2X9rIJApzcnPMKAvm48q8NAtGY16sGAteQpJ0KAtKQmJ0KAtCQpJ0KAvDR/8oN+4D6YQMAgBimjWLeyFmkgXEPIiY=" />
        <div id="container">
      <div id="container2"><a name="pagecontent" id="pagecontent"></a>
        <div id="lftColSub">
          
            <script language="JavaScript" type="text/JavaScript">
<!--

function top5(url) {
  window.open(url,"",'height=400,width=500,scrollbars=yes,left=200,top=50');
  
}

// -->
</script>
<h3>Publications</h3>
<ul>
<li><a href="/publications/">Publications Search</a></li>
  <li><a href="/publications/#help">How to Search</a></li>
  <li>
            <a href="/publications/howtoorder.asp">How to Order</a>          </li>
<li>
            <a href="javascript:void(0)" 
onclick="top5('/publications/top5downloads.asp')">Top 5 Downloads</a></li>
</ul>




            <ul><li>&nbsp;</li></ul>
          <p></p>
          <img src="..\images\banner\nav_angle.gif" />
        </div>
        <!-- end left Col -->
        <!-- end rtCol -->
          <div id="pageIntro"> 
            <p> 
<script language="javascript" type="text/javascript">
<!--

function TABLE1_onclick() {

}

// -->
</script>

 <!--  <script type="text/javascript" src="../_jsp/pubscriptsVer2.jsp">
  </script>
   -->
    <table cellSpacing="0" cellPadding="0" border="0" id="TABLE1" language="javascript" onclick="return TABLE1_onclick()">
	<TBODY>
		<TR>
			<td  height="23" width="99%">
                    <h1>
                        <strong>Search Our Publications </strong>
                    </h1>
                </td>
		</TR>
		<TR>
			<TD colspan="2" >
				<DIV align="left">
					<TABLE  cellSpacing="0" cellPadding="4" border="0" id="TABLE2">
						<TBODY>
							<TR>
								<TD vAlign="baseline" noWrap height="23">
									<H3>Topic:</H3>
								</TD>
								<TD vAlign="baseline" noWrap height="23"><FONT face="Arial"><select name="_ctl0:ContentPlaceHolder1:ddlTopic" id="_ctl0_ContentPlaceHolder1_ddlTopic" onClick="OnChangeTopic();" style="width:286px;">
	<option selected="selected" value=" "> </option>
	<option value="1">Data Issues</option>
	<option value="47">Disability</option>
	<option value="49">Disability</option>
	<option value="52">Early Childhood</option>
	<option value="2">Education</option>
	<option value="7">Family Support </option>
	<option value="3">Health</option>
	<option value="4">Labor</option>
	<option value="5">Microsimulation</option>
	<option value="6">Nutrition</option>

</select></FONT>
								</TD>
							</TR>
							<TR>
								<TD vAlign="baseline" noWrap>
									<H3>Subtopic:</H3>
								</TD>
								<TD vAlign="baseline" noWrap><FONT face="Arial"><select name="_ctl0:ContentPlaceHolder1:ddlSubtopic" id="_ctl0_ContentPlaceHolder1_ddlSubtopic" style="width:286px;">
	<option selected="selected" value="xxxxxxxx ">xxxxxxxx </option>
	<option value="39">Data Issues Data Quality and Research Methods</option>
	<option value="40">Data Issues Sampling</option>
	<option value="41">Data Issues Survey Methodology</option>
	<option value="28">Education Early Care and Education</option>
	<option value="29">Education K-12</option>
	<option value="30">Education Postsecondary and Adult</option>
	<option value="31">Education School to Work</option>
	<option value="14">Health Behavioral Health</option>
	<option value="15">Health Chronic Care and Disability</option>
	<option value="16">Health Data for Policymaking</option>
	<option value="17">Health Health Care Costs and Insurance Coverage</option>
	<option value="18">Health Health Professionals</option>
	<option value="19">Health Managed Care</option>
	<option value="20">Health Maternal and Child Health and SCHIP</option>
	<option value="21">Health Medicaid Reform</option>
	<option value="22">Health Miscellaneous</option>
	<option value="23">Health New Medicare Initiatives</option>
	<option value="24">Health Postacute Care</option>
	<option value="25">Health Public Health and Prevention</option>
	<option value="26">Health Quality of Care and Access</option>
	<option value="27">Health Rural Health Care</option>
	<option value="8">Labor Disability</option>
	<option value="9">Labor Labor Markets</option>
	<option value="10">Labor Pension Benefits</option>
	<option value="11">Labor Quality Assurance</option>
	<option value="12">Labor Reemployment and Unemployment Insurance</option>
	<option value="13">Labor Youth Employment</option>
	<option value="32">Nutrition Elderly Nutrition</option>
	<option value="33">Nutrition Food Stamps</option>
	<option value="34">Nutrition Nutrition Programs</option>
	<option value="46">Nutrition School Nutrition</option>
	<option value="35">Family Support  Service Delivery and Integration</option>
	<option value="36">Family Support  Teenage Parents</option>
	<option value="37">Family Support  Welfare Reform</option>
	<option value="38">Family Support  Welfare to Work</option>
	<option value="50">Disability Adults of All Ages</option>
	<option value="51">Disability Children/Youth with Disabilities</option>
	<option value="48">Disability Collecting/Improving Data</option>
	<option value="53">Early Childhood Child Assessment</option>
	<option value="54">Early Childhood Child Care/Quality</option>
	<option value="55">Early Childhood Dual Language Learners</option>
	<option value="56">Early Childhood Early Care/Education</option>
	<option value="57">Early Childhood Head Start/Early Head Start</option>

</select></FONT></TD>
							</TR>
							<TR>
								<TD vAlign="baseline" noWrap>
									<H3>Title:</H3>
								</TD>
								<TD vAlign="baseline" noWrap><FONT face="Arial"><input name="_ctl0:ContentPlaceHolder1:txtTitle" type="text" id="_ctl0_ContentPlaceHolder1_txtTitle" style="width:286px;" /></FONT></TD>
							</TR>
							 <tr>
                        <td nowrap="nowrap" valign="baseline">
                            <h3>
                                Include:</h3>
                        </td>
                        <td>
                        <table id="_ctl0_ContentPlaceHolder1_cblKeywords" border="0" style="font-family:Arial;font-size:XX-Small;">
	<tr>
		<td><input id="_ctl0_ContentPlaceHolder1_cblKeywords_0" type="checkbox" name="_ctl0:ContentPlaceHolder1:cblKeywords:0" /><label for="_ctl0_ContentPlaceHolder1_cblKeywords_0">Keywords</label></td><td><input id="_ctl0_ContentPlaceHolder1_cblKeywords_1" type="checkbox" name="_ctl0:ContentPlaceHolder1:cblKeywords:1" /><label for="_ctl0_ContentPlaceHolder1_cblKeywords_1">Description</label></td><td></td>
	</tr>
</table></td>
                    </tr>
							<TR>
								<TD vAlign="baseline" noWrap>
									<H3>Author:</H3>
								</TD>
								<TD vAlign="baseline" noWrap><FONT face="Arial"><input name="_ctl0:ContentPlaceHolder1:txtAuthor" type="text" id="_ctl0_ContentPlaceHolder1_txtAuthor" style="width:286px;" /></FONT></TD>
							</TR>
							<TR>
								<TD vAlign="baseline" noWrap>
									<H3>Publication Date:</H3>
								</TD>
								<TD vAlign="baseline" noWrap><FONT face="Arial">&nbsp;
										<select name="_ctl0:ContentPlaceHolder1:ddlPubDateQualifier" id="_ctl0_ContentPlaceHolder1_ddlPubDateQualifier">
	<option value="Before">Before</option>
	<option value="During">During</option>
	<option selected="selected" value="After">After</option>

</select>&nbsp;&nbsp;&nbsp;
										<select name="_ctl0:ContentPlaceHolder1:ddlPubDateMonth" id="_ctl0_ContentPlaceHolder1_ddlPubDateMonth">
	<option selected="selected" value="this year">this year</option>
	<option value="January">January</option>
	<option value="February">February</option>
	<option value="March">March</option>
	<option value="April">April</option>
	<option value="May">May</option>
	<option value="June">June</option>
	<option value="July">July</option>
	<option value="August">August</option>
	<option value="September">September</option>
	<option value="October">October</option>
	<option value="November">November</option>
	<option value="December">December</option>

</select>&nbsp;&nbsp;
										<select name="_ctl0:ContentPlaceHolder1:ddlPubDateYear" id="_ctl0_ContentPlaceHolder1_ddlPubDateYear">
	<option selected="selected" value="1967">1967</option>
	<option value="1968">1968</option>
	<option value="1969">1969</option>
	<option value="1970">1970</option>
	<option value="1971">1971</option>
	<option value="1972">1972</option>
	<option value="1973">1973</option>
	<option value="1974">1974</option>
	<option value="1975">1975</option>
	<option value="1976">1976</option>
	<option value="1977">1977</option>
	<option value="1978">1978</option>
	<option value="1979">1979</option>
	<option value="1980">1980</option>
	<option value="1981">1981</option>
	<option value="1982">1982</option>
	<option value="1983">1983</option>
	<option value="1984">1984</option>
	<option value="1985">1985</option>
	<option value="1986">1986</option>
	<option value="1987">1987</option>
	<option value="1988">1988</option>
	<option value="1989">1989</option>
	<option value="1990">1990</option>
	<option value="1991">1991</option>
	<option value="1992">1992</option>
	<option value="1993">1993</option>
	<option value="1994">1994</option>
	<option value="1995">1995</option>
	<option value="1996">1996</option>
	<option value="1997">1997</option>
	<option value="1998">1998</option>
	<option value="1999">1999</option>
	<option value="2000">2000</option>
	<option value="2001">2001</option>
	<option value="2002">2002</option>
	<option value="2003">2003</option>
	<option value="2004">2004</option>
	<option value="2005">2005</option>
	<option value="2006">2006</option>
	<option value="2007">2007</option>
	<option value="2008">2008</option>
	<option value="2009">2009</option>
	<option value="2010">2010</option>

</select></FONT></TD>
							</TR>
							<TR>
								<TD vAlign="baseline" noWrap>
									<H3>Sort by:</H3>
								</TD>
								<TD vAlign="baseline" noWrap><table id="_ctl0_ContentPlaceHolder1_rblSortBy" border="0" style="font-family:Arial;font-size:XX-Small;">
	<tr>
		<td><input id="_ctl0_ContentPlaceHolder1_rblSortBy_0" type="radio" name="_ctl0:ContentPlaceHolder1:rblSortBy" value="Most Recent First" checked="checked" /><label for="_ctl0_ContentPlaceHolder1_rblSortBy_0">Most Recent First</label></td><td><input id="_ctl0_ContentPlaceHolder1_rblSortBy_1" type="radio" name="_ctl0:ContentPlaceHolder1:rblSortBy" value="Oldest First" /><label for="_ctl0_ContentPlaceHolder1_rblSortBy_1">Oldest First</label></td><td><input id="_ctl0_ContentPlaceHolder1_rblSortBy_2" type="radio" name="_ctl0:ContentPlaceHolder1:rblSortBy" value="Author" /><label for="_ctl0_ContentPlaceHolder1_rblSortBy_2">Author</label></td>
	</tr>
</table></TD>
							</TR>
							<TR>
								<TD vAlign="baseline" noWrap>
									<H3>
										Show:<BR>
									</H3>
								</TD>
								<TD vAlign="baseline" noWrap><span style="font-family:Arial;font-size:XX-Small;"><input id="_ctl0_ContentPlaceHolder1_cbNoAnnotations" type="checkbox" name="_ctl0:ContentPlaceHolder1:cbNoAnnotations" checked="checked" /><label for="_ctl0_ContentPlaceHolder1_cbNoAnnotations">Annotations</label></span><span style="font-family:Arial;font-size:XX-Small;"><input id="_ctl0_ContentPlaceHolder1_cbOnlineOnly" type="checkbox" name="_ctl0:ContentPlaceHolder1:cbOnlineOnly" /><label for="_ctl0_ContentPlaceHolder1_cbOnlineOnly">On-line Publications Only</label></span></TD>
							</TR>
							<TR>
								<TD vAlign="top" noWrap>
									<H3>Search Only:</H3>
								</TD>
								<TD vAlign="top" noWrap>
									<table id="_ctl0_ContentPlaceHolder1_cblOnly" border="0" style="font-family:Arial;font-size:XX-Small;">
	<tr>
		<td><input id="_ctl0_ContentPlaceHolder1_cblOnly_0" type="checkbox" name="_ctl0:ContentPlaceHolder1:cblOnly:0" /><label for="_ctl0_ContentPlaceHolder1_cblOnly_0">Issue/Policy Briefs</label></td><td><input id="_ctl0_ContentPlaceHolder1_cblOnly_1" type="checkbox" name="_ctl0:ContentPlaceHolder1:cblOnly:1" /><label for="_ctl0_ContentPlaceHolder1_cblOnly_1">Journal Articles</label></td><td><input id="_ctl0_ContentPlaceHolder1_cblOnly_2" type="checkbox" name="_ctl0:ContentPlaceHolder1:cblOnly:2" /><label for="_ctl0_ContentPlaceHolder1_cblOnly_2">Executive Summaries</label></td>
	</tr><tr>
		<td><input id="_ctl0_ContentPlaceHolder1_cblOnly_3" type="checkbox" name="_ctl0:ContentPlaceHolder1:cblOnly:3" /><label for="_ctl0_ContentPlaceHolder1_cblOnly_3">Testimony</label></td><td><input id="_ctl0_ContentPlaceHolder1_cblOnly_4" type="checkbox" name="_ctl0:ContentPlaceHolder1:cblOnly:4" /><label for="_ctl0_ContentPlaceHolder1_cblOnly_4">Project Reports</label></td><td><input id="_ctl0_ContentPlaceHolder1_cblOnly_5" type="checkbox" name="_ctl0:ContentPlaceHolder1:cblOnly:5" /><label for="_ctl0_ContentPlaceHolder1_cblOnly_5">Presentations</label></td>
	</tr><tr>
		<td><input id="_ctl0_ContentPlaceHolder1_cblOnly_6" type="checkbox" name="_ctl0:ContentPlaceHolder1:cblOnly:6" /><label for="_ctl0_ContentPlaceHolder1_cblOnly_6">Data Sets</label></td><td></td><td></td>
	</tr>
</table></TD>
							</TR>
							<TR>
								<TD vAlign="baseline" noWrap>
									<!-- <H3>Keywords:</H3>-->
								</TD>
								<TD vAlign="baseline" noWrap></TD>
							</TR>
							<TR>
								<TD vAlign="baseline" noWrap colspan="2">
									<span id="_ctl0_ContentPlaceHolder1_lblErrorMsg"></span></TD>
							</TR>
							<TR>
								<TD vAlign="baseline" noWrap><FONT face="Arial"><BR>
										<input type="submit" name="_ctl0:ContentPlaceHolder1:btnSearch" value="Search Now!" id="_ctl0_ContentPlaceHolder1_btnSearch" /></FONT></TD>
								<TD vAlign="baseline" noWrap><FONT face="Arial"><BR>
										<input type="submit" name="_ctl0:ContentPlaceHolder1:btnReset" value="Reset Form" id="_ctl0_ContentPlaceHolder1_btnReset" />&nbsp;&nbsp;&nbsp;
										</FONT></TD>
							</TR>
							<TR>
								<TD vAlign="baseline" noWrap colSpan="2"><BR>
									<H3>Display&nbsp;
										<select name="_ctl0:ContentPlaceHolder1:ddlPubsPerPage" id="_ctl0_ContentPlaceHolder1_ddlPubsPerPage" style="width:54px;">
	<option selected="selected" value="25">25</option>
	<option value="50">50</option>
	<option value="75">75</option>
	<option value="100">100</option>

</select>&nbsp;&nbsp;&nbsp;&nbsp;publications at a time</H3>
								</TD>
							</TR>
							<TR>
								<TD vAlign="baseline" colSpan="2">
									<P><a name="Help"></a>&nbsp;</P>
								</TD>
							</TR>
						</TBODY></TABLE>
				</DIV>
				<DIV></DIV>
			</TD>
		</TR>
	</TBODY>
	</table>
	
</p>
            <p><a name="Help" id="Help"></a>You can search on as many or as few of the above search fields as desired. When you search on more than one field, publications that   meet all of the criteria you have specified will be displayed. For Title and/or   Author, any search term that contains blank spaces must be enclosed in quotes.   You can also connect search terms with the Boolean expressions AND, OR, and NOT.   (Click <a href="boolean.asp" target="_blank">here</a> for an explanation of   Boolean searches.) Do not use commas in your search terms. Click <a href="MasterList.aspx">here</a> to view a complete list of publications. (Note: <em>This may take several minutes to load depending on connection speed.</em>)</p>
            <p>For additional help in locating or ordering publications, please call <a id="HyperLink2" href="mailto:jallen@mathematica-mpr.com">Jackie Allen</a>,   609-275-2350, in our Princeton Office.</p>
            </div>
          <p>&nbsp;</p>
        </div>
        <!-- end highlights -->
      </div><!-- end Content --><!-- end Container2 -->

  <div id="footer">
  <div id="footertxt" >
  <a href="/About_Us/mission.asp" class="footerLG">Improving public well-being by conducting high-quality, objective research and data collection.</a><br />
&copy; 2010 Mathematica Policy Research, P.O. Box 2393,   Princeton, NJ 08543-2393<br />
    Phone: (609) 799-3535 Fax: (609)   799-0005<br />
    Email comments or questions to <a href="mailto:info@mathematica-mpr.com">info@mathematica-mpr.com</a>.
    <p>Mathematica<sup>&reg;</sup> is a registered trademark of Mathematica Policy Research, Inc.</p>
</div></div><!-- end Footer -->
</td>
<td>&nbsp;</td>
  </tr>
</table>


<script type="text/javascript">
<!--
OnInitial();// -->
</script>
</form>
</body>
</html>

Open in new window

I’m a software engineer, tech enthusiast and UI/UX lover.
Commented:
from the code you indicated that the id of the dropdown is "ddlSubtopic"

use this code
var x = document.getElementById("<%= ddlSubtopic.ClientID %>").options.length


note: ddlSubtopic is case sensitive for c# applications, so ddlSubtopic is not the same as ddlSubTopic

Author

Commented:
Bingo.  The capitalization was the issue.  Thanks!