||ifdef||force_item_xhtml||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
||endif||
||ifdef||email_charset||
	||ifinstr||email_charset||UTF-8||
		||define||email_charset||iso-8859-1||
	||endif||
	||ifinstr||email_charset||UTF-7||
		||define||email_charset||iso-8859-1||
	||endif||
	<meta http-equiv="Content-type" content="text/html; charset=||email_charset||">
||endif||
<html>
<head>
<style type="text/css">
<!--
span.small{
	font: 8pt "Arial";
    color: black;
}
pre{
	font: small "Arial";
    color: black;
}
a{
	font: 8pt "Arial";
    color: black;
}

input{
	font: 8pt "Arial";
    color: black;
}

td.{
	font-size: small;
}

td.small{
	text-align: left;
	font-size: small;
}

td.body{
	text-align: left;
	font-size: small;
}


td.bold{
	text-align: left;
	font-size: small;
	font-weight: bold;
}
//-->
</style>

<script type="text/javascript">
<!--
var utoken="||utoken||";
var action="||action||";
var _nopreview="||_nopreview||";
var folder="||message_text||folder||";
var fld="||message_text||fld||";
var h_from="||html_text||h_from_email||";
var netscape_version="||netscape_version||";
var uidl="||uidl||";
var b_prev="||b_prev||";
||ifdef||b_next||
var b_next="||b_next||&require_lock=true";
||else||
var b_next="";
||endif||
var delitem="||action||?cmd=delitem_next-||uidl||&amp;utoken=||utoken||&amp;folder=||fld||&amp;page=framelist&amp;process=list&amp;listcmd=list&amp;require_lock=true&amp;showitem=";

||ifndef||netscape_version||
||ifndef||no_select||
if(window.parent){
	if(window.parent.frames){
		if(window.parent.frames[0]){
			if(window.parent.frames[0].name){
				if(window.parent.frames[0].document){
					if(window.parent.frames[0].document.getElementById('listTable')){
						var rows = window.parent.frames[0].document.getElementById('listTable').rows;
						var elements = window.parent.frames[0].document.List.elements;
						var selno = 0;
  						for(var i=2; i<rows.length-1; i++){
							rows[i].bgColor = "#ffffff";
						}
						for(i=0; i<elements.length; i++){
							if(elements[i].name.substr(0,4) == "sel_"){
								selno++;
								if(elements[i].name == "sel_||uidl||"){
									elements[i].checked = true;
									rows[(selno+1)].bgColor = "#eeeeff";
								}
								else
									elements[i].checked = false;
							}
						}
					}
				}
			}
		}
	}
}
||endif||
||endif||

function stop_attach_warn(url,file){
	if (confirm("Warning, the '"+file+"' attachment could be malicious. Press Ok to continue downloading or Cancel to abort the download")){
		document.location = url;
	}
}

function stop_attach(file){
	alert("You need to use the link at the top of this email to download this attachment");
}

function upload_attach(file,sub, part)
{
	if(confirm("Do you want to upload\n" + file + "\ninto your filestore?")){
		document.upload.subpart.value = sub;
		document.upload.part.value = part;
		document.upload.submit();
	}
}

function upload_image(file,sub,part)
{
	if(confirm("Do you want to upload\n" + file + "\ninto your Photos?")){
		document.upload.subpart.value = sub;
		document.upload.part.value = part;
		document.upload.share_fld.value = "web/Pictures";
		document.upload.submit();
	}
}
// -->
</script>
<script type="text/javascript" src="||nwimg||/item.js"></script>

<title>||html_text||h_subject||</title>
</head>

<body background="||cust_panel_background||" bgcolor="||cust_panel_bgcolor||" onkeypress="hotkeyoverload(event);">

