<html>
<script language="JavaScript">
<!---
function start()
{
||ifnempty||_refresh||
	if (||_refresh|| > 0) {
		setTimeout("refresh()",||_refresh||000)
	}
||endif||
//	if (top.stats) {
//		if (top.stats.document) {
//			top.stats.Message(0);
//		}
//	}
}

function refresh()
{
	document.reload_fld.cmd.value = "reload_mail";
	document.reload_fld.submit();
}

function do_command(command, msg)
{	
	if (top.stats) {
		if (top.stats.document) {
			top.stats.Message(msg);
		}
	}
	window.location = command;
}

function mysubmit(cmd, msg)
{
	if (top.stats) {
		if (top.stats.document) {
			top.stats.Message(msg);
		}
	}
	if (cmd == "switch")
		document.reload_fld.pos.value = "1";
	document.reload_fld.cmd.value = cmd;
	document.reload_fld.submit();
}

function mysubmit_list(cmd, msg)
{
	if (top.stats) {
		if (top.stats.document) {
			top.stats.Message(msg);
		}
	}
	document.List.cmd.value = cmd;
	document.List.submit();
}

function set_host(){
	var host;
	var i;

	for(i=0; i<document.control.host_cur.options.length; i++){
		if(document.control.host_cur.options[i].selected){
			window.parent.menu.document.list.host_cur.value = document.control.host_cur.options[i].value;
		}
	}
}

// -->
</script>

<head>
<title>||current_user|| has ||nitems|| messages</title>
</head>

<body bgcolor="#cedfff" onLoad="start()">
||ifequal||fetch_manual||true||
	<a href="||action||?cmd=get_fetch&folder=||fld||&utoken=||utoken||&force_connection=true&&">Check other accounts</a><br>
||endif||

<form name="reload_fld" method="post" action="||action||">
	<input type=hidden name="utoken" value="||utoken||">
	<input type=hidden name="fld" value="||folder||">
	<input type=hidden name="checknew" value="checknew">
	<input type=hidden name="cmd" value="">
	<input type=hidden name="pos" value="||pos||">
</form>

||ifdef||error||
	<center>
	<table border="10">		
	<tr>
		<td><img src="||nwimg||/attention.gif"></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||

||ifdef||info_msg||
	<h3>Message: ||info_msg||</h3>
||endif||

<form name="control" method="POST" action="||action||">
<input type=hidden name="utoken" value="||utoken||">
<input type=hidden name="cmd" value="">

<table width="100%">
<tr>
	<td>
		<big><b>
		||ifequal||host_num||0||
		||ifdef||_real_name||
			||_real_name||  
		||else||
			||current_user||  
		||endif||
		||else||
			||current_user||  
		||endif||
		</b></big>
		(||folder|| ||nitems|| messages)
		||ifequal||_nnew||0||
		||else||
			||_nnew|| new
		||endif||
		&nbsp;&nbsp;||connection_type|| 
		<br>
		<table border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				Host:
				<select name="host_cur" size=1 onchange="this.form.cmd.value='reload_mail';set_host();this.form.submit();">
					||begin_host||
						<option value="||cur_num||" ||ifequal||host_num||cur_num||selected||endif||>||cur_user|| 
						(||cur_host||:||cur_port||)</option>
					||end_host||
				</select>
			</td>
			<noscript>
			<td><input type="image" border="0" name="reload_mail" src="||nwimg||/get_host.gif"></td>
			</noscript>
		</tr>
		</table>
||ifdef||more_to_download||
	<table>
		<tr>	<td><b>Webmail has downloaded ||ifndef||max_download||100||else||||max_download||||endif||
			leaving ||more_to_download|| to download next time.</b></td>
		</tr>
	</table>
