<!-- Java function for the below is in:
		/nwimg/smooth/script_cmd.js
-->

<form name="email" method="post" action="||action||" target="xcomp_spell">
	<input type="hidden" name="cmd" value="send" />
	<input type="hidden" name="utoken" value="||utoken||" />
	<input type="hidden" name="attach_id" value="||attach_id||" />

	<input type="hidden" name="page" value="message_popup.tpl" />
	<input type="hidden" name="on_error" value="show" />
	<input type="hidden" name="err_page" value="message_popup.tpl" />

	<input type="hidden" name="message" value="" />

||ifinstr||cmd||msg_reply||
	<input type="hidden" name="folder" value="||folder||" />
	<input type="hidden" name="answered" value="||uidl||" />
||else||
	||ifnempty||answered||
		<input type="hidden" name="folder" value="||folder||" />
		<input type="hidden" name="answered" value="||answered||" />
	||endif||
||endif||

<!-- Folder that draft messages are saved. -->
	<input type="hidden" name="dstfld" value="||ifdef||draft_name||||draft_name||||else||Drafts||endif||" />

<!-- From compose_select -->
	<input type="hidden" name="priority" value="" />
	<input type="hidden" name="addsig" value="" />
	<input type="hidden" name="_default_profile" value="" />
	<input type="hidden" name="language" value="" />
	<input type="hidden" name="pgp_type" value="" />
	<input type="hidden" name="copyself" value="" />
	<input type="hidden" name="_auto_wysiwyg" value="||_auto_wysiwyg||" />
	<input type="hidden" name="confirm" value="" />

||ifequal||allow_sender||true||
	<input type="hidden" name="sender" value="" />
||endif||
||ifdef||one_fwd||
	<input type="hidden" name="one_fwd" value="||one_fwd||" />
	<input type="hidden" name="fwd_list" value="||fwd_list||" />
	<input type="hidden" name="folder" value="||folder||" />
||endif||
	




<table border="0" cellpadding="0" cellspacing="0" width="100%">
<table cellspacing="0" cellpadding="0" rules="none" border="0" width="100%">

<!-- Header Info -->
||define||feild_width||60||

||define||compose_to||(||html_text||h_from||)||
||define||compose_cc||(||html_text||h_cc||)||
||define||compose_bcc||(||html_text||h_bcc||)||
||define||compose_subject||(||h_subject||)||
||ifempty||compose_subject||
	||ifdef||one_fwd||
		||ifgreater||nfwd||1||
			||define||compose_subject||(FWD: \[subject\])||
		||else||
			||begin_forward||
				||define||compose_subject||(FWD: ||h_subject||)||
			||end_forward||
		||endif||
	||endif||
||endif||

||define||compose_reply||(||html_text||dflt_reply||)||
||ifdef||_real_name||
	||ifinstr||compose_from||<||
		||define||compose_from||(&#34;||html_text||_real_name||&#34; &lt;||html_text||dflt_reply||&gt;)||
	||else||
		||define||compose_from||(||html_text||dflt_reply||)||
	||endif||
||else||
	||define||compose_from||(||html_text||dflt_reply||)||
||endif||


||ifdef||redirect||
	||define||compose_from||(||html_text||from||)||
	||define||compose_reply||(||html_text||reply||)||
||endif||



||ifnequal||modify_from||true||
	<input type="hidden" name="from" value="||html_text||compose_from||" />
||endif||

<tr>
	<td colspan="8">
		<table border="0">
		<tr>
			<td align="right"><strong>||lang_str||To||: </strong></td>
			<td align="left" nowrap="nowrap">
				<input tabindex="1" name="to" type="text" size="||feild_width||" value="||compose_to||" onfocus="document.email.oo[0].checked = true" ||ifdef||enable_autocomplete||id="to_field" autocomplete="off" ||endif|| />
				<input class="clear" type="radio" name="oo" value="t" checked="checked" />
			</td>
		</tr>
		<tr>
			<td align="right"><strong>||lang_str||Reply To||:</strong></td>
			<td align="left" nowrap="nowrap">
				<input name="reply" size="||feild_width||" value="||compose_reply||" />
			</td>
		</tr>

		||ifequal||modify_from||true||
			<tr>
				<td align="right"><strong>||lang_str||From||:</strong></td>
				<td align="left" nowrap="nowrap">
					<input name="from" size="||feild_width||" value="||html_text||compose_from||" />
				</td>
			</tr>
		||endif||

		<tr>
			<td align="right"><strong>||lang_str||Cc||:</strong></td>
			<td align="left" nowrap="nowrap">
				<input name="cc" size="||feild_width||" value="||compose_cc||" onfocus="document.email.oo[1].checked = true" ||ifdef||enable_autocomplete||id="cc_field" autocomplete="off" ||endif|| />
				<input class="clear" type="radio" name="oo" value="c" />
			</td>
		</tr>
		<tr>
			<td align="right"><strong>||lang_str||BCC||:</strong></td>
			<td align="left" nowrap="nowrap">
				<input name="bcc" size="||feild_width||" value="||compose_bcc||" onfocus="document.email.oo[2].checked = true" ||ifdef||enable_autocomplete||id="bcc_field" autocomplete="off" ||endif|| />
				<input class="clear" type="radio" name="oo" value="b" />
			</td>
		</tr>
		<tr>
			<td align="right"><strong>||lang_str||Subject||:</strong></td>
			<td align="left" colspan="2">
				<input tabindex="2" name="subject" size="66" value="||compose_subject||" />
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>
</form>
