{include file="$gentemplates/$header_tpl"}
	<h2>{$lang.account.subheader_changegroup}</h2>
	<form name="change_group" action="{$form.action}" method="post">
	{$form.hiddens}
	{$lang.account.toptext}<br />
	
        {*if $form.err}
		<font class="error_msg">*&nbsp;{$form.err}</font>
	{/if*}
	
	<p>{$lang.account.account_count}:&nbsp;{$data.count}&nbsp;{$data.account_points}</p>
	<p>{$lang.account.present_groups}:&nbsp;{$data.present_group}</p>
	<p>
		{$lang.account.avialable_groups}:&nbsp;
		<select name="group" style="width:150px"{if $data.guest eq 1} disabled{/if} onchange="javascript: document.forms.change_group.sel.value='group'; document.forms.change_group.submit();">
				<option value="">***</option>
			{section name=d loop=$groups}
				<option value="{$groups[d].id}" {if $groups[d].sel}selected="selected"{/if}>{$groups[d].name}</option>
			{/section}
		</select>
	</p>
	{if $description}
		<h3 class="p-b5">{$data.selected_name}</h3>
		<p>{$lang.account.cost}:&nbsp;{$data.speed}&nbsp;{$data.account_points}{$lang.account.speed}</p>
		{if $data.count_err}<p class="error_msg">{$data.count_err}</p>{/if}
		<p>{$lang.account.group_description}:</p>
		{section name=d loop=$description}
			<p>{$description[d].name}&nbsp;{$description[d].descr}</p>
		{/section}
		<p>
			<input type="button" class="button" onclick="javascript: document.change_group.submit();return false;" value="{$lang.account.only_change}">
			<input type="button" class="button" onclick="javascript: document.forms.change_group.pay.value='1'; document.change_group.submit();return false;" value="{$lang.account.change_and_pay}">
		</p>
	{/if}
	</form>
{include file="$gentemplates/$footer_tpl"}