	<!-- central part -->
		<div style="width:100%;">
		<!-- header -->
		<h2>{$form.top_header}</h2>
		<div class="sep"></div>
		<dl><dd colspan=2 class="text">{$form.comment}<br>&nbsp;</dd></dl>
		<dl id="err" {if $form.err} style="display:block;" {else} style="display:none;" {/if}><dd colspan=2 style="padding-{$default_left}:5px;"><font class="error_msg">*&nbsp;{$form.err}</font><br>&nbsp;</dd></dl>
		<dl><dd colspan=2>
			<form action="{$form.action}" method="post" name="mailbox_write">
			{$form.hidden}
			<!-- write form -->
			<div>
			<dl>
				<dt style="height:35px;width:auto;" class="text_head">{$lang.mailbox.to}:&nbsp;&nbsp;&nbsp;</dt>
				<dd style="height:35px; text-align:right;" align={$default_left}><input type="text" style="width: 400px" name="to" value="{$data.to}"></dd>
			</dl>
			<dl>
				<dt style="height:35px;width:auto;" class="text_head">{$lang.mailbox.subject}:&nbsp;&nbsp;&nbsp;</dt>
				<dd style="height:35px; text-align:right;" align={$default_left}><input type="text" style="width: 400px" name="subject" value="{$form.subject}"></dd>
			</dl>
			<dl>
				<dt style="height:35px;width:auto;">&nbsp;</dt>
				<dd style="text-align:right;" align={$default_left}><textarea id='body' name=body cols=70 rows=15  style="width: 400px">{$form.body}</textarea><br></dd>
			</dl>
			<dl style="padding-top:10px;">
				<dt style="height:35px;width:auto;">&nbsp;</dt>
				<dd style="float:right;" align={$default_left}>
					<input type="hidden" name="send" value=1>
					<input type="button" class="button" onclick="javascript: Mailbox();" value="{$lang.button.send}">
					<input type="button" class="button" onclick="javascript: $('#mask').hide(); $('.window').hide();" value="{$lang.button.close}">
				</dd>
			</div>
			<!-- /write form -->
			</form>
		</dd></dl>
		</div>
	</td>
	{literal}
	<script type="text/javascript">
	function Mailbox() {
		sel = $("#sel").val();
		id_user = $("#id_user").val();
		to = $('input:text[name=to]').val();
		subject = $('input:text[name=subject]').val();
		body = $('#body').val();
		$.post(SEO_SITE_ROOT+"/send_friend.php",{sel:sel,id_user:id_user,to:to,subject:subject,body:body,ajax:1},
			function(data) {
				$("#err").css("display","block"),
				$(".error_msg").html('*&nbsp;'+data);
			}
		);
	}
	</script>
	{/literal}
	<!-- /central part -->