<script language="JavaScript" type="text/javascript">
<!--
// Helpline messages
b_help = "{L_BBCODE_B_HELP}";
i_help = "{L_BBCODE_I_HELP}";
u_help = "{L_BBCODE_U_HELP}";
q_help = "{L_BBCODE_Q_HELP}";
c_help = "{L_BBCODE_C_HELP}";
l_help = "{L_BBCODE_L_HELP}";
o_help = "{L_BBCODE_O_HELP}";
p_help = "{L_BBCODE_P_HELP}";
w_help = "{L_BBCODE_W_HELP}";
a_help = "{L_BBCODE_A_HELP}";
s_help = "{L_BBCODE_S_HELP}";
f_help = "{L_BBCODE_F_HELP}";

function checkForm() {

	formErrors = false;    

	if (document.post.message.value.length < 2)
	{
		formErrors = "{L_EMPTY_MESSAGE}";
	}

	if (formErrors) {
		alert(formErrors);
		return false;
	} else {
		bbstyle(-1);
		//formObj.preview.disabled = true;
		//formObj.submit.disabled = true;
		return true;
	}
}
//-->
</script>
<script language="JavaScript" src="templates/Bones/posting.js"></script>

<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">

<!-- BEGIN switch_not_privmsg --> 
<div class="navrow">
	<a href="{U_VIEW_FORUM}">{FORUM_NAME}</a>
</div>
<!-- END switch_not_privmsg -->

{POST_PREVIEW_BOX}
{ERROR_BOX}

