<!--
	Note:  If you want to customize the WebMail templates to integrate with your website then it is much easier to
	edit the vanilla, iconic or marble template sets rather than the panel template set.
	If you have the WebMail included with SurgeMail then you will not have a copy of these template sets.  You can
	get a copy by downloading the full WebMail distribution from:
		http://netwinsite.com/webmail/download2.htm
-->
<!--
	Administrators:
	WebMail's default configuration allows users to login to the default POP/IMAP server only.<br />

	If you want users to be able to login to other POP/IMAP servers then you need to put a setting like this in your ini file:<br />
		valid_host x,y,z<br />

	Where x,y,z is a comma separated list of the POP/IMAP servers you want to allow.<br />
	See the vanilla or iconic login.tpl for details.
-->
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="Expires" content="-1" />

	<link rel="StyleSheet" href="skin.css" type="text/css" />
	<script type="text/javascript" src="||nwimg||/script_main.js"></script>
	<script type="text/javascript" src="||nwimg||/script_cmd.js"></script>
</head>

||include||css_red.tpl||

<title>||cust_title|| - Web Mail Client</title>
</head>


<body background="||nwimg||/background.gif" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" onload="window.focus();document.loginform.user.focus();">

<noscript>
<center>
<table border="1">
	<tr>	<td bgcolor="ffffff">
	||lang_str||Javascript is disabled in your web browser.  You will need to enable javascript for this template set to function correctly.||
		</td>
	</tr>
</table>
<p>&nbsp;</p>
</center>
</noscript>

<form action="||action||" method="post" name="loginform">
	<input type="hidden" name="cmd" value="login" />
	<input type="hidden" name="tcode" value="||tcode||" />
	<input type="hidden" name="frames" value="false" />
	<input type="hidden" name="email" value="||email||" />
	<input type="hidden" name="frames" value="true" />
	<input type="hidden" name="page" value="frame.tpl" />
	<input type="hidden" name="on_error" value="show" />
	<input type="hidden" name="err_page" value="login.tpl" />
<!--- Javascript Variables --->
<script language="javascript">
<!--
	var d=new Date();
	var timezone = -d.getTimezoneOffset();
	document.writeln('<input type="hidden" name="gmt_mins" value="'+timezone+'" />');
//-->
</script>


||define||height||110||
||undef||xmsg||
||ifdef||msg||
	||define||height||60||
	||define||xmsg||msg||
||endif||
||ifdef||error||
	||define||height||60||
	||define||xmsg||(||error|| ||mgs||)||
||endif||

<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>	<td valign="top">||version||<br>
			<img src="||nwimg||/space.gif" width="280" height="||height||"></td>
	<td width="100%">&nbsp;</td>
</tr>
||ifinstr||error||pay to continue||
	||include||payment.tpl||
||else||
	||ifdef||xmsg||
<tr>	<td><img src="||nwimg||/space.gif" width="280" height="||height||"></td>
	<td width="100%"><font class="error"><b>||xmsg||</b></font></td>
</tr>
	||endif||
||endif||

<tr>	<td>&nbsp;</td>

	<td width="100%">
		<table width="100%">
		<tr>	<td class="maintitle">||lang_str||Welcome to|| ||cust_display_name||</td></tr>

		<tr>	<td>
				<table>
				<tr>	<td align="right"><b>||lang_str||Username||:</b></td>
					<td nowrap="nowrap"><input type="text" size="10" maxlength="256" name="user" tabindex="1" value="||user||" /> @
						||ifequal||domain_select||true||
							||ifndef||loaded_surgehost_file||
								||domain||
							||else||
								<select name="select_domain">
								||begin_domain||
									<option ||ifequal||domain||domain_name||selected||endif||>||domain_name||</option>
								||end_domain||
								</select>
							||endif||
						||else||
							||domain||
						||endif||
					</td>

					<td rowspan="4"><img src="||nwimg||/space.gif" width="20" height="1"></td>
					<td rowspan="4">
						<input type="image" src="||nwimg||/login.gif" alt="Login" name="login" tabindex="3" style="border-width: 0px;" /><br />
						<b>||lang_str||Login||</b>
					</td>
				</tr>
				<tr>	<td align="right"><b>||lang_str||Password||:</b></td>
					<td><input type="password" size="10" maxlength="256" name="pass" tabindex="2" value="" /></td>
				</tr>

				||ifdef||allow_login_host||
				<tr>	<td align="right"><b>||lang_str||Host||:</b></td>
					<td><input type="host" size="25" maxlength="256" name="host" tabindex="2" value="||host||" /></td>
				</tr>
				||endif||

				||ifdef||multiple_tpl||
				<tr>
					<td align="right" nowrap="nowrap"><font style="font-weight:bold;">||lang_str||Template Set||:</font></td>
					<td nowrap="nowrap">
						<select name="selected_tpl" size="1" onChange="document.reloginform.selected_tpl.value = document.loginform.selected_tpl.value; document.reloginform.user.value = document.loginform.user.value; document.reloginform.submit();">
							<option value="">(||lang_str||default||)</option>
					||begin_tpl_login||
						||ifdef||tpl_color_name||
							||ifequal||selected_tpl||(||tpl_number|| ||tpl_color_img||)||
								<option value="||tpl_number|| ||tpl_color_img||" selected>||tpl_color_name||</option>
							||else||
								<option value="||tpl_number|| ||tpl_color_img||">||tpl_color_name||</option>
							||endif||
						||else||
							||ifequal||selected_tpl||tpl_number||
								<option selected="selected" value="||tpl_number||">||tpl_text||</option>
							||else||
								<option value="||tpl_number||">||tpl_text||</option>
							||endif||
						||endif||
					||end_tpl_login||
						</select>
					</td>
				</tr>
				||endif||
				<tr>
					<td align="right" nowrap="nowrap"><font style="font-weight:bold;">||lang_str||Language||:</font></td>
					<td><select name="_tpl_lang" size="1" onChange="document.reloginform._tpl_lang.value = document.loginform._tpl_lang.value; document.reloginform.user.value = document.loginform.user.value; document.reloginform.submit();">
						||begin_support_lang||
							<option value="||lang_name||" ||ifequal||_tpl_lang||lang_name||selected||endif||>||lang_name||</option>
						||end_support_lang||
					</select></td>
				</tr>


				||ifdef||authent_cookie||
				<tr>	<td nowrap="nowrap"></td>
					<td nowrap="nowrap"><input class="clear" type="checkbox" name="set_cookie" value="ON" /> <b>||lang_str||Remember me for 30 days||</b></td>
				</tr>
				||endif||

				</table>

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

