<option <% If CStr(rsPages("page_number")) = CStr(lngPageNumber) Then Response.Write "selected" End If %> value="<%=rsPages("page_number")%>"><%=strPage%></option>
<%
End If
rsPages.MoveNext
Loop
'If the page to be moved is the last page in the survey, do not display the "move to end of survey" choice
If CStr(lngLastPageNumber) <> CStr(lngPageNumber) Then