<?php 
/**
  Copyright:
  Copyright (C) 2008 IceTheme. All Rights Reserved
  
  License:
  Copyrighted Commercial Software 
  
  Author:
  IceTheme - http://wwww.icetheme.com
 */
defined( '_JEXEC' ) or die( 'Restricted access' );


?>

  <script type="text/javascript">
			window.addEvent('domready', function(){
	new FormCheck('josForm', {
		display : {
			showErrors : 0,	
			closeTipsButton : 1,
			flashTips: 1,
			errorsLocation: 1
		}
	})
});
</script>





<form action="<?php echo JRoute::_('index.php?option=com_user#content'); ?>" method="post" id="josForm" name="josForm" class="form-validate user">
	<?php if(isset($this->message)) :
		$this->display('message');
	endif; ?>
	<fieldset>
    	<legend><?php echo JText::_('Registration'); ?></legend>
		<p><?php echo JText::_('REGISTER_REQUIRED'); ?></p>
		<p>
			<label id="namemsg" for="name"><?php echo JText::_('Name'); ?>: *</label><br />
			<input type="text" name="name" id="name" value="<?php echo $this->user->get('name'); ?>" class="validate['required'] inputbox" maxlength="50" />
		</p>
        
		<p>
			<label id="usernamemsg" for="username"><?php echo JText::_('Username'); ?>: *</label><br />
			<input type="text" id="username" name="username"  value="<?php echo $this->user->get('username'); ?>" class="validate['required'] inputbox" maxlength="25" />
		</p>
        
		<p>
			<label id="emailmsg" for="email"><?php echo JText::_('Email'); ?>: *</label><br />
			<input type="text" id="email" name="email"  value="<?php echo $this->user->get('email'); ?>"class="validate['required','email'] inputbox" maxlength="100" />
		</p>

		<p>
			<label id="pwmsg" for="password"><?php echo JText::_('Password'); ?>: *</label><br />
			<input type="password" id="password" name="password" value="" class="validate['required','length[6,-1]','alphanum'] inputbox"  />
		</p>
		
        <p>
			<label id="pw2msg" for="password2"><?php echo JText::_('Verify Password'); ?>: *</label><br />
			<input type="password" id="password2" name="password2" value="" class="validate['confirm[password]'] inputbox"/>
		</p>
	</fieldset>
    <p class="buttonarea clearfix">
    	<button type="submit" class="validate"><span class="round"><span><?php echo JText::_('Register'); ?></span></span></button>
    </p>
	<input type="hidden" name="task" value="register_save" />
	<input type="hidden" name="id" value="0" />
	<input type="hidden" name="gid" value="0" />
	<input type="hidden" name="<?php echo JUtility::getToken(); ?>" value="1" />
</form>
