<html>
||include||meta.tpl||
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<link rel="stylesheet" type="text/css" href="||nwimg||||tpl_color||/surge.css" />
<title>||lang_str||Login to|| ||cust_title||</title>
</head>
<body class="body" topmargin="0" onload="window.focus();document.loginform.user.focus();">
<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="true" />
<input type="hidden" name="email" value="||email||" />
<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>

<noscript>
<P><DIV align="center">
<TABLE class="I">
<TR><TD class="red c b">
	||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>
</DIV><P>
</noscript>

||ifdef||error||
	||ifinstr||error||pay to continue||
		||include||_payment.tpl||
	||else||
		||include||_errorinline.tpl||
	||endif||
||endif||
||ifdef||msg||
	||include||_msginline.tpl||
||else||
	||ifequal||cmd||logout||
		||define||msg||(||lang_str||You have been logged out||)||
		||include||_msginline.tpl||
	||endif||
||endif||

<center>
<table width="450" border="0" cellspacing="0" cellpadding="10">
<tr><td height="30"></td></tr>
<tr class="login1">
	<td height="30">||lang_str||Welcome to|| ||domain||'s ||lang_str||email system||</td>
</tr>
<tr class="login2">
	<td align="center">
		<table>
		<tr>
			<td>||lang_str||Username||</td>
			<td><input type="text" NAME="user" 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>
		</tr>
		<tr>
			<td>||lang_str||Password||</td>
			<td><input type="password" name="pass" /></td>
		</tr>
		||ifdef||allow_login_host||
		<tr>
			<td>||lang_str||Host||:</td>
			<td><input type="host" maxlength="256" name="host" value="||host||" /></td>
		</tr>
		||endif||

		||ifdef||template||
			<input type="hidden" name="selected_tpl" value="||template||">
		||else||
		||ifdef||multiple_tpl||
			<tr>
				<td>||lang_str||Template Set||</td>
				<td>
					<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||
		||endif||

		||ifdef||language||
			<input type="hidden" name="_tpl_lang" value="||fix_lang||">
		||else||	
		
		||define||langsel||0||
		||begin_support_lang|| ||define||tmp_lang_name||lang_name|| ||define||langsel||(||add||langsel||1||)|| ||end_support_lang||
		||ifgreater||langsel||1||
			<tr>
				<td>||lang_str||Language||</td>
				<td>
					<select name="_tpl_lang" onChange="document.reloginform._tpl_lang.value = document.loginform._tpl_lang.value; document.reloginform.user.value = document.loginform.user.value; document.reloginform.submit();" size="1">
						||begin_support_lang||
							<option value="||lang_name||" ||ifequal||_tpl_lang||lang_name||selected="selected"||endif||>||lang_name||</option>
						||end_support_lang||
					</select>
				</td>
			</tr>
		||else||
			<input type="hidden" name="_tpl_lang" value="||tmp_lang_name||">
		||endif||
		||endif||
		||ifdef||authent_cookie||
			<tr>
				<td colspan="2" class="c">
					||lang_str||Remember me for 30 days||
					<input type="checkbox" name="set_cookie" value="on" />
					<a class="LF" href="||action||?page=help&goto=help_login">||lang_str||more info||</a>
				</td>
			</tr>
		||endif||
		<tr>
			<td colspan="2" class="c"><input type="submit" class="btn" name="login" value="||lang_str||Log me in||"></td>
		</tr>
		</table>
	</td>
</tr>
||ifdef||current_status||
<tr class="I">
	<td height="30" class="LF b c">||current_status||</td>
</tr>
||endif||
<tr class="login1">
	<td height="30"><a href="||action||?page=help">||lang_str||For help using|| ||cust_title|| ||lang_str||click here||</a></td>
</tr>

||ifdef||admin_email||
<tr class="login1">
	<td height="30"><a href="mailto:||admin_email||">||lang_str||Contact Us||</a></td>
</tr>
||endif||

||ifdef||about_mail||
<tr>
	<td style="text-align:right;padding-top:2px;"><a href="/about_mail.htm">||lang_str||about SurgeMail||</a></td>
</tr>
||endif||  


</table>
</center>
</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>