<form method="post" action="||action||" name="email">
<input type="hidden" name="attach_id" value="||attach_id||" />
<input type="hidden" name="delquery" value="||action||?cmd=delitem_next-||uidl||&amp;utoken=||utoken||&amp;folder=||fld||&amp;page=framelist&amp;listcmd=list&amp;showitem=next_preview||ifequal||folder||waste_name||&amp;ignore_trash=true&amp;force_empty=true||endif||&amp;&amp;" />
<input type="hidden" name="copyquery" value="||action||?cmd=copyitem-||uidl||&amp;utoken=||utoken||&amp;folder=||href_text||folder||&amp;page=framelist&amp;listcmd=list&amp;showitem=||uidl||" />
<input type="hidden" name="movequery" value="||action||?cmd=moveitem-||uidl||&amp;utoken=||utoken||&amp;folder=||href_text||folder||&amp;page=framelist&amp;listcmd=list&amp;showitem=||msg_next||||ifinstr||msg_next||*||&amp;local_uidl=true||endif||" />
<input type="hidden" name="utoken" value="||utoken||" />
<input type="hidden" name="folder" value="||folder||" />
<input type="hidden" name="cmd" value="" />
<input type="hidden" name="listcmd" value="" />
<input type="hidden" name="dstfld" value="" />
<input type="hidden" name="page" value="" />
<input type="hidden" name="myuidl" value="||uidl||" />
<input type="hidden" name="mynext" value="||msg_next||" />
<input type="hidden" name="myprev" value="||msg_prev||" />
<input type="hidden" name="fromItem" value="||uidl||" />
<input type="hidden" name="require_lock" value="true" />
<input type="hidden" name="domoveuid" value="" />


||ifdef||error||
	<center>
	<table border="1">
		<tr>
			<td><img src="||nwimg||/attention.gif" alt="Attention" /></td>
			<td bgcolor="ffffff">||error||</td>
		</tr>
	</table>
	</center>
||endif||
||ifdef||msg||
	<center>
	<table border="1">
		<tr>
			<td bgcolor="ffffff">||msg||</td>
		</tr>
	</table>
	</center>
||endif||

<center>
<table>
<tr>
	<td>
<script type="text/javascript">
<!--

function delete_email(){
	open("||action||?cmd=delitem||ifnempty||_del_open_next||_next||endif||-||uidl||&utoken=||utoken||&folder=||fld||&page=framelist||ifequal||folder||waste_name||&ignore_trash=true&force_empty=true||endif||&process=list&listcmd=list&require_lock=true||ifnempty||_del_open_next||&showitem=next_popup||endif||&&", "framelist");
	window.close();
}

function spam_email()
{
	if(confirm("Are you sure that you want to delete this email and submit it to our SPAM Database?")){
		open("||action||?cmd=spam_remove-||uidl||&utoken=||utoken||&folder=||fld||&page=framelist&listcmd=list&require_lock=true&&", "framelist");
		window.close();
	}
}

//-->
</script>

||ifnequal||folder||bulletin_fld||
<script type="text/javascript">
<!--
if(!window.parent.parent.frames[0]){
//	var target = window.opener||ifndef||_nopreview||.parent||endif||;

	document.write('		<a href="#" onclick="delete_email()"><img border="0" src="||nwimg||/menu_delete.gif" alt="Delete this Message (Ctrl-Shift-D)"></a>		\n');
	document.write('		<a href="#" onclick="fwd_reply(\'msg_reply-\');window.close();"><img border="0" src="||nwimg||/menu_reply.gif" alt="Reply to this message (Ctrl-Shift-R)"></a>		\n');
	document.write('		<a href="#" onclick="fwd_reply(\'msg_replyall-\');window.close();"><img border="0" src="||nwimg||/menu_replyall.gif" alt="Reply to all the recipients of this message (Ctrl-Shift-A)"></a>		\n');
	document.write('		<a href="#" onclick="fwd_reply(\'forward_edit-\');window.close();"><img border="0" src="||nwimg||/menu_forward.gif" alt="Forward this message \'from me\' to another address (Ctrl-Shift-F)"></a>		\n');
	document.write('		<a href="#" onclick="redirectf();window.close();"><img border="0" src="||nwimg||/menu_redirect.gif" alt="Forward this message \'as is\' to another address (Ctrl-Shift-E)"></a>		\n');
	document.write('		<a href="#" onclick="myprint();"><img border="0" src="||nwimg||/menu_print.gif" alt="Print this message (Ctrl-Shift-P)"></a>		\n');
	document.write('		<a href="#" onclick="myMove();"><img border="0" src="||nwimg||/itemmove.gif" alt="Move this message to selected folder"></a>		\n');
	document.write('	</td>					\n');
	document.write('	<td valign="center"><select name="dstfld_sel" size="1">	\n');
	||begin_fld_short||
		document.write("	||ifequal||enable_inbox_transfer||true|| <option value=\"||href_text||fld_name||\">||fld_name||</option> ||else|| ||ifnequal||fld_name||(||new_mail_name||)||	<option value=\"||fld_name||\">||fld_name||</option>	||endif|| ||endif||		\n");
	||end_fld_short||
	document.write('	</select>\n');
}
else{
	document.write('<p>&nbsp;</p>');
}
//-->
</script>
||else||
<p>&nbsp;</p>
||endif||
	</td>
