<div class="actionPanelLeft">
	<div class="actionPanelRight p16">
		<div id="actionTop" class="right">
			<div class="button actionNext">
				<div class="buttonRight">
					<div class="buttonMiddle">{rs:NEXT}</div>
				</div>
			</div>
			<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></div>
		</div>
	</div>
</div>
<div class="middleLeft">
	<div class="middleRight p16">
		{ERROR}
		<form method="post" enctype="multipart/form-data" id="editForm">
		<table width="100%" cellspacing="0" cellpadding="5" border="0">
		<tr class="line">
		<td><img src="{global:PATH}img/spacer.gif" width="20" height="1" border="0" alt=""></td>
		<td><div class="labelBox">{rs:FILE_TO_IMPORT}:</div></td>
		<td><input type="file" name="r[file]" class="file"></td>
		</tr>

		<tr class="line">
		<td><input type="checkbox" name="r[put_header]" value="1"{if:put_header} checked{/if}></td>
		<td colspan="2"><div class="labelBox">{rs:PUT_HEADER}</div></td>
		</tr>

		<tr>
		<td><img src="{global:PATH}img/spacer.gif" width="20" height="1" border="0" alt=""></td>
		<td colspan="2"><div class="labelBox">{rs:CVS_FORMAT}</td></td>
		</tr>

		<tr class="line">
		<td><img src="{global:PATH}img/spacer.gif" width="20" height="1" border="0" alt=""></td>
		<td colspan="2">
			<table cellspacing="0" cellpadding="0" border="0">
			<tr class="noline">
			<td>{rs:DELIMITER}:</td>
			<td><img src="{global:PATH}img/spacer.gif" width="10" height="32" border="0" alt=""></td>
			<td><div class="inputBox small"><input type="text" name="r[delimiter]" value="{delimiter}"></div></td>
			</tr>
			<tr class="noline">
			<td>{rs:ENCLOSURE}:</td>
			<td><img src="{global:PATH}img/spacer.gif" width="10" height="32" border="0" alt=""></td>
			<td><div class="inputBox small"><input type="text" name="r[enclosure]" value="{enclosure}"></div></td>
			</tr>
			</table>
		</td>
		</tr>

		<tr>
		<td><img src="{global:PATH}img/spacer.gif" width="20" height="1" border="0" alt=""></td>
		<td><img src="{global:PATH}img/spacer.gif" width="200" height="1" border="0" alt=""></td>
		<td width="100%"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" alt=""></td>
		</tr>
		</table>
		<input type="hidden" name="save" value="1" class="hidden">
		</form>
		<div class="info">{rs:INFO_EXPORT}</div>
	</div>
</div>
<div class="actionPanelLeft">
	<div class="actionPanelRight">
		<div class="actionPanelBottom">
			<div class="actionPanelBottomLeft">
				<div class="actionPanelBottomRight p16">
					<div id="actionBottom" class="right">
						<div class="button actionNext">
							<div class="buttonRight">
								<div class="buttonMiddle">{rs:NEXT}</div>
							</div>
						</div>

						<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script>
	$(".actionNext").click(function() {
		$("#editForm").submit();
	});
	$("#editForm").keydown(function(event) {
  		if (event.keyCode == '13' && event.target.nodeName!='TEXTAREA') $(".actionNext").triggerHandler('click');
	});
</script>
