<div class="middleLeft">
	<div class="middleRight p16">
		{MESSAGE}
		<form method="post" enctype="multipart/form-data" id="editForm">
		<div class="labelBox">{rs:CONTENT}:</div>
		<div class="textareaBox"><textarea name="r[description]" class="big" rows="40">{description}</textarea></div>
		<div id="variablesBox">
			<span id="variablesButton">{rs:LIST_OF_VARIABLES}</span>
			<div id="variablesList">
				<table cellspacing="0" cellpadding="0" border="0">
				<tr>
				<td valign="top"><div class="label">%form%</div></td>
				<td valign="top"><div class="value">{rs:TITLE_SUBSCRIPTION_FORM}</div></td>
				</tr>
				</table>
			</div>
		</div>

		<input type="hidden" name="save" value="1" class="hidden">
		</form>
		<div><img src="{global:PATH}img/spacer.gif" width="1" height="10" border="0" /></div>
		<div class="info">{rs:INFO_SUBSCRIPTION_PAGE}</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 actionSave">
							<div class="buttonRight">
								<div class="buttonMiddle">{rs:ACTION_SAVE}</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 language="JavaScript">
	$(".actionSave").click(function() {
		$("#editForm").submit();
	});
	$("#variablesButton").click(function() {
		$("#variablesList").slideToggle('fast');
	});
	$("#editForm").keydown(function(event) {
  		if (event.keyCode == '13' && event.target.nodeName!='TEXTAREA') $(".actionSave").triggerHandler('click');
	});
</script>