</tr>
</table>
</form>

||ifnempty||domoveuid||
<script type="text/javascript">
<!--
	document.email.cmd.value = "moveitem-||domoveuid||";
	document.email.listcmd.value = "list";
	document.email.dstfld.value = "||dstfld||";
	document.email.page.value = "framelist";
	document.email.target = "framelist";
	document.email.submit();
//-->
</script>
||endif||

<table border="0" width="100%" rules="none" cellpadding="0" cellspacing="0">
<tr>
	<td valign="top" align="center">
	<a href="||ifdef||b_prev||||b_prev||||else||javascript:alert('This is the first message in this folder')||endif||"><img border="0" src="||nwimg||/itemprev.gif" alt="Open Previous Message ( [ )" /></a><a href="||ifdef||b_next||||b_next||||else||javascript:alert('This is the last message in this folder')||endif||"><img border="0" src="||nwimg||/itemnext.gif" alt="Open Next Message ( ] )" /></a><br />
		||ifdef||b_resend||
			<a href="javascript:fwd_reply('msg_resend-');window.close();"><img border="0" src="||nwimg||/itemresend.gif" alt="Resend this message (Ctrl-Shift-T)" /></a><br />
		||endif||
		<a href="javascript:mysubmit('saveaddr-||uidl||');"><img border="0" src="||nwimg||/itemaddpick.gif" alt="Add to recent addresses (Ctrl-Shift-N)" /></a><br />
		<a href="javascript:mysubmit('saveaddrbook-||uidl||');"><img border="0" src="||nwimg||/itemaddbook.gif" alt="Add to address book (Ctrl-Shift-B)" /></a><br />
		<a href="javascript:do_reject();"><img border="0" src="||nwimg||/itemreject.gif" alt="Reject this address" /></a><br />
		<a href="||action||?cmd=add_accept&amp;process=item-||uidl||&amp;require_lock=true&amp;get_attach_id=true&amp;folder=||fld||&amp;java_email=true&amp;accept=||href_text||h_from||&amp;utoken=||utoken||&amp;&amp;"><img border="0" src="||nwimg||/itemaccept.gif" alt="Accept this address" /></a>
	||ifdef||spam_email_address||
		<br />
		<a href="javascript:spam_email();"><img border="0" src="||nwimg||/itemspam.gif"></a>
	||endif||

	</td>
	<td nowrap="nowrap" valign="top">
		<table border="1" width ="90%" cellpadding="20" cellspacing="0" >
		<tr>
		<td bgcolor="ffffff"><table border="0" width="100%">
			<tr>
				<td>
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td class="bold">To:</td>
						<td class="small">
							||ifnequal||folder||bulletin_fld||
								||begin_email||h_to||
									||ifgreater||num||1||,||endif||
									<a href='javascript:clickAddress("||encode_text||email||")'>||html_text||email||</a>
 								||end_email||
							||else||
								<b>Bulletin</b>
							||endif||

						</td>
						<td class="bold">Date:</td>
						<td class="small">||h_local_date||</td>
					</tr>
					<tr>
						<td class="bold">Subject:</td>
						<td class="small">||html_text||h_subject||</td>
						<td class="bold">Status:</td>
						<td class="small">||html_text||h_pri||</td>
					</tr>
					<tr>
		||ifnequal||folder||bulletin_fld||
						<td class="bold">CC:</td>
						<td class="small">
							||begin_email||h_cc||
								||ifgreater||num||1||,||endif||
									<a href='javascript:clickAddress("||encode_text||email||")'>||html_text||email||</a>
 							||end_email||

						</td>

		||else||
						<td>&nbsp;</td>
						<td>&nbsp;</td>
		||endif||
			 			<td class="bold">From:</td>
						<td class="small">
							||begin_email||h_from||
								||ifgreater||num||1||,||endif||
									<a href='javascript:clickAddress("||encode_text||email||")'>||html_text||email||</a>
 							||end_email||

						</td>
					</tr>
					<tr>
			 			<td nowrap="nowrap" valign="top" class="bold">Reply-to:</td>
						<td valign="top" class="small">
							||begin_email||h_reply||
								||ifgreater||num||1||,||endif||
									<a href='javascript:clickAddress("||encode_text||email||")'>||html_text||email||</a>
 							||end_email||

						</td>
					</tr>
					</table>
					<br />
					||ifdef||attachments||
