<? $this->load->view( $this->aSystemVar['template_viewer_root'] . '_header_simple') ?>
<script language="javascript" type="text/javascript">
	function nickname_status( ans )
	{
		container = document.getElementById('nick_message');
		name = document.getElementById('Name').value
		if ( 'true' == ans )
		{
			container.innerHTML = '' + name + ' ' + <?= '\'' . $this->lang->line('is_available') . '\'' ?>;
			container.className='available';

		}
		else
		{
			container.innerHTML = '' + name + ' ' + <?= '\'' . $this->lang->line('is_not_available') . '\'' ?>;
			container.className='unavailable';
		}
		return true;
	}
</script>

<div id="breadcrumb">
	<?= anchor(base_url(true), $this->lang->line('home')) . ' ' . $this->config->item('breadcrumb_divider') . ' ' . $this->lang->line('registration') ?>
</div>
	<div id="registration">
					<div class="errorBlock">
						&nbsp;<?= $this->validation->error_string ?>
					</div>


							<div class="formBlock">
								<div class="fSet">
								<div class="legend"><?= $this->lang->line('register_user') ?></div>
								<?=form_open('user/save')?>

									<input type="hidden" name="ReturnPath" value="<?= $data['ReturnPath'] ?>" />
									<div class="clearBoth"></div>
									<div class="text"><?=$this->lang->line('user_name')?>:<a href="javascript:void(0);" class="autohelp" onClick="javascript: getAsyncHelp( event, '<?= site_url('async/topic/_user_registration_nickname');?>' ); return false;" onMouseOut="javascript:  hideAsyncHelp();">[?]</a></div>
									<div class="input"><input type="text" name="Name" id="Name" class="text" value="<?=$data['User']['Name']?>" /></div>
									<div class="clearBoth"></div>
									<div class="text"><span id="nick_message">&nbsp;</span></div>
									<div class="input">
										<span><input type="button" name="checkAbility" value="<?= $this->lang->line('check_ability') ?>" onclick="javascript: var url = '<?= site_url('async/unique_nickname_check');?>' + '/' + document.getElementById('Name').value; serverQuery( nickname_status, url ); return false;" /></span>
									</div>
									<div class="clearBoth"></div>

									<div class="text"><?=$this->lang->line('user_password')?>:<a href="javascript:void(0);" class="autohelp" onClick="javascript: getAsyncHelp( event, '<?= site_url('async/topic/_user_registration_password');?>' ); return false;" onMouseOut="javascript: hideAsyncHelp();">[?]</a></div>
									<div class="input"><input type="password" name="Password" class="password" /></div>
									<div class="clearBoth"></div>

									<div class="text"><?=$this->lang->line('user_password_conf')?>:</div>
									<div class="input"><input type="password" name="PasswordConf" class="password" /></div>
									<div class="clearBoth"></div>

									<div class="text"><?=$this->lang->line('user_email')?>:</div>
									<div class="input"><input type="text" name="Email" class="text" value="<?=$data['User']['Email']?>" /></div>
									<div class="clearBoth"></div>

									<? if ( !empty($data['User']['SecurityCode']) ): ?>
										<div class="text" style="height:80px;">
											<div class="warning"><?= $this->lang->line('WARNING')?></div>
											<div><img src="<?=site_url('catalog/get_security_image')?>" alt="security image" title="security image" /></div>
										</div>
										<div class="input">
											<?= $this->lang->line('human_only') ?>
											<input type="text" class="text" name="SecurityCode" />
										</div>
										<div class="clearBoth"></div>
									<? endif; ?>
									<div class="submit" style="text-align:center;"><input type="image" class="submit" src="<?= $this->config->item('design_pic_url'); ?>submit_button.gif" /></div>
									<div class="clearBoth"></div>
								<?=form_close()?>
								</div>
							</div>


					<div class="clearBoth"></div>
			</div>
<? $this->load->view( $this->aSystemVar['template_viewer_root'] . '_footer_simple') ?>