<%@ Language=JScript %>
<HTML>
	<HEAD>
		<title>Create New Survey - Step 2</title>
		<LINK rel="stylesheet" type="text/css" href="survey.css">
	</HEAD>
	<BODY>
		<%

var numberOfOptions:int=parseInt(Request.Form("selOptions"),10);
var surveyQuestion:String=Request.Form("txtSQ");
var surveyStartDate:String=Request.Form("dtStart");
var surveyExpireDate:String=Request.Form("dtEnd");


%>
		<H2 class="pageTitle">
			Set Survey Options
		</H2>
		<p>
			Use this form to enter the Survey options for the quesiton you entered. The 
			Survey Question appears below...
		</p>
		<table border="1" cellpadding="5">
			<tr>
				<td>
					<b>Question:</b>
				</td>
				<td>
					<%=surveyQuestion%>
				</td>
			</tr>
		</table>
		<br>
		<h3 class="stepNumber">
			Step 2
		</h3>
		<p>
			Enter Survey Options:
		</p>
		<br>
		<form action="generateSurvey.aspx" method="post">
			<table width="50%">
				<%

var optionIndex:int;
for(optionIndex=0;optionIndex<numberOfOptions;optionIndex++) {
%>
				<tr>
					<td class="fieldLabel">
						Survey Option
						<%=optionIndex+1%>
						:
					</td>
					<td>
						<input type="text" name='<%= "txtSurveyOption" + optionIndex %>' size="40" maxlength="40">
					</td>
				</tr>
				<%
}
%>
			</table>
			<input type="hidden" name="selOptions" value="<%=numberOfOptions%>"> <input type="hidden" name="txtSQ" value="<%=surveyQuestion%>">
			<input type="hidden" name="dtStart" value="<%=surveyStartDate%>"> <input type="hidden" name="dtEnd" value="<%=surveyExpireDate%>">
			<br>
			<input type="submit" value="Submit">
		</form>
	</BODY>
</HTML>
