||undef||xfile||
||ifdef||use_surgemail_xfile||
	||ifinstr||surgemail_disallow||surgeplus||
	||else||
		||define||xfile||true||
	||endif||
||endif||
||ifdef||xfile||
	||define||attaching||true||
	||include||fileshare.tpl||
||else||
<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||(||_language||)||
||endif||
||ifempty||match_lang||
	||define||match_lang||(||_tpl_lang||)||
||endif||
||ifempty||match_lang||
	||define||spell_allowed||words.dat||
||else||

||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">
<!--
||/*||// The following are the lang translations for POPUP javascript alerts||*/||
||define||x_msg||Attaching File\[s\]... Please Wait||
var x_attaching_files = "||lang||x_msg||";
||define||x_msg||Uploading File\[s\]... Please Wait||
var x_uploading_files = "||lang||x_msg||";
// -->
</script>
<title>||cust_title|| - ||lang_str||Create new message|| </title>
<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||/attach.js"></script>
</head>
<body class="body" onload="doresize();" onresize="doresize()"> 

||include||_layout_start.tpl||

||ifdef||error||
	||include||_errorinline.tpl||
||endif||
||ifdef||msg||
	||include||_msginline.tpl||
||endif||

<form name="returnform" enctype="multipart/form-data" method="post" action="||action||">
<input type="hidden" name="answered" value="||answered||" />
<input type="hidden" name="utoken" value="||utoken||" />
<input type="hidden" name="attach_id" value="||attach_id||" />
<input type="hidden" name="to" value="||html_text||to||" />
<input type="hidden" name="cc" value="||html_text||cc||" />
<input type="hidden" name="bcc" value="||html_text||bcc||" />
<input type="hidden" name="subject" value="||html_text||subject||" />
<input type="hidden" name="from" value="||html_text||from||" />
<input type="hidden" name="force_connection" value="true" />
<input type="hidden" name="confirm" value="||confirm||" />
<input type="hidden" name="isbulletin" value="||isbulletin||" />
<input type="hidden" name="message" value="||html_line||message||" />
<input type="hidden" name="priority" value="||priority||" />
<input type="hidden" name="msg_alternative" value="||msg_alternative||" />
<input type="hidden" name="page" value="" />
<input type="hidden" name="process" value="" />
<input type="hidden" name="cmd" value="attach_send" />
<input type="hidden" name="return_attach" value="true" />
<input type="hidden" name="content_type" value="||content_type||" />
<input type="hidden" name="copyself" value="||copyself||" />
<input type="hidden" name="pgp_type" value="||pgp_type||" />
<input type="hidden" name="share_fld" value="web/private" />
<input type="hidden" name="fld" value="||fld||" />
<input type="hidden" name="isbulletin" value="||isbulletin||" />
<input type="hidden" name="valid_day" value="||valid_day||" />
<input type="hidden" name="valid_month" value="||valid_month||" />
<input type="hidden" name="valid_year" value="||valid_year||" />
<div class="c LF b">||lang_str||Attach Files to this message||<br>
<input NAME="button_return" type="button" class="btn" value="||lang_str||Return to message||" onclick="returnToMessage()" /></div>
<table align="center">
<tr><td valign="top">
	<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="5" class="bg1">
	<TR>
		<TD COLSPAN="2" class="c LF b">||lang_str||Select the files to upload/attach||<BR>
		(||lang_str||You can select up to 3 files at a time||)</td>
	</TR>
	<TR><TD HEIGHT="10" COLSPAN="2"> </TD></TR>
	<TR>
		<TD class="LF">||lang_str||File 1||: </TD>
		<TD><input type="file" name="attach" size="24" /></TD>
	</TR>
	<TR>
		<TD class="LF">||lang_str||File 2||: </TD>
		<TD><input type="file" name="attach" size="24" /></TD>
	</TR>
	<TR>
		<TD class="LF">||lang_str||File 3||: </TD>
		<TD><input type="file" name="attach" size="24" /></TD>
	</TR>
	<TR><TD HEIGHT="10"> </TD></TR>
	<TR>
		<TD colspan="2" class="c">
		<INPUT NAME="button_attach" TYPE="button" class="btn" VALUE="||lang_str||Attach File||(s)" onclick="attachFiles()">
		<INPUT NAME="button_save" TYPE="button" class="btn" VALUE="||lang_str||Upload File||(s)" onclick="saveAttachFiles()">
		</TD>
	</TR>
	</TABLE>
</td>
<td valign="top">
||begin_attach|| ||end_attach||
	<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="5" class="bg1">
	<TR>
		<TD class="c LF b">||lang_str||Attached Files||<BR>
		||lang_str||Total attached size|| ||attach_total_ksize||k</TD>
	</TR>
	<TR>
		<TD>
			<select name="selected_attach" size="6">
				||begin_attach||
					<option value="||attach_fname||">||attach_name|| (||attach_ksize||k)</option>
				||end_attach||
			</select>
		</td>
	</TR>
	<TR><TD HEIGHT="10"> </TD></TR>
	<TR>
		<TD class="c"><INPUT TYPE="button" class="btn" VALUE="||lang_str||Delete||" onclick="delAttachFiles()"></TD>
	</TR>
	</TABLE>
</td>
<td valign="top">
	||begin_keep_attach||
	||end_keep_attach||
	<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="5" class="bg1">
	<TR>
		<TD class="c LF b">||lang_str||Files stored on server||<BR>
		||lang_str||Total file size|| ||keep_attach_total_ksize||k</TD>
	</TR>
	<TR>
		<TD>
			<select name="selected_keep_attach" size="6">
				||begin_keep_attach||
					<option value="||attach_fname||">||attach_name|| (||attach_ksize||k)</option>
				||end_keep_attach||
			</select>
		</td>
	</TR>
	<TR><TD HEIGHT="10"> </TD></TR>
	<TR>
		<TD class="c">
			<INPUT TYPE="button" class="btn" VALUE="||lang_str||Delete||" onclick="keepAttachDel()">
			<INPUT TYPE="button" class="btn" VALUE="||lang_str||Attach||" onclick="keepAttachAdd()">
		</TD>
	</TR>
	</TABLE>

</td>
</tr>
</table>
</form>
</body>
</html>
||endif||