<? $this->load->view( $this->aSystemVar['template_viewer_root'] . '_header') ?>
<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('openid/saveuser')?>

									<div class="clearBoth"></div>
									<div class="text">OpenId:</div>
									<div class="input">
										<img src="<?=site_url('views/_images/openid-icon-small.gif')?>" style="margin-right: 3px;" align="absmiddle" height="16" width="16" />
										<strong><?=$data['User']['openid']?></strong>
										<input type="hidden" name="OpenId" value="<?=$data['User']['openid']?>" />
									</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']['nickname']?>" /></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_email')?>:</div>
									<div class="input"><input type="text" name="Email" class="text" value="<?=$data['User']['email']?>" /></div>
									<div class="clearBoth"></div>

									<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') ?>