<form method=post name=form action="{{ php_self }}?action=send">
<input type="hidden" name="title" value="{{ title }}">
<input type="hidden" name="to_username" value="{{ to_username }}">
<div class="pm-page">
	<header class="sub-title"><h1>{{ lang['pm:pm'] }}</h1></header>
	<ul class="pm-menu">
		<li><a href="{{ pm_inbox_link }}">{{ lang['pm:inbox'] }}</a></li>
		<li><a href="{{ pm_outbox_link }}">{{ lang['pm:outbox'] }}</a></li>
		<li><a href="{{ pm_set_link }}">{{ lang['pm:set'] }}</a></li>
	</ul>
	<div class="form-wrap">
		<div class="form-textarea">
			<div class="bb-editor">{{ quicktags }}<textarea onkeypress="if(event.keyCode==10 || (event.ctrlKey && event.keyCode==13)) {add_comment();}" name="content" id="pm_content"></textarea></div>
		</div>
		<div class="form-checks">
			<input name="saveoutbox" type="checkbox"/> 
			<label>{{ lang['pm:saveoutbox'] }}</label>
		</div>
	</div>
	<div class="form-submit" style="margin-top:10px;">
		<button type="submit">{{ lang['pm:send'] }}</button></form>
	</div>
</div>