<!--						<table border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td class="bold">Attachments:</td>
							<td><img src="||nwimg||/space.gif" width="10" height="1" alt="" /></td>
							<td>||attachments||</td>
						</tr>
						</table>
-->
						<table border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td class="bold">Attachments:</td>
							<td><img src="||nwimg||/space.gif" width="10" height="1" alt="" /></td>
							<td>
							||begin_attachments||
								||ifdef||stop_attach||
									<a href="javascript:stop_attach_warn('||attach_link||&save_file=true&&/||attach_name||','||attach_full_name||')">||attach_full_name|| ||ifdef||attach_ksize||(||attach_ksize||k)||endif||</a>
								||else||
									<a href="||attach_link||&save_file=true&&/||attach_name||">||attach_full_name|| ||ifdef||attach_ksize||(||attach_ksize||k)||endif||</a>
									||ifequal||use_surgemail_xfile||true||
									||ifinstr||surgemail_disallow||surgeplus||
									||else||
									||ifequal||(||check_id||102||)||true||
										<a href="javascript:upload_attach('||attach_full_name||','||attach_subpart||','||attach_part||' )"><img border="0" src="||nwimg||/fileshare.gif"></a>
									||endif||
									||ifequal||(||check_id||103||)||true||
										<a href="javascript:upload_image('||attach_full_name||','||attach_subpart||','||attach_part||' )"><img border="0" src="||nwimg||/imagestore.gif"></a>
									||endif||
									||endif||
									||endif||
								||endif||
							||end_attachments||
							</td>
						</tr>
						</table>
					||endif||

				</td>
			</tr>
		||ifdef||alternative_multiple||
			<tr><td><a href="||action||?cmd=item-||uidl||&amp;alt_multi_display=true&amp;folder=||fld||&amp;utoken=||utoken||">Display Alternative Part</a>
			</td></tr>
		||endif||
			<tr><td colspan="2" class="body">||show_email||</td></tr>

		||ifdef||got_pgp_key||
		<!-- PGP Public Message -->
			<tr><td colspan="2"><hr /></td></tr>
			<tr><td colspan="2"><i>
				This email has a PGP public key for <b>'||pgp_from||'</b>.<br />
					||ifndef||pgp_enabled||
						This verison of ||product|| does not support PGP sorry.
					||else||
						Press the following link to add this PGP key to your key ring.<br />

						<a href="||action||?cmd=pgp_add-||uidl||&amp;folder=||fld||&amp;utoken=||utoken||">Add Key</a>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="||action||?cmd=pgp_pub_verify-||uidl||&amp;folder=||fld||&amp;utoken=||utoken||">Verify Public Key</a>
					||endif||
				</i></td>

			</tr>
		||endif||
		||ifdef||got_pgp_sig||
		<!-- PGP Signed Message -->
			<tr><td colspan="2"><hr /></td></tr>
			<tr><td colspan="2"><i>
				This email has been signed with a PGP key from <b>'||pgp_from||'</b>.<br />
					||ifndef||pgp_enabled||
						This verison of ||product|| does not support PGP sorry.
					||else||
						Press the following link to verify this PGP signed message.<br />

						<a href="#" onclick="javascript:open('||action||?cmd=pgp_verify-||uidl||&amp;folder=||fld||&amp;utoken=||utoken||&amp;&amp;','pgp_sig','width=450,height=150,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes','POPUP')">Verify Signature</a>
					||endif||
				</i></td>

			</tr>
		||endif||
		||ifdef||got_pgp_encoded||
		<!-- PGP Encoded Message -->
			<tr><td colspan="2"><hr></td></tr>
			<tr><td colspan="2"><font size = 2><i>
				This email has been encoded with a PGP key from <b>'||pgp_from||'</b>.<br>
				||ifndef||pgp_enabled||
					This verison of ||product|| does not support PGP sorry.
				||endif||
				</i></font></td>

			</tr>
		||endif||


		||ifdef||body_pos||
			<tr><td colspan="2" style="font-size: small;"><a href="||action||?cmd=item-||h_uidl||&amp;body_pos=||body_pos||&amp;fld=||fld||&amp;utoken=||utoken||">MORE</a></td></tr>
		||endif||

		||undef||start||
		||begin_offsite||
			||ifndef||start||
				<tr><td colspan="2"><hr><hr></td></tr>
				<tr><td colspan="2" align="center"><font size = 2><i>
					This emails contain links to images which have been replaced with<br>
					the words "the words "This image has been disabled". Click links<br>
					below to add domains to your trusted site list.<br>
					</i></font>

					<table>
					<tr>	<td><b>||lang_str||Domain||</b></td>
						<td><b>||lang_str||References||</b><td>
						<td>&nbsp;</td>
					</tr>
			||endif||
			||define||start||(||start||&trust=||href_text||offsite||)||

			<tr>	<td>||offsite||</td>
				<td align="center">||offsite_count||<td>
				<td><a href="||action||?cmd=add_trust&trust=||href_text||offsite||&utoken=||utoken||&process=item-||h_uidl||&fld=||fld||">Add to Trusted Sites.</a></td>
			</tr>
		||end_offsite||

		||ifdef||start||
			<tr>	<td><a href="||action||?cmd=add_trust&||start||&utoken=||utoken||&process=item-||h_uidl||&fld=||fld||">Add All These Domain(s) to Trusted Sites</a></td> </tr>
			</table></td></tr>
		||endif||



		</table></td></tr>
		</table>
	</td>
