<!-- Java function for the below is in:
		/nwimg/smooth/script_cmd.js
---->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>	<td><img src="||nwimg||/space.gif" height="1" width="9"></td>
	<td width="100%"><img src="||nwimg||/space.gif" height="1" width="10"></td>
	<td><img src="||nwimg||/space.gif" height="1" width="9"></td>
</tr>
<tr>
	<td background="||nwimg||||tpl_color||/bar_left.gif"><img src="||nwimg||/space.gif" height="25" width="1"></td>
	<td background="||nwimg||||tpl_color||/bar_middle.gif">
		<table cellspacing="0" cellpadding="0">

		<tr>
			<td style="cursor: pointer" onclick="main_checkmail()"><img src="||nwimg||/main_checkmail.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_checkmail()" valign="center" nowrap>&nbsp;||lang_str||Check Mail||</td>

			<td>&nbsp;|&nbsp;</td>

			<td style="cursor: pointer" onclick="main_compose()"><img src="||nwimg||/main_compose.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_compose()" valign="center" nowrap>&nbsp;||lang_str||Compose Mail||</td>

			<td>&nbsp;|&nbsp;</td>

<!--			<td style="cursor: pointer" onclick="main_search()"><img src="||nwimg||/main_search.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_search()" valign="center" nowrap>&nbsp;||lang_str||Search||</td>

			<td>&nbsp;|&nbsp;</td>
-->
		||ifnempty||ldap_server||
			<td style="cursor: pointer" onclick="main_ldap_address()"><img src="||nwimg||/main_address.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_ldap_address()" valign="center" nowrap>&nbsp;||lang_str||Address Book||</td>
		||else||
			<td style="cursor: pointer" onclick="main_address()"><img src="||nwimg||/main_address.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_address()" valign="center" nowrap>&nbsp;||lang_str||Address Book||</td>
		||endif||
			<td>&nbsp;|&nbsp;</td>

		||ifequal||use_surgeplus_calendar||true||
		||ifinstr||surgemail_disallow||surgeplus||
			<td style="cursor: pointer" onclick="main_todo()"><img src="||nwimg||/main_todo.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_todo()" valign="center" nowrap>&nbsp;||lang_str||ToDo List||</td>
		||else||
			<td style="cursor: pointer" onclick="main_xcalendar()"><img src="||nwimg||/main_calendar.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_xcalendar()" valign="center" nowrap>&nbsp;||lang_str||Calendar||</td>
		||endif||
		||else||
			<td style="cursor: pointer" onclick="main_todo()"><img src="||nwimg||/main_todo.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_todo()" valign="center" nowrap>&nbsp;||lang_str||ToDo List||</td>
		||endif||

		<td>&nbsp;|&nbsp;</td>

		||ifdef||surgemail||
		||ifinstr||surgemail_disallow||dbabble||
		||else||
		||ifequal||(||check_id||150||)||true||
			||ifempty||dbabble_name||
				||define||dbabble_name||DBabble||
			||endif||

			<td style="cursor: pointer" onclick="main_dbabble()"><img src="||nwimg||/dbabble.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_dbabble()" valign="center" nowrap>&nbsp;||lang||dbabble_name||</td>
			<td>&nbsp;|&nbsp;</td>
		||endif||
		||endif||
		||endif||

			<td style="cursor: pointer" onclick="main_options()"><img src="||nwimg||/main_options.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_options()" valign="center" nowrap>&nbsp;||lang_str||Options||</td>

			<td align="center" width="100%">
				||ifinstr||connection_type||POP||
					||ifdef||disk_quota||
						||define||xamount||(||pop_size||)||
						||define||xmax||(||disk_quota||)||
					||endif||
				||else||
					||ifequal||enable_imap_quota||true||
						||ifdef||imap_disk_quota||
							||define||xamount||(||imap_size||)||
							||define||xmax||(||imap_disk_quota||)||
						||endif||
					||endif||
				||endif||
				
				||ifgreater||xmax||0||
				<div id="quota" class="clearborder">
				<table cellpadding="0" cellspacing="0">
				<td>	<table border="0" cellpadding="1" cellspacing="1">
					<td bgcolor="||color_border||">
						<table border="0" cellpadding="0" cellspacing="0" height="5" width="50">
					||define||xpercent||(||percent||xamount||xmax||)||
					||ifgreater||xpercent||100|| ||define||xpercent||100|| ||endif||
						<td bgcolor="gray"><img id="quota_bar" src="||nwimg||/quota||iflower||xpercent||80||_ok||endif||.gif" height="5" width="||div||xpercent||2||"></td>
						</table>
					</td>
					</table>
				</td>
				<td>&nbsp; ||lang_str||Quota|| (<span id="quota_percentage">||percent||xamount||xmax||</span>%)</td>
				</table>
				</div>
				||endif||
			</td>

			<td style="cursor: pointer" onclick="main_help()"><img src="||nwimg||/main_help.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_help()" valign="center" nowrap>&nbsp;||lang_str||Help||</td>

			<td>&nbsp;|&nbsp;</td>

			<td style="cursor: pointer" onclick="main_logout()"><img src="||nwimg||/main_logout.gif" border="0"></td>
			<td style="cursor: pointer" onclick="main_logout()" valign="center"nowrap>&nbsp;||lang_str||Logout||</td>

		</tr>
		</table>
	</td>
	<td background="||nwimg||||tpl_color||/bar_right.gif">&nbsp;</td>
</tr>

</table>
<form name="main_popup" method="post" action="||action||" target="_blank">
	<input type="hidden" name="cmd" value="" />
	<input type="hidden" name="page" value="" />
	<input type="hidden" name="utoken" value="||utoken||" />
</form>
<form name="main_list" method="post" action="||action||" target="xlist">
	<input type="hidden" name="cmd" value="" />
	<input type="hidden" name="page" value="" />
	<input type="hidden" name="goto_option" value="" />
	<input type="hidden" name="utoken" value="||utoken||" />

	<input type="hidden" name="force_connection" value="" />
</form>
<form name="main_msg" method="post" action="||action||" target="xmsg">
	<input type="hidden" name="cmd" value="" />
	<input type="hidden" name="page" value="" />
	<input type="hidden" name="utoken" value="||utoken||" />
</form>

<form name="main_addr" method="post" action="||action||" target="xaddrselect">
	<input type="hidden" name="cmd" value="pick_edit" />
	<input type="hidden" name="page" value="addr_select" />
	<input type="hidden" name="utoken" value="||utoken||" />
	<input type="hidden" name="do_select_addr" value="true" />
</form>

<form name="logout" method="post" action="||action||" target="_top">
	<input type="hidden" name="cmd" value="logout_go" />
	<input type="hidden" name="utoken" value="||utoken||" />
||ifnempty||cust_logout_url||
	<input type="hidden" name="url" value="||cust_logout_url||" />
||else||
	<input type="hidden" name="url" value="||http_action||?cmd=abc&msg=||href_text||(||lang_str||You have logged out||)||" />
||endif||
	<input type="hidden" name="msg" value="" />
</form>

<form name="main_calendar" method="post" action="||action||" target="xlist">
	<input type="hidden" name="cmd" value="netwin_login_id-101" />
	<input type="hidden" name="utoken" value="||utoken||" />
</form>