||endif||


		||ifdef||disk_quota||
		||ifdef||pop_size||
		<script>
			if (||disk_quota|| > 0) 
				if (||pop_size||/||disk_quota|| > 0.9) 	    document.writeln("POP Disk space low ||kpop_size|| of ||kdisk_quota|| bytes used");
		</script>
		||endif||
		||endif||
	</td>
	||ifequal||fld||INBOX||
	||ifnequal||_nnew||0||
	<td align="right">
		<img border="0" src="||nwimg||/show_new.gif"  alt="Show New" name="Show New" usemap="#dopopup">
		<map name="dopopup"><area coords="0,0,109,25" href="javascript:window.open('||action||?cmd=list&page=new_msg.tpl&utoken=||putoken||&&','NEWMSG','width=470,height=150,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes');void(0);"></map>
	</td>
	||endif||
	||endif||
	<td align="right">
		<table border="2" cellpadding="3">
		<tr>
			<noscript>
			<td><input type=image border="0" src="||nwimg||/gtfldr.gif" name="switch"></td>		          
			</noscript>
			<td>
				<select name="dstfld" size="1" onchange="this.form.cmd.value='switch';this.form.submit();">
					<option>||fldlist||</option>
					</select>&nbsp;folder
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>
</form>

<form name="List" method="POST" action="||action||">
<input type=hidden name="utoken" value="||utoken||">
<input type=hidden name="cmd" value="">
<input type=hidden name="fld" value="||folder||">

<table border="1" bgcolor="ffffff" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<th></th>
	<th><a href="javascript:SelectAll();">Sel</a></th>
||ifequal||sort_on||subject:||
||ifequal||sort_reverse||true||
	<th><a href="||action||?cmd=list&sort_on=subject:&sort_method=text&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Subject</a></th>
||else||
	<th><a href="||action||?cmd=list&sort_on=subject:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Subject</a></th>
||endif||||else||
	<th><a href="||action||?cmd=list&sort_on=subject:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Subject</a></th>
||endif||

||ifequal||sort_on||from:||
||ifequal||sort_reverse||true||
	<th><a href="||action||?cmd=list&sort_on=from:&sort_method=text&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">From</a></th>
||else||
	<th><a href="||action||?cmd=list&sort_on=from:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">From</a></th>
||endif||||else||
	<th><a href="||action||?cmd=list&sort_on=from:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">From</a></th>
||endif||

	<th>Fwd</th>
||ifequal||sort_on||date:||
||ifequal||sort_reverse||true||
	<th><a href="||action||?cmd=list&sort_on=date:&sort_method=date&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Date</a></th>
||else||
	<th><a href="||action||?cmd=list&sort_on=date:&sort_method=date&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||'">Date</a></th>
||endif||||else||
	<th><a href="||action||?cmd=list&sort_on=date:&sort_method=date&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Date</a></th>
||endif||
		
	<th>Time</th>
||ifequal||sort_on||h_bytes||
||ifequal||sort_reverse||true||
	<th><a href="||action||?cmd=list&sort_on=h_bytes&sort_method=number&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Bytes</a></th>
||else||
	<th><a href="||action||?cmd=list&sort_on=h_bytes&sort_method=number&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Bytes</a></th>
||endif||||else||		
	<th><a href="||action||?cmd=list&sort_on=h_bytes&sort_method=number&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Bytes</a></th>
||endif||
	<th>Attach</th>
	<th>Host</th>
</tr>

||define||max_line_count||2||

		||begin_list||

||ifequal||h_isdraft||0||

||ifequal||line||0||
<tr bgcolor="#C0C0C0">
||else||
<tr bgcolor="#ffffff">
||endif||
	<td nowrap>
		<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=read&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/iread||h_isread||.gif"></a>
		<img src="||nwimg||/iattach||h_isattached||.gif">
		<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=reply&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/ireply||h_isreplied||.gif"></a>
		<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=delete&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/idelete||h_isdeleted||.gif"></a>
	</td>
	<td><input type=checkbox name="sel_||h_uidl||" value="on"></td>
	<td nowrap>
		<img src="||nwimg||/iunseen||h_isunseen||.gif">
		<a href="||b_item||" >
			||ifdef||h_pri||
				||ifequal||h_pri||urgent||
					<font color="#FF0000"><b>Urgent</b> ||lchop||h_subject||40||</font>
				||else||
					||iflower||h_pri||1||
						||lchop||h_subject||40||
					||else||
						||iflower||h_pri||3||
							<font color="#FF0000"><b>Urgent</b> ||lchop||h_subject||40||</font>
						||else||
							||lchop||h_subject||40||
						||endif||
					||endif||
				||endif||
			||else||
				||lchop||h_subject||40||
			||endif||
		</a>
	</td>
	<td>||html_text||h_from_personal||&nbsp;</td>
	<td><a href="||b_forward_edit||">Fwd</a></td>
	<td>||h_date_day||</td>
	<td nowrap>||h_date_time||</td>
	<td>||h_bytes||</td>
	<td>||h_attach||</td>
	<td>||h_user||@||h_host||</td>
