	<script type="text/javascript">
		function updateBlockVars(obj) {
			if (!document.getElementById('scriptvars').value) {
				varLoadHTML("document.getElementById('scriptvars').innerHTML", '{C_SITE.REL_URL}runscript.php/blocks/getvars?block='+escape(obj.value)+'&html=1');
			}
		}
	</script>
	<form action="{C_SITE.REL_URL}modules/blocks/main.act.php" method="post">
		<input type="hidden" name="id" value="{V_ID}" />
		<input type="hidden" name="action" value="{V_ACTION}" />
		<input type="hidden" name="auth" value="{C_AUTH_STR}" />
		<table class="skeleton">
			<tr>
				<td>
					{L_ICON}:<br />
					<div style="text-align:center">
						{V_ICON.CHOOSER}
					</div>
				</td>
				<td>
					{L_POSITION}:<br />
					{V_POSITION.SEL}
				</td>
				<td>
					{L_ORDER}:<br />
					{V_ORDER.SEL}
				</td>
			</tr>
			<tr>
				<td>
					{L_BLOCKCLASS}:<br />
					{V_BLOCKCLASS.SEL}
				</td>
				<td>
					{L_STATUS}:<br />
					{V_STATUS.SEL}
				</td>
				<td>
					{L_AUTH_ACCESS}:<br />
					<input class="text" type="text" readonly="readonly" onclick="groupChooser(this, true)" name="auth_access" value="{V_AUTH_ACCESS}" />
				</td>
			</tr>
			<tr>
				<td colspan="4">

					{L_TITLE}*:<br />
					<input class="text" type="text" name="title" maxlength="64" value="{V_TITLE}" /><br />

					{L_CONTENT}*:<br/>
					{V_RTBEDITOR}

					<h3>{L_ADVANCED}</h3>
					<div id="blockAdvanced" style="display:block">
						{L_MODULES}*:<br />
						{V_MODULES}<br /><br />

						{L_CSSTEXT}:<br/>
						<textarea name="csstext" cols="40" rows="4">{V_CSSTEXT}</textarea><br />

						<h4>{L_BLOCKSCRIPT}</h4>

						{L_SCRIPTPATH}:<br />
						<select name="scriptpath" onchange="updateBlockVars(this)">
						{V_SCRIPTPATH.SEL}<br />
						</select><br />

						{L_SCRIPTVARS}:<br/>
						<div class="tbox1">
						<span class="whisper">
						<div id="scriptvars">{V_SCRIPTVARS}</div>
						</span>
						</div>
					</div>
					<button type="button" onclick="triggerDisplay('blockAdvanced')">{L_ADVANCED_MODE}</button>

					<div class="buttons">{B_RESET} {B_SUBMIT}</div>
				</td>
			</tr>
		</table>
		<input type="hidden" name="return" value="{V_RETURN}" />
	</form>