<!--
<tr>	<td><img src="||nwimg||/space.gif" width="1" height="30"></td>
	<td width="100%">
		<b>||lang_str||Note||:</b> ||lang_str||Smooth template set designed for Netscape v7.1+, IE v6.0+||. <br />
			||lang_str||All other template sets work on other browsers||.
	</td>
</tr>
-->

<tr>	<td>&nbsp;</td>

	<td width="100%">
		<table width="100%">
		<tr>	<td><img src="||nwimg||/space.gif" width="10" height="1"></td>
			<td&nbsp;</td>
		<tr>

		||ifndef||no_user_create||
		||ifequal||(||check_id||0||)||true||
		<tr>	<td colspan="2" class="title">||lang_str||New Users||:</td>
		</tr>
		<tr>	<td>&nbsp;</td>
			<td>||lang_str||To sign up for a|| ||cust_display_name|| ||lang_str||account click|| <a href="||get_id_link||0||?cmd=user_check"><b>||lang_str||here||</b></a></td>
		</tr>
		||endif||
		||endif||

		<tr>
			<td colspan="2" class="title">||lang_str||Help||:</td>
		</tr>
		<tr>	<td>&nbsp;</td>
			<td>
				||ifndef||no_user_forgot||
				||ifequal||(||check_id||0||)||true||
				* <a href="||get_id_link||0||?cmd=cmd_user_forget">||lang_str||Forgot Password||</a><br />
				||endif||
				||endif||

				* <a href="||action||?page=help">||cust_display_name|| ||lang_str||Users Guide||</a><br />
				||ifdef||register||
				* <a href="http://netwinsite.com/top_mail.htm">||lang_str||Other NetWin Products||</a><br />
				||endif||

				||ifdef||about_mail||
				* <a href="/about_mail.htm">||lang_str||About SurgeMail||</a><br />
				||endif||

				||ifdef||admin_email||
				* <a href="mailto:||admin_email||">||lang_str||Contact Us||</a><br />
				||endif||
			</td>
		</tr>


		||ifdef||register||
		||ifnequal||cust_no_admin_links||true||
		<tr>	<td>&nbsp;</td>
			<td>
				WebMail is currently running using a temporary licence.
				If you are the system administrator of this site and you wish
				to register this copy of ||cust_display_name|| then you should click here
				||register|| to enter order details.
			</td>
		</tr>
		||endif||

		||ifnequal||cust_no_admin_links||true||
		<tr>	<td colspan="2" class="title">Administrators:</td>
		<tr>	<td>&nbsp;</td>
			<td>
				To customize the appearance of ||cust_display_name|| <a href="||action||?cmd=custom">click here</a><br />
				To access the user manager page <a href="||action||?cmd=manager">click here</a><br />
				To tailor this page, edit ||templates||/login.tpl
			</td>
		</tr>

		||endif||
		||endif||

		</table>
	</td>

</tr>

</table>

</form>

<form action="||action||" method="post" name="reloginform">
	<input type="hidden" name="cmd" value="asd" />
	<input type="hidden" name="user" value="" />
	<input type="hidden" name="_tpl_lang" value="" />
	<input type="hidden" name="selected_tpl" value="" />
</form>

</body>
</html>