</tr>
</table>
</center>

<form method="post" action="||action||" name="layout">
	<input type="hidden" name="attach_id" value="||attach_id||" />
	<input type="hidden" name="utoken" value="||utoken||" />
	<input type="hidden" name="fld" value="||folder||" />
	<input type="hidden" name="cmd" value="" />
<center>
<table>
<tr>
	<td><input type="submit" value="    Set View    " name="setview-||uidl||" /></td>
	<td><input type="checkbox" name="v_raw" value="on" ||ifnempty||v_raw||checked="checked"||endif|| /><span class="small">Raw</span></td>
	<td><input type="checkbox" name="v_headers" value="on" ||ifnempty||v_headers||checked="checked"||endif|| /><span class="small">Headers</span></td>
	<td><input type="checkbox" name="v_font" value="on" ||ifnempty||v_font||checked="checked"||endif|| /><span class="small">Variable width font</span></td>
</tr>
<tr>
	<td>
		<a href="||http_server||||b_save||&message_file=true">Save to disk</a>
	</td>
	<td><input type="checkbox" name="v_inline" value="on" ||ifnempty||v_inline||checked="checked"||endif|| /><span class="small">Inline Images</span></td>
	<td><input type="checkbox" name="v_exec" value="on" /><span class="small">Enable Attached Scripts etc</span></td>
	<td><input type="checkbox" name="v_show_alt" value="on" ||ifnempty||v_show_alt||checked="checked"||endif|| /><span class="small">Show Both 'alternative' parts</span></td>
</tr>
</table>
</center>
</form>


<table width="100%"><tr><td align="right">||copyright||</td></tr></table>

||ifnequal||folder||copy_name||
	||ifdef||confirm||
	<script type="text/javascript">
	<!--
		if (confirm("||confirm|| wishes you to confirm that you have read this EMail.\nPressing 'ok' will send an EMail telling ||confirm|| that you have read the EMail.")){
			// Send the confirm message.
			link =  '||action||?cmd=send_confirm-||uidl||&amp;fld=||fld||&amp;confirm_email=||href_text||confirm||&amp;utoken=||putoken||&amp;get_attach_id=true';
			open(link, 'confirm','width=1,height=1,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no', 'confirm');
			focus();
		}
	// -->
	</script>
	||endif||
||endif||

<form method="post" action="||action||" name="upload">
	<input type="hidden" name="utoken" value="||utoken||" />
	<input type="hidden" name="folder" value="||folder||" />
	<input type="hidden" name="cmd" value="fileshare_msg-||uidl||" />
	<input type="hidden" name="process" value="item-||uidl||" />
	<input type="hidden" name="share_fld" value="web/Private" />

	<input type="hidden" name="subpart" value="" />
	<input type="hidden" name="part" value="" />
</form>

</body>
</html>
