<html {$html_attrs}>
<head>
<title>##message REGISTER##</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
<style>
#center_block {width:50%;margin:0 auto;min-width:500px;}
#contents_block {text-align:center;}
#header_block {white-space:nowrap;height:25px;padding:0 10px 5px;text-align:center;}
#main_block {padding:10px 0 5px 0;text-align:center;}
#inmain_block {margin:0 10px}
#fields_block {width:100%;margin:0;padding:10px}
#header_block > span {margin:0 5px}
#buttons_block {padding:10px 10px 5px}
#buttons_block div {padding:3px}
#inmain_block {margin:0 0px;width:100%}
#fields_block td {padding:3px 14px}
#username_block td {padding-top:13px;white-space:nowrap;}
#space_block td {padding-bottom:13px}
#captcha_block td {padding-bottom:13px}
#main_block {padding:10px 10px 5px 10px;}
</style>
</head>
<body>
{BEGIN body}
{$header}
<table align=center id="center_block"><tr><td id="contents_block">
<b class="xtop"><b class="rb1 rb1_top"></b><b class="rb2 rb2_top"></b><b class="rb3 rb3_top"></b><b class="rb4 rb4_top"></b></b>
<div id="header_block" class="top">
<b><font size=+1>##message REGISTER##</font></b>
</div>
<div id="main_block" class="xboxcontentb" >
<div id="inmain_block" class="xboxcontentb" >

<b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>
<table cellpadding=4 cellspacing=0 border=0 id="fields_block" class="loginshade">
{BEGIN username_block}
<tr id="username_block">
	<td align=left width=50%> 
		<div align="left">##Fields[strName==@BUILDER.strUserNameField].strLabel##:</div>
	</td>
	<td width=50%> 
		{$##@BUILDER.strUserNameField g##_editcontrol}&nbsp;<img src="images/icon_required.gif">
		<div class="error">{$user_msg}</div>
	</td>
</tr>
{END username_block}
##if @BUILDER.strPasswordField!=@BUILDER.strUserNameField##
{BEGIN password_block}
<tr id="password_block">
	<td align=left width=50%> 
		<div align="left">##message PASSWORD##:</div>
	</td>
	<td width=50%> 
		<input type=password {$password_attrs}>&nbsp;<img src="images/icon_required.gif">
		<div class="error">{$password_msg}</div>
	</td>
</tr>
{END password_block}
{BEGIN confirm_block}
<tr id="confirm_block">
	<td align=left width=50%> 
		<div align="left">##message REENTER##:</div>
	</td>
	<td width=50%> 
		<input type=password {$confirm_attrs}>&nbsp;<img src="images/icon_required.gif">
		<div class="error">{$reenter_msg}</div>		
	</td>
</tr>
{END confirm_block}
##endif##
##foreach @BUILDER.Registration.arrUserFields as @f filter @f!=@BUILDER.strUserNameField && @f!=@BUILDER.strPasswordField##
{BEGIN ##@f g##_fieldblock}
<tr id="##@f g##_fieldblock">
	<td align=left width=50%> 
		<div align="left">##Fields[strName==@f].strLabel##:</div>
	</td>
	<td width=50%> 
		{$##@f g##_editcontrol}
    	##if NeedLegendIcon(Fields[strName==@f])##&nbsp;<img src="images/icon_required.gif">##endif##
		##if @f==@BUILDER.strUserEmailField##
		<div class="error">{$email_msg}</div>
		##endif##
	</td>
</tr>
{END ##@f g##_fieldblock}
##endfor##
<tr id="space_block"><td colspan=2></td></tr>
##if @BUILDER.bCaptcha##
{BEGIN captcha_block}
<tr id="captcha_block"> 
	<td colspan=2> 
		{$captcha}
		<div style="white-space:nowrap">##message SEC_TYPETHECODE##:</div>
	<input name=captcha value="" type=text />
	<div class="error">{$captcha_msg}</div>
	</td>
</tr>
{END captcha_block}
##endif##
</table>
{BEGIN buttons_block}
<div id="buttons_block" class="downedit">
	<div id="submit_block">
	<span class=buttonborder><input type=submit value="##message SUBMIT##" class=button {$submit_attrs}></span>
	</div>
	{BEGIN message_block}
	<div>
	<font color=red>{$message}</font>
	</div>
	{END message_block}
	<div>
	<a href="login.##@ext##">##message BACK_TO_LOGIN##</a>
	</div>
</div>
{END buttons_block}
<b class="xbottom"><b class="xb4a"></b><b class="xb3a"></b><b class="xb2a"></b><b class="xb1a"></b></b>
</div>
</div>
<b class="xbottom"><b class="xb4b4"></b><b class="xb3b4"></b><b class="xb2b4"></b><b class="xb1b4"></b></b>
</td></tr></table>
{$footer}
{END body}
</body>
</html>
