<div class="BodyContainer">

	<script type="text/javascript">
		function CheckForm(f)
		{
			if (f.csvfile.value.length == 0) {
				alert('%%LNG_SelectFileForUpload%%');
				return false;
			}

			if (document.getElementById('category').selectedIndex == -1) {
				alert('%%LNG_ImportSelectCategory%%');
				return false;
			}
		}

		function Cancel()
		{
			if (confirm('%%LNG_ConfirmQuestionImportCancel%%')) {
				document.location = '%%GLOBAL_pathToKB%%/admin/index.php?ToDo=viewQuestions';
			}
		}
	</script>

	<form method="post" onsubmit="return CheckForm(this);" action="%%GLOBAL_FormAction%%" enctype="multipart/form-data">
	<table class="OuterPanel" cellspacing="0" width="100%" border="0" cellpadding="0" border="0">
	<tr>
		<td class="Heading1">%%LNG_ImportQuestions%% (Step 1 of 3)</td>
	</tr>
	<tr>
		<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td class="Intro">
					<div>
					%%LNG_ImportQuestionsIntro%%
					</div>
				</td>
			</tr>
			<tr>
				<td>
					%%GLOBAL_Message%%
				</td>
			</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td align="left">
			<table width="100%" class="panel">
			<tr>
				<td colspan="2" class="Heading2">%%LNG_ImportQuestions%%</td>
			</tr>
			<tr>
				<td width="200" class="FieldLabel" valign="top">
					<span class="required">*</span> %%LNG_Category%%:
				</td>
				<td>
					<select name="category[]" id="category" size="10" multiple class="Field300">
					%%GLOBAL_CategoryList%%
					</select>
					<img onmouseout="HideHelp(this)" onmouseover="ShowHelp(this, '%%LNG_ImportCategory%%', '%%LNG_ImportCategoryHelp%%')" src="images/help.gif" width="24" height="16" border="0" alt="help" align="top">
				</td>
			</tr>
			<tr>
				<td class="FieldLabel">
					<span class="required">*</span> %%LNG_FileToImport%%:
				</td>
				<td>
					<input type="file" name="csvfile" value="" class="Field">
					<img onmouseout="HideHelp(this)" onmouseover="ShowHelp(this, '%%LNG_ImportFile%%', '%%LNG_ImportFileHelp%%')" src="images/help.gif" width="24" height="16" border="0" alt="help" align="top">
				</td>
			</tr>
			<tr>
				<td class="FieldLabel">
					%%LNG_ContainsHeaders%%
				</td>
				<td valign="top">
					<input type="checkbox" name="headers" value="1" checked>
					%%LNG_YesImportContainsHeaders%%
					<img onmouseout="HideHelp(this)" onmouseover="ShowHelp(this, '%%LNG_ImportContainsHeaders%%', '%%LNG_ImportContainsHeadersHelp%%')" src="images/help.gif" width="24" height="16" border="0" alt="help" align="bottom">
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>
					<input type="submit" value="%%LNG_Next%%" class="formbutton">
					<input type="button" value="%%LNG_Cancel%%" class="formbutton" onclick="Cancel();">
				</td>
			</tr>
			</table>
		</td>
	</tr>
	</table>
	</form>

</div>