<div class="box">
	<div class="secthead">
		{L_POST_A}
	</div>
	<!-- BEGIN switch_username_select -->
	<div class="row1">
		{L_USERNAME}:
		<input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="{USERNAME}" />
	</div>
	<!-- END switch_username_select -->
	<!-- BEGIN switch_privmsg -->
	<div class="row1">
		{L_USERNAME}:
		<input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" />
		<input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="button" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" />
	</div>
	<!-- END switch_privmsg -->
	<div class="row1">
		{L_SUBJECT}:
		<input type="text" name="subject" size="45" maxlength="60" style="width: 250px" tabindex="2" class="post" value="{SUBJECT}" />
	</div>
	<div class="row1">
		<textarea name="message" rows="15" cols="35" wrap="virtual" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>
		<br />
		<input type="text" name="helpbox" size="45" maxlength="100" class="helpline" value="{L_STYLES_TIP}" />
		&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="button" class="bbcode" accesskey="w" name="addbbcode-1" value="{L_BBCODE_CLOSE_TAGS}" style="width: 81px; font-size: 0.8em;" onClick="bbstyle(-1)" onMouseOver="helpline('a')" />
		<br />

		<div class="boxbbcode">
			<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
				<option style="color:black;" value="{T_FONTCOLOR1}">{L_FONT_COLOR}</option>
				<option style="color:darkred; background-color: white;" value="darkred">{L_COLOR_DARK_RED}</option>
				<option style="color:red; background-color: white;" value="red">{L_COLOR_RED}</option>
				<option style="color:orange; background-color: white;" value="orange">{L_COLOR_ORANGE}</option>
				<option style="color:brown; background-color: white;" value="brown">{L_COLOR_BROWN}</option>
				<option style="color:yellow; background-color: black;" value="yellow">{L_COLOR_YELLOW}</option>
				<option style="color:green; background-color: white;" value="green">{L_COLOR_GREEN}</option>
				<option style="color:olive; background-color: white;" value="olive">{L_COLOR_OLIVE}</option>
				<option style="color:cyan; background-color: black;" value="cyan">{L_COLOR_CYAN}</option>
				<option style="color:blue; background-color: white;" value="blue">{L_COLOR_BLUE}</option>
				<option style="color:darkblue; background-color: white;" value="darkblue">{L_COLOR_DARK_BLUE}</option>
				<option style="color:indigo; background-color: white;" value="indigo">{L_COLOR_INDIGO}</option>
				<option style="color:violet; background-color: white;" value="violet">{L_COLOR_VIOLET}</option>
				<option style="color:white; background-color: black;" value="white">{L_COLOR_WHITE}</option>
				<option style="color:black; background-color: white;" value="black">{L_COLOR_BLACK}</option>
			</select>

			<input type="button" class="bbcode" accesskey="b" name="addbbcode0" value="B" style="font-weight: bold; width: 20px;" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
			<input type="button" class="bbcode" accesskey="i" name="addbbcode2" value="I" style="font-style: italic; width: 20px;" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
			<input type="button" class="bbcode" accesskey="u" name="addbbcode4" value="U" style="text-decoration: underline; width: 20px;" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
			<input type="button" class="bbcode" accesskey="p" name="addbbcode14" value="Img" onClick="bbstyle(14)" onMouseOver="helpline('p')" />
			<input type="button" class="bbcode" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline;" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
			<input type="button" class="bbcode" accesskey="l" name="addbbcode10" value="List" onClick="bbstyle(10)" onMouseOver="helpline('l')" />
			<input type="button" class="bbcode" accesskey="o" name="addbbcode12" value="List=" onClick="bbstyle(12)" onMouseOver="helpline('o')" />
			<input type="button" class="bbcode" accesskey="c" name="addbbcode8" value="Code" onClick="bbstyle(8)" onMouseOver="helpline('c')" />
			<input type="button" class="bbcode" accesskey="q" name="addbbcode6" value="Quote" onClick="bbstyle(6)" onMouseOver="helpline('q')" />

			<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.selectedIndex=0;" onMouseOver="helpline('f')">
				<option value="12" selected>{L_FONT_SIZE}</option>
				<option value="7">{L_FONT_TINY}</option>
				<option value="9">{L_FONT_SMALL}</option>
				<option value="12">{L_FONT_NORMAL}</option>
				<option value="18">{L_FONT_LARGE}</option>
				<option value="24">{L_FONT_HUGE}</option>
			</select>

			<br />
			<div class="postsmiles">
			<!-- BEGIN smilies_row -->
			<!-- BEGIN smilies_col -->
			<a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" style="border-style: none; margin: 0.3em;" /></a>
			<!-- END smilies_col -->
			<!-- END smilies_row -->
			<br />
			{SMILIES_STATUS}
			<!-- BEGIN switch_smilies_extra -->
			&nbsp; || &nbsp;
			<a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'height=230,resizable=yes,scrollbars=yes,width=300');return false;" target="_phpbbsmilies">{L_MORE_SMILIES}</a>
			<!-- END switch_smilies_extra -->
			</div>
		</div>
	</div>
	<div class="secthead">
		{L_OPTIONS}
	</div>
	<div class="row1">
		<div>
			{BBCODE_STATUS}
			<!-- BEGIN switch_bbcode_checkbox -->
			&nbsp; &nbsp; &nbsp; &nbsp;
			<input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} class="checkbox" />
			{L_DISABLE_BBCODE}
			<!-- END switch_bbcode_checkbox -->
			<br />{HTML_STATUS}
			<!-- BEGIN switch_html_checkbox -->
			&nbsp; &nbsp; &nbsp; &nbsp;
			<input type="checkbox" name="disable_html" {S_HTML_CHECKED} class="checkbox" /> {L_DISABLE_HTML}
			<!-- END switch_html_checkbox -->
			<!-- BEGIN switch_smilies_checkbox -->
			<br /><input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} class="checkbox" />
			{L_DISABLE_SMILIES}
			<!-- END switch_smilies_checkbox -->
			<!-- BEGIN switch_signature_checkbox -->
			<br /><input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} class="checkbox" />
			{L_ATTACH_SIGNATURE}
			<!-- END switch_signature_checkbox -->
			<!-- BEGIN switch_notify_checkbox -->
			<br /><input type="checkbox" name="notify" {S_NOTIFY_CHECKED} class="checkbox" />
			{L_NOTIFY_ON_REPLY}
			<!-- END switch_notify_checkbox -->
			<!-- BEGIN switch_delete_checkbox -->
			<br /><input type="checkbox" name="delete" class="checkbox" /> {L_DELETE_POST}
			<!-- END switch_delete_checkbox -->
			<!-- BEGIN switch_type_toggle -->
			<br />{S_TYPE_TOGGLE}
			<!-- END switch_type_toggle -->
		</div>
	</div>
	{POLLBOX}
	<div class="catbottom">
		{S_HIDDEN_FORM_FIELDS}
		<input type="submit" tabindex="5" name="preview" class="button" value="{L_PREVIEW}" />
		<input type="submit" accesskey="s" tabindex="6" name="post" class="button" value="{L_SUBMIT}" />
		<input type="reset" accesskey="r" tabindex="7" name="post" class="button" value="Reset" />
	</div>
</div>

</form>

{JUMPBOX}

{TOPIC_REVIEW_BOX}