||else||

||ifequal||line||0||
	<tr bgcolor="#C0C0C0">
	<td nowrap center>
||else||
	<tr bgcolor="#ffffff">
	<td nowrap center>
||endif||
		(DRAFT)
		<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=delete&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/idelete||h_isdeleted||.gif"></a>
	</td>
	<td><input type=checkbox name="sel_||h_uidl||" value="on"> </td>
	<td nowrap><a href="||b_item||" >||chop||h_subject||40||</a></td>
	<td></td>
	<td><a href="||b_forward_edit||">Fwd</a></td>
	<td>||h_date_day||<td nowrap>||h_date_time||</td>
	<td>||h_bytes||<td>||h_attach||</td>
	<td>||h_user||||ifinstr||h_user||@||||else||@||h_host||||endif||</td>
||endif||
		||end_list||

</tr>		
<tr>
	<td>&nbsp;</td>
	<td nowrap><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td>
	<td nowrap><i>Select all</i></td>
	<td colspan="7">&nbsp;</td>
</tr>
</table>

<br>
<table border="2" width="100%" cellspacing="0" cellpadding="0">
<tr>
	<td colspan="5">
		<table width="100%" cellspacing="0" cellpadding="0" rules="0">
		<tr>
			<td><font size="4"><b>Selected Items</b></font></td>
			<td>
				||ifdef||num_pages||

				||ifequal||num_pages||1||
				||else||
				<table border="0" cellpadding="2" cellspacing="0">
				<tr align="center"><td>
					<table border=0 cellpadding="0" cellspacing="0">
					<tr>	

				||ifdef||pageup||
						<td><a href="||action||?cmd=list&pos=||pageup||&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/lendcol.gif"></a></td>
				||else||
						<td><img border=0 src="||nwimg||/lend.gif"></td>
				||endif||

					||begin_pages||
					||iflower||npage||10||
					||ifequal||npage||page_pos||
						<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/||npage||on.gif"></a></td>
					||else||
						<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/||npage||off.gif"></a></td>
					||endif||

					||else||
					||ifequal||npage||10||

						||iflower||9||page_pos||
							<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/staron.gif"></a></td>
						||else||
							<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/staroff.gif"></a></td>
						||endif||
					
					||endif||
					||endif||
					||end_pages||

				||ifdef||pagedown||
						<td><a href="||action||?cmd=list&pos=||pagedown||&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/rendcol.gif"></a></td>
				||else||
						<td><img border=0 src="||nwimg||/rend.gif"></td>
				||endif||

					</tr>
					</table>
				</td>
				</table>
				||endif||
			</td>
			<td align="right"><b>Page ||page_pos|| of ||num_pages||</b></td>
		</tr>
		</table>
	</td>
</tr>
<tr>
	<td width="38%">
		<table align="center" width="230" cellspacing="0" cellpadding="0">
		<tr>
			<td><input type=image border="0" src="||nwimg||/forward.gif" name=forwardsel></td>
			<td><input type=image border="0" src="||nwimg||/delete.gif" name=delsel></td>
		</tr>
		</table>
	</td>
    <td width="62%">
		<table width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td align="right">
				<table width="230">
				<tr>
					<td><input type=image border="0" src="||nwimg||/copyto.gif" name=copysel></td>
					<td><input type=image border="0" src="||nwimg||/moveto.gif" name=movesel></td>
				</tr>
				</table>
			</td>
    		<td align="center">
				<select name="dstfld" size="1">
					||begin_fld_short||
						<option>||fld_name||</option>
					||end_fld_short||
				</select>
				&nbsp;folder
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>



</center>
||endif||
</td>
</form></tr></table>

