<html>
||undef||spell_allowed||
||ifnempty||header_charset||
	||begin_language||||ifempty||match_lang||||ifequal||header_charset||lang_charset||||define||match_lang||lang_name||||endif||||endif||||end_language||
||endif||
||ifempty||match_lang||
	||define||match_lang||(||language||)||
||endif||
||ifempty||match_lang||
	||define||match_lang||(||_tpl_lang||)||
||endif||
||ifempty||match_lang||
	||define||match_lang||(||_language||)||
||endif||
||ifempty||match_lang||
	||define||spell_allowed||words.dat||
||else||
<!-- language == '||match_lang||' -->

||begin_language||||ifequal||match_lang||lang_name||<meta http-equiv="Content-type" content="text/html; charset=||lang_charset||">||define||display_lang||lang_charset||||define||spell_allowed||(||lang_dictionary||)||||endif||||end_language||
||endif||
<head>
<link rel="stylesheet" type="text/css" href="||nwimg||||tpl_color||/surge.css" />
<script type="text/javascript">
<!--
||ifempty||dflt_reply||
	||define||dflt_reply||(||current_user||@||domain||)||
||endif||
||ifinstr||dflt_reply||<||
	||define||my_dreply||(||html_text||dflt_reply||)||
||else||
	||ifdef||_real_name||
		||define||xreal_name||(||encode_slash||_real_name||)||
		||define||my_dreply||(&#34;||html_text||xreal_name||&#34; &lt;||html_text||dflt_reply||&gt;)||
	||else||
		||define||my_dreply||(||html_text||dflt_reply||)||
	||endif||
||endif||

||ifinstr||netscape_version||4.|| ||define||feild_width||30|| ||else|| ||define||feild_width||70|| ||endif||
||undef||wys||
||ifinstr||ie_version||7.|| ||ifinstr||win_nt_ver||6.|| ||define||vista_nowys||true|| ||endif|| ||endif||
||ifinstr||ie_version||8.|| ||ifinstr||win_nt_ver||6.|| ||define||vista_nowys||true|| ||endif|| ||endif||
||ifdef||ie_version|| ||ifnequal||is_mac||true|| ||ifnequal||vista_nowys||true|| ||ifequal||_auto_wysiwyg||true||
	||define||wys||true|| ||define||wys_width||95%||  ||define||wys_height||150|| ||ifequal||_topnav||hide|| ||define||wheight||275|| ||else|| ||define||wheight||290|| ||endif||
||endif|| ||endif|| ||endif|| ||endif||
||ifdef||email||
function msg_mailto(a){
	a= a.substring((a.indexOf(':')+1), a.length);
	document.sendform.to.value = a;
}
||endif||
var a_s="||allow_sender||";
var sms_text="||lang_str||When sending to an '@sms' address your email MUST be less than 150 characters||";
var large_text="||lang_str||Email to large send, please reduce the size or remove attachments||";
//-->
</script>
<script type="text/javascript" src="||common_files||/util.js"></script>
<script type="text/javascript" src="||nwimg||/layout.js"></script>
<script type="text/javascript" src="||nwimg||/send.js"></script>
<title>||cust_title|| - ||lang_str||Create new message|| </title>
</head>
||undef||foc||
||ifinstr||last_cmd||msg_reply||
	||ifequal||wys||true||
		||define||foc||(document.getElementById('tbCE').focus\[\];)||
	||else||
		||define||foc||(document.sendform.message.focus\[\];)||
	||endif||

	||begin_alias||	||ifinstr||to||alias||||define||_dflt_alias||alias||||else||||ifinstr||cc||alias||||define||_dflt_alias||alias||||endif||||endif|| ||end_alias||

||else||
	||define||foc||(document.sendform.to.focus\[\];)||
||endif||
<body class="body" onLoad="||foc||doresize();||ifdef||email||; msg_mailto('||message_text||email||');||endif||||ifequal||wys||true||resize_screen();||endif||" onresize="doresize();||ifequal||wys||true||resize_screen()||endif||">
||include||_layout_start.tpl||
||ifequal||wys||true|| ||ifequal||_display_cc||true|| ||define||wheight||(||add||wheight||20||)|| ||endif||
<script type="text/javascript"><!--
function resize_screen(){
	document.getElementById("tbCE").style.height = (document.body.clientHeight-||wheight||) +"px";
}
//-->
</script>
||endif||
||ifdef||error|| ||include||_errorinline.tpl|| ||endif||
||ifdef||msg|| ||include||_msginline.tpl|| ||endif||
<form name="sendform" method="post" action="||action||">
||ifdef||answered||<input type="hidden" name="answered" value="||answered||" />||endif||
<input type="hidden" name="remove_setting" value="_use_sms_sig" />
<input type="hidden" name="force_connection" value="true" />
<input type="hidden" name="page" value="" />
<input type="hidden" name="utoken" value="||utoken||" />
<input type="hidden" name="cmd" value="||ifequal||is_mac||true||attach_msg||endif||" />
<input type="hidden" name="on_error" value="attach_msg" />
<input type="hidden" name="process" value="" />
<input type="hidden" name="dstfld" value="||ifdef||draft_name||||draft_name||||else||Drafts||endif||" />
<input type="hidden" name="_dflt_alias" value="||html_text||_dflt_alias||" />
<input type="hidden" name="attach_id" value="||attach_id||" />
<input type="hidden" name="_display_cc" value="||_display_cc||" />
<input type="hidden" name="_auto_wysiwyg" value="||_auto_wysiwyg||" />
<input type="hidden" name="language" value="||language||" />
<input type="hidden" name="share_fld" value="web/private" />
<input type="hidden" name="folder" value="||encode_text||folder||" />
<input type="hidden" name="encode_text" value="folder" />
<center>
<br />
<table class="bg1"||ifdef||wys|| width="||wys_width||"||endif||>
<TR><TD>
<TABLE>
||ifdef||return_attach||
	||define||my_to||(||html_text||to||)||
||else||
	||ifinstr||cmd||msg_reply||
		||define||my_to||(||h_from||)||
	||else||
		||ifequal||resend||true||
			||define||my_to||(||html_text||to||)||
		||else||
			||define||my_to||(||html_text||h_from||)||
		||endif||
	||endif||
||endif||
<TR>
	<TD WIDTH="10" ROWSPAN="6"> </TD>
	<TD><input type="button" class="abkbtn" onclick="javascript:newwindow('to')" value="||lang_str||To||"></TD>
	<TD><INPUT tabindex="1" TYPE="Text" NAME="to" SIZE="||feild_width||" value="||my_to||" ||ifdef||enable_autocomplete||id="to_field" autocomplete="off"||endif||> 
</TD>
</TR>

||ifdef||h_cc||
	||define||my_cc||(||html_text||h_cc||)||
||else||
	||ifinstr||cmd||msg_reply||
	||else||
		||ifinstr||cmd||forward_edit||
		||else||
			||define||my_cc||(||html_text||cc||)||
		||endif||
	||endif||
||endif||
||ifdef||h_bcc||
	||define||my_bcc||(||html_text||h_bcc||)||
||else||
	||define||my_bcc||(||html_text||bcc||)||
||endif||
||ifequal||_display_cc||true||
<TR>
	<TD><input type="button" class="abkbtn" onclick="newwindow('cc')" value="||lang_str||Cc||"></TD>
	<TD><INPUT TYPE="Text" NAME="cc" SIZE="||feild_width||" value="||my_cc||" ||ifdef||enable_autocomplete||id="cc_field" autocomplete="off"||endif||></td>
	<td rowspan="2"><a href="javascript:dcc()">||lang_str||hide||</a></TD>
</TR>
<TR>
	<TD><input type="button" class="abkbtn" onclick="newwindow('bcc')" value="||lang_str||BCC||"></TD>
	<TD><INPUT TYPE="Text" NAME="bcc" SIZE="||feild_width||" value="||my_bcc||" ||ifdef||enable_autocomplete||id="bcc_field" autocomplete="off"||endif||></TD>
</TR>
||else||
	||ifdef||my_cc||
<TR>
	<TD><input type="button" class="abkbtn" onclick="dcc()" value="||lang_str||Cc||"></TD>
	<TD><INPUT TYPE="Text" NAME="asdf1" SIZE="||feild_width||" value="||my_cc||" disabled="disabled"></td>
</TR>
	||endif||
	||ifdef||my_bcc||
<TR>
	<TD><input type="button" class="abkbtn" onclick="dcc()" value="||lang_str||BCC||"></TD>
	<TD><INPUT TYPE="Text" NAME="asdf2" SIZE="||feild_width||" value="||my_bcc||" disabled="disabled"></td>
</TR>
	||endif||
<input type="hidden" name="cc" value="||my_cc||" />
<input type="hidden" name="bcc" value="||my_bcc||" />
<tr><td><td><a href="javascript:dcc()">||lang_str||show cc/bcc||</a></td></tr>
||endif||


||define||dosel||false||
||define||dname||(||current_user||)||
||ifdef||domain||
	||ifinstr||current_user||@||
	||else||
		||define||dname||(||current_user||@||domain||)||
	||endif||
||endif||
||ifinstr||my_dreply||dname||
	||begin_alias|| ||ifdef||alias|| ||define||dosel||true|| ||endif|| ||end_alias||
||else||
	||define||dosel||true||
||endif||
<TR><TD class="LF b">||lang_str||From||</TD>
||ifequal||dosel||true||
	<TD><SELECT NAME="from">
<option value="||my_dreply||"||ifdef||_dflt_alias|| ||ifequal||(||html_text||_dflt_alias||)||my_dreply||selected="selected"||define||donesel||true||||endif|| ||endif||>||my_dreply||</option>
||begin_alias||
	<option value="||alias||" ||ifequal||_dflt_alias||alias||selected="selected"||define||donesel||true||||endif||>||alias||</option>
||end_alias||
||ifinstr||my_dreply||dname||
||else||
	<option value="||dname||">||dname||</option>
||endif||
	</SELECT></TD>
||else||
	<td class="LF" nowrap>||my_dreply||</td>
	<input type="hidden" name="from" value="||my_dreply||">
||endif||
</TR>
||ifequal||allow_sender||true||
	<input type="hidden" name="sender" value="" />
||endif||

||ifequal||resend||true||
	||define||my_subject||(||html_text||subject||)||
||else||
	||ifdef||h_subject||
		||define||my_subject||(||html_text||h_subject||)||
	||else||
		||define||my_subject||(||html_text||subject||)||
	||endif||
||endif||

<TR>
	<TD class="LF b">||lang_str||Subject||</TD>
	<TD><INPUT tabindex="2" TYPE="Text" NAME="subject" SIZE="||feild_width||" value="||my_subject||"></TD>
</TR>
||define||total_attach_est||0||
||ifnequal||attach_num||0||
<TR>
	<TD class="LF b">||lang_str||Attached||</TD>
	<TD class="LF b">||begin_attach|| ||define||total_attach_est||(||total_attach_est|| + \[30 + ||attach_size||*1.3\])||
		 ||attach_name|| (||attach_ksize||k),||end_attach||</TD>
</TR>
||endif||
</TABLE>

	</TD>
	<TD ALIGN="RIGHT" VALIGN="TOP" height="100%">

<TABLE WIDTH="100%" height="100%" CELLSPACING="0" CELLPADDING="1">
<TR>
	<td class="rt U">||lang_str||Urgent|| <INPUT TYPE="Checkbox" NAME="priority" value="urgent"||ifequal||priority||urgent|| checked="checked"||endif|| /></td>
	<TD WIDTH="10" ROWSPAN="3"> </TD>
</tr>
<tr>
	<td class="rt LF">||lang_str||Read receipt|| <INPUT TYPE="Checkbox" NAME="confirm" value="read"||ifequal||confirm||read|| checked="checked"||endif|| /></TD>
</TR>
<TR>
	<TD class="rt">
	<A class="LF" HREF="||ifdef||wys||#" onclick="obj_editor=tbCE; tbCE_guardar(); ||else||javascript:||endif||document.sendform.cmd.value = 'add_attach';document.sendform.submit()">||lang_str||Attach file||</A><BR>
||ifdef||spell_allowed||
	<A class="LF" HREF="||ifdef||wys||#" onclick="obj_editor=tbCE; tbCE_guardar(); ||else||javascript:||endif||document.sendform.cmd.value = 'spell_check';document.sendform.submit()">||lang_str||Check spelling||</A><BR>
||else||
	<font class="LF">||lang_str||Check spelling||<BR>
||endif||
	<A class="LF" HREF="||ifdef||wys||#" onclick="obj_editor=tbCE; tbCE_guardar(); ||else||javascript:||endif||document.sendform.cmd.value = 'save_draft';document.sendform.process.value = 'list';document.sendform._dflt_alias.value = document.sendform.from.value;document.sendform.submit()">||lang_str||Save to drafts||</A><BR>
	||ifempty||wys||
		||ifdef||ie_version|| ||ifnequal||vista_nowys||true|| ||ifnequal||is_mac||true||
				<A class="LF" HREF="javascript:document.sendform.cmd.value='attach_msg';document.sendform._auto_wysiwyg.value='true';document.sendform.page.value='send';document.sendform.submit()">||lang_str||Html text||</A>
		||endif|| ||endif|| ||endif||
	||else||
		||ifinstr||ie_version||5.||
			<input type="button" class="btn" onclick="obj_editor=tbCE; tbCE_guardar();document.sendform.cmd.value='attach_msg';document.sendform._auto_wysiwyg.value='';document.sendform.submit()" value="||lang_str||Plain text||">
		||else||
			<A class="LF" HREF="#" onclick="obj_editor=tbCE; tbCE_guardar();document.sendform.cmd.value='attach_msg';document.sendform._auto_wysiwyg.value='';document.sendform.submit()">||lang_str||Plain text||</A>
		||endif||
	||endif||
	</td>
</tr>
<tr height="100%">
	<td class="rt" valign="bottom" width="100%">
	||ifempty||wys||
		<input tabindex="4" type="button" class="btn70" onclick="do_send();" value="||lang_str||Send||"></td>
	||else||
		<input tabindex="4" type="button" class="btn70" onclick="obj_editor=tbCE; tbCE_guardar(); do_send();" value="||lang_str||Send||"></td>
	||endif||
	</TD>
</TR>
</TABLE>
	</TD>
</TR>
||undef||start_msg||
||ifdef||message_headers||||ifnequal||resend||true||
||define||start_msg||(

----- ||lang_str||Forwarded Message|| -----)||
||endif||||endif||
||ifinstr||cmd||msg_reply||
||define||start_msg||(

----- ||lang_str||Original Message|| -----)||
||endif||

||ifnempty||start_msg||
||define||start_msg||(||start_msg||
||lang_str||From||: ||from||
||lang_str||To||: ||to||
||ifdef||cc||||lang_str||Cc||: ||cc||
||endif||||lang_str||Subject||: ||subject||
||lang_str||Date||: ||date||

)||
||endif||
||ifempty||wys||
	||define||decode_slash||true||
	||define||xquote_body||(||convert_text||quote_body||)||
<TR>
	<TD COLSPAN="2" class="c">
	<TEXTAREA tabindex="3" NAME="message" COLS="80" ROWS="18">||start_msg||||xquote_body||</TEXTAREA>
	</TD>
</TR>
||else||
||/*||<!-- WYSIWYG stuff here -->||*/||
	||define||start_msg||(||convert_text||start_msg||)||		||/*||<!-- convert "hdr" text based encoded -> html -->||*/||
	||define||start_msg||(||html_text||start_msg||)||		||/*||<!-- convert "hdr" html chars back to text based encoding -->||*/||
	||define||xquote_body||(||convert_text||quote_body||)||		||/*||<!-- convert "body" text based encoded -> html -->||*/||
	||define||xquote_body||(||html_line||xquote_body||)||		||/*||<!-- convert "body" html chars back to text based encoding -->||*/||

	<input type="hidden" name="message" value="||html_add||xquote_body||start_msg||" />
<TR width="||wys_width||">
	<TD COLSPAN="2" class="c"> ||ifdef||ie_version|| ||include||ie_htmltext.tpl|| ||else|| ||include||ns_htmltext.tpl|| ||endif|| </TD>
</TR>
||/*||<!-- end WYSIWYG stuff -->||*/||
||endif||
<TR><TD COLSPAN="2" valign="top">
<TABLE WIDTH="100%"><TR>
	<td class="LF b">
		||lang_str||Select your signature||
		<select class="LF" name="_default_profile" size="1" onchange="setSig();">
			||profile_list||_default_profile||
		</select>
		<input type="hidden" name="addsig" value="on" />
		<script type="text/javascript">
		<!--
			setSig();
		//-->
		</script>
	</td>

||ifequal||match_lang2||english||
	<input type="hidden" name="language" value="||match_lang||">
||else||
	<td class="LF b">
		||lang_str||Content Language||
		<select name="language" size="1" onChange="setlang()">
			||begin_language||
				<option value="||lang_name||" ||ifequal||match_lang||lang_name||selected="selected"||endif||>||lang||lang_name||</option>
			||end_language||
		</select>
	</td>
||endif||
||ifdef||have_pgp_key||
	<td class="LF b">
		PGP
		<select name="pgp_type" size="1">
			<option value="" >||lang_str||None||</option>
			<option value="attach" ||ifempty||pgp_type||selected||endif|| ||ifequal||pgp_type||attach||selected||endif||>Attach Public Key</option>
			<option value="sign" ||ifequal||pgp_type||sign||selected||endif||>PGP Sign Email</option>
			<option value="encode" ||ifequal||pgp_type||encode||selected||endif||>PGP Encode Email</option>
	<!--		<option value="encode+sign">PGP Encode and Sign</option>
	--->
		</select>
	</td>
||endif||
	<td class="LF rt b">
		||lang_str||Keep Copies||
	</td>
	<td><input type="checkbox" name="copyself" value="on" ||ifnempty||copyself||checked="checked"||endif||></td>
	||ifempty||wys||
		<td class="rt"><input tabindex="5" type="button" class="btn70" onclick="do_send();" value="||lang_str||Send||"></td>
	||else||
		<td class="rt"><input tabindex="5" type="button" class="btn70" onclick="obj_editor=tbCE; tbCE_guardar(); do_send();" value="||lang_str||Send||"></td>
	||endif||
</TR></TABLE>


</TD></TR>
</TABLE>
</td></tr></table>
</center>
</form>


<script type="text/javascript">
<!--
	var total_attach_est = ||total_attach_est||;
||ifdef||max_email_send_size||
	var max_email_send_size = ||max_email_send_size||;
||else||
	var max_email_send_size = 0;
||endif||

||ifdef||wys||
||/*||<!-- WYSIWYG stuff here -->||*/||

function salvar_html(htmlcode){
	document.sendform.message.value = htmlcode;
}
tbCE_update(document.sendform.message.value);
||/*||<!-- end WYSIWYG stuff -->||*/||
||endif||
//-->

</script>



||ifdef||enable_autocomplete||

||define||ac_textcolour||#112266||
||define||ac_bgcolour||#daf0fd||
||define||ac_selcolour||#a3ceec||
||define||ac_bordercolour||#666666||
<style>
	#ac { position: absolute; border: 1px solid ||ac_bordercolour||; background: ||ac_bgcolour||;}
	#ac span{ text-decoration:none; font-family: Arial, Helvetica, sans-serif; font-size:80%; color:||ac_textcolour||; display:block; cursor:default; padding:0 20 0 5; white-space:nowrap }
	#ac span.sel{ background:||ac_selcolour|| }
</style>
<script type="text/javascript" src="||common_files||/util.js"></script>
<script type="text/javascript" src="||common_files||/abk_autocomplete.js"></script>
<script>
	||begin_address||
		abk_entry("||encode_quotes||name||","||encode_quotes||abk_full_name||","||encode_quotes||abk_email||","shortlist_na","||abk_instant||","||abk_nused||");
	||end_address||
	init_autocomplete();
</script>
||endif||


</BODY>
</HTML>
