{**************************************}
{******* $name must be set!! **********}
{******* $control must be set!! *******}

{if !$id}
	{assign var=id value=".:id:."}
{/if}

<table cellpadding="0" cellspacing="0" style="border:1px dashed #888;">
	<tr>
		<td>
			&nbsp;
		</td>
		<td>
			<input
				type="checkbox"
				name="{$control}{$id}[{$name}][top]"
				id="{$name}_top"
				class="noBorder"
				onclick="setPreviewBorder($(this).up('table'),'top',$F(this));"
				{if $data[$name].top} checked="checked" {/if}
			/>
		</td>
		<td>
			&nbsp;
		</td>
	</tr>

	<tr>
		<td>
			<input
				type="checkbox"
				name="{$control}{$id}[{$name}][left]"
				id="{$name}_left"
				class="noBorder"
				onclick="setPreviewBorder($(this).up('table'),'left',$F(this));"
				{if $data[$name].left} checked="checked" {/if}
			/>
		</td>
		<td>
			<input
				type="checkbox"
				name="{$control}{$id}[{$name}][all]"
				id="{$name}_all"
				class="noBorder"
				onclick="changePreviewBorders('{$control}{$id}','{$name}',this);"
			/>
		</td>
		<td>
			<input
				type="checkbox"
				name="{$control}{$id}[{$name}][right]"
				id="{$name}_right"
				class="noBorder"
				onclick="setPreviewBorder($(this).up('table'),'right',$F(this));"
				{if $data[$name].right} checked="checked" {/if}
			/>
		</td>
	</tr>
	<tr>
		<td>
			&nbsp;
		</td>
		<td>
			<input
				type="checkbox"
				name="{$control}{$id}[{$name}][bottom]"
				id="{$name}_bottom"
				class="noBorder"
				onclick="setPreviewBorder($(this).up('table'),'bottom',$F(this));"
				{if $data[$name].bottom} checked="checked" {/if}
			/>
		</td>
		<td>
			&nbsp;
		</td>
	</tr>
</table>