<table border="4" width="100%" cellpadding="0"><tr valign="middle">
<tr>
	<td>
		<table border="0" rules="none" cellspacing="0" cellpadding="0">
		<tr>
			<td><img src="||nwimg||/iread0.gif"></td>
			<td>/</td>
			<td><img src="||nwimg||/iread1.gif"></td>
			<td>&nbsp; = unread/read</td>
		</tr>
		</table>
	</td>
	<td>
		<table border="0" rules="none" cellspacing="0" cellpadding="0">
		<tr>
			<td><img src="||nwimg||/iunseen1.gif"></td>
			<td>&nbsp; = new</td>
		</tr>
		</table>
	</td>
	<td>
		<table border="0" rules="none" cellspacing="0" cellpadding="0">
		<tr>
			<td><img vspace="0" src="||nwimg||/iattach1.gif"></td>
			<td> = attachment</td>
		</tr>
		</table>
	</td>
	<td>
		<table border="0" rules="none" cellspacing="0" cellpadding="0">
		<tr>
			<td><img src="||nwimg||/ireply1.gif"></td>
			<td>&nbsp; = replied</td>
		</tr>
		</table>
	</td>
	<td>
		<table border="0" rules="none" cellspacing="0" cellpadding="0">
		<tr>
			<td><img src="||nwimg||/idelete1.gif"></td>
			<td>&nbsp; = Deleted</td>
		</tr>
		</table>
	</td>
</tr>
</table>


<center>
<form method="post" action="||action||">
<input type="hidden" name="utoken" value="||utoken||">
<table border=1 cellspacing="0" cellpadding="0">
<tr>
	<td colspan="3">
		<table border="0" width="100%">
		<tr>
			<td align="center"><h3>To Do List</h3></td>
			<td>
				<input type="image" border="0" name="todo" src="||nwimg||/add.gif">
			</td>
		</tr>
		</table>
	</td>
</tr>
<tr>
	<th></th>
	<th width="10%">Date</th>
	<th width="80%">Note</th>

||begin_todo||
||ifdef||tdl_old||
	<tr bgcolor="#C0C0C0">
		<td><a href="||action||?cmd=todo_delete-||tdl_name||&utoken=||utoken||">dele</a></td>
		<td>||tdl_date||</td>
		<td><a href="||action||?cmd=todo-||tdl_name||&utoken=||utoken||">
		||ifdef||tdl_note||
			||lchop||tdl_note||40||
		||else||
			(No Note)
		||endif||
		</a></td>
	</tr>
||else||
||ifdef||tdl_today||<tr bgcolor="#FFC0C0">

		<td><a href="||action||?cmd=todo_delete-||tdl_name||&utoken=||utoken||">dele</a></td>
		<td>||tdl_date||</td>
		<td><a href="||action||?cmd=todo-||tdl_name||&utoken=||utoken||">
		||ifdef||tdl_note||
			||lchop||tdl_note||40||
		||else||
			(No Note)
		||endif||
		</a></td>
	</tr>
||endif||
||endif||
||end_todo||
</table>
</center>
</form>



||ifdef||rule_log||
	<center>
		<table border bgcolor="ffffff">
			<tr><th>Log of rule processing</tr>
			<tr><td><pre>||rule_log||</pre></td></tr>
		</table>
	</center>
||endif||

||ifdef||_no_logout||
	<p>Please Note: You did not Logout from last session.</p>
||endif||

||copyright||

||ifequal||_played_sound||2||
||ifdef||_sound_file||
||ifdef||_nnew||
	<script language="JavaScript">
	<!---
	if (||_nnew|| > 0) {
		var MSIE=navigator.userAgent.indexOf("MSIE");
		var NETS=navigator.userAgent.indexOf("Netscape");
		var OPER=navigator.userAgent.indexOf("Opera");
		if((MSIE>-1) || (OPER>-1)) {
			document.write('<BGSOUND SRC="||_sound_file||" LOOP=false>');
		} else {
			document.write('<EMBED SRC="||_sound_file||" autostart=true loop=false volume=100 align="center" width=0 height=0 controls=smallconsole>');
		}
	}
	// -->
	</script>
||endif||
||endif||
||endif||

</body>
||ifdef||list_email_charset||
	<meta http-equiv="Content-type" content="text/html; charset=||list_email_charset||">
||endif||
</html>

<script language="JavaScript">
<!--

function SelectAll()
{
	if (document.List.allbox.checked == true) {
		document.List.allbox.checked = false;
	}
	else {
		document.List.allbox.checked = true;
	}
	CheckAll();
}

function CheckAll()
{
	for (var i=0;i<document.List.elements.length;i++)
	{
		var e = document.List.elements[i];
		if (e.name != 'allbox')
			e.checked = document.List.allbox.checked;
	}
}
//-->
</script>
