{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="{$site_url}{$site_root}/admin/admin_users.php">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{$lang.blog.admin.razdel_name}</div>
<div class="cr">&nbsp;</div>
<div class="cr">&nbsp;</div>
<div class="help_text" style="display:block;">
    <div class="close_help">
        <img src="{$site_root}{$template_root}/images/close_help.png" alt="">
    </div>
    <div class="help_body">
        <span class="help_title">{$lang.help}:</span>{if $form.par eq "edit"}{$lang.admin_help.users_edit}{else}{$lang.admin_help.users_add}{/if}
    </div>
</div>
<div class="cr">&nbsp;</div>
<form method="post" action="{$form.action}"  enctype="multipart/form-data" name="profile">
	<table border=0 cellspacing=1 cellpadding=5 width="100%">
                {$form.hiddens}
                <input type="hidden" id="pair" name="pair" value="{$pair}">
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.nick}<font class=main_error_text>*</font>:&nbsp;</td>
                        <td class="main_content_text" align="left"><input type="text" name="login" value="{$data.login}" size=30 {if $data.root eq 1}disabled{/if}  style="width: 195"></td>
                        <td class="main_header_text" align="left" width="65%">&nbsp;{$lang.users.status}&nbsp;<input type="checkbox" name="status" value="1" {if $data.status}checked{/if} {if $data.root eq 1}disabled{/if}></td>
                    </tr>
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.sname}<font class=main_error_text>*</font>:&nbsp;</td>
                        <td class="main_content_text" align="left"><input type="text" name="sname" value="{$data.sname}" size=30 {if $data.root eq 1}disabled{/if}  style="width: 195"></td>
                        <td>
                        	<div id="pair1" {if $pair ne 1} style="display:none" {/if}>
                        	<table border="0" width="100%" cellpadding="0" cellspacing="0">
                        		<tr>
                        			<td align="right" width="17%" class="main_header_text">{$lang.users.sname}<font class=main_error_text>*</font>:&nbsp;</td>
                        			<td class="main_content_text" align="left"><input type="text" name="sname_2" value="{$data.sname_2}" size=30 {if $data.root eq 1}disabled{/if}  style="width: 195"></td>
                        		</tr>
                        	</table>
                        	</div>
                        </td>
                    </tr>
					<tr bgcolor="#ffffff">
						<td align="right" width="17%" class="main_header_text">{$lang.users.fname}<font class=main_error_text>*</font>:&nbsp;</td>
                        <td class="main_content_text" align="left"><input type="text" name="fname" value="{$data.fname}" size=30 {if $data.root eq 1}disabled{/if}  style="width: 195"></td>
                        <td>
                        	<div id="pair2" {if $pair ne 1} style="display:none" {/if}>
                        	<table border="0" width="100%" cellpadding="0" cellspacing="0">
                        		<tr>
                        			<td align="right" width="17%" class="main_header_text">{$lang.users.fname}<font class=main_error_text>*</font>:&nbsp;</td>
                        			<td class="main_content_text" align="left"><input type="text" name="fname_2" value="{$data.fname_2}" size=30 {if $data.root eq 1}disabled{/if}  style="width: 195"></td>
                        		</tr>
                        	</table>
                        	</div>
                        </td>
                    </tr>
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.gender}:&nbsp;</td>
                        <td height="30" colspan="2">
                            <table cellpadding="0" cellspacing="0">
                            <tr>
                                {foreach name=user_type  item=item from=$user_types}
                                <td><input type="radio" name="id_user_type" value="{$item.id}" {if $id_user_type && $item.id eq $id_user_type}checked{/if} id="user_type_{$item.id}" onchange="SelectUserTypes('rpt',this.value, document.getElementById('user_subtype_div'));" onclick="Change('{$item.pair}')"></td>
                                <td style="padding-right: 5px;" class="text"><label for="user_type_{$item.id}">&nbsp;{$item.name}</label></td>
                                {/foreach}
                            </tr>
                            <tr>
                                <td style="padding-right: 5px; padding-top: 10px;" colspan="{$smarty.foreach.user_type.total*2}">
                                <div id="user_subtype_div" style="position: relative; top: 0px">
                                    {if $user_types_val}
                                    <select name="id_user_subtype" style="width:150px">
                                        <option value="0">{$lang.button.select}</option>
                                            {foreach item=item from=$user_types_val}<option value="{$item.id}" {if $item.sel eq 1}selected{/if}>{$item.name}</option>{/foreach}
                                    </select>
                                        {/if}
                                </div>
                                </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                  
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.gender_search}:&nbsp;</td>
                        <td height="30" class="text" colspan="2">
                        <table cellspacing="0" cellpadding="0" border="0">
                            <tr>
                                <td>
                                <table  cellspacing="0" cellpadding="0" border="0">
                                    <tr>
                                        {foreach item=item from=$user_types}
                                        <td style="padding-top: 5px;"><input type="radio" name="id_looking_user_type" value="{$item.id}" {if $id_looking_user_type && $id_looking_user_type eq $item.id } checked {/if} id="looking_user_type_{$item.id}" onchange="SelectUserTypes('rptc',this.value, document.getElementById('looking_user_subtype_div'));"></td>
                                        <td style="padding-right: 5px; padding-top: 10px;" class="text"><label for="looking_user_type_{$item.id}">&nbsp;{$item.name}</label></td>
                                        {/foreach}
                                    </tr>
                                </table>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-top: 5px;" colspan=0>
                                    <div id="looking_user_subtype_div" style="position: relative; top: 0px; padding-bottom: 10px">
                                     {if $looking_user_types_val}
                                        <table cellspacing="0" cellpadding="0" border="0"><tr>
                                        {foreach item=item from=$looking_user_types_val}
                                            <td><input type="checkbox" name = "id_looking_user_subtypes[{$item.id}]" id = "id_looking_user_subtypes[{$item.id}]" value="{$item.id}" {if $item.sel eq 1}checked{/if}></td><td><label for= "id_looking_user_subtypes[{$item.id}]" >{$item.name}</label></td>
                                        {/foreach}
                                        </tr></table>
                                     {/if}
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                    </tr>
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.for}:&nbsp;</td>
                        <td colspan=2 class="main_content_text" align="left"><select name="relation[]" multiple style="width:195" {if $data.root eq 1}disabled{/if}>
						<option value="0" {if $relation.sel_all}selected{/if}>{$lang.button.all}</option>
						{html_options values=$relation.opt_value selected=$relation.opt_sel output=$relation.opt_name}
						</select></td>
                    </tr>

					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.age_search}:&nbsp;</td>
                        <td colspan=2 class="main_content_text" align="left">
                        <select name="age_min" {if $data.root eq 1}disabled{/if}>
						{section name=d loop=$age_min}
							<option value="{$age_min[d]}" {if $min_age_sel eq $age_min[d]}selected{/if}>{$age_min[d]}</option>
						{/section}
						</select>&nbsp;-&nbsp;
                        <select name="age_max" {if $data.root eq 1}disabled{/if}>
						{section name=d loop=$age_max}
							<option value="{$age_max[d]}" {if $max_age_sel eq $age_max[d]}selected{/if}>{$age_max[d]}</option>
						{/section}
						</select>&nbsp;
						</td>
                    </tr>
                  
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.pass}{if $form.par eq 'add'}<font class=main_error_text>*</font>{/if}:&nbsp;</td>
                        <td class="main_content_text" align="left"><input type="password" name="pass" value="{$data.pass}" size=30 {if $data.root eq 1}disabled{/if}  style="width: 195"></td>
                        <td class="main_header_text" align="left" width="65%">{if $form.par ne 'add'}<input type="checkbox" name="refresh" value="1" {if $data.root eq 1}disabled{/if} {if $data.refresh}checked{/if}>&nbsp;{$lang.users.pass_refresh}{/if}</td>
                   </tr>
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.repass}{if $form.par eq 'add'}<font class=main_error_text>*</font>{/if}:&nbsp;</td>
                        <td class="main_content_text" align="left"><input type="password" name="repass" value="{$data.repass}" size=30 {if $data.root eq 1}disabled{/if}  style="width: 195"></td>
                        <td class="main_header_text" align="left" width="65%"><input type="checkbox" name="conf" value="1" {if $data.root eq 1}disabled{/if} {if $data.conf}checked{/if}>&nbsp;{$lang.users.pass_confirm}</td>
                    </tr>
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.email}<font class=main_error_text>*</font>:&nbsp;</td>
                        <td colspan=2 class="main_content_text" align="left"><input type="text" name="email" value="{$data.email}" size=30 {if $data.root eq 1}disabled{/if}  style="width: 195"></td>
                    </tr>
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.date_birthday}:&nbsp;</td>
                        <td class="main_content_text" align="left">
                        <select name="b_day" {if $data.root eq 1}disabled{/if}>
						{section name=d loop=$day}
							<option value="{$day[d].value}" {if $day[d].sel}selected{/if}>{$day[d].value}</option>
						{/section}
						</select>&nbsp;
                        <select name="b_month" {if $data.root eq 1}disabled{/if}>
						{section name=m loop=$month}
							<option value="{$month[m].value}" {if $month[m].sel}selected{/if}>{$month[m].name}</option>
						{/section}
						</select>&nbsp;
                        <select name="b_year" {if $data.root eq 1}disabled{/if}>
						{section name=y loop=$year}
							<option value="{$year[y].value}" {if $year[y].sel}selected{/if}>{$year[y].value}</option>
						{/section}
						</select>&nbsp;
						</td>
						<td width="100%">
							<div id="pair3" {if $pair ne 1} style="display:none" {/if}>
							<table border="0" width="100%" cellpadding="0" cellspacing="0">
								<tr>
									<td align="right" width="17%" class="main_header_text">{$lang.users.date_birthday}:&nbsp;</td>
                        			<td class="main_content_text" align="left">
                        				<select name="b_day_2" {if $data.root eq 1}disabled{/if}>
										{section name=d loop=$day}
											<option value="{$day[d].value}" {if $day[d].sel_2}selected{/if}>{$day[d].value}</option>
										{/section}
										</select>&nbsp;
                        				<select name="b_month_2" {if $data.root eq 1}disabled{/if}>
										{section name=m loop=$month}
											<option value="{$month[m].value}" {if $month[m].sel_2}selected{/if}>{$month[m].name}</option>
										{/section}
										</select>&nbsp;
                        				<select name="b_year_2" {if $data.root eq 1}disabled{/if}>
										{section name=y loop=$year}
											<option value="{$year[y].value}" {if $year[y].sel_2}selected{/if}>{$year[y].value}</option>
										{/section}
										</select>&nbsp;
									</td>
								</tr>
							</table>
							</div>
						</td>
                    </tr>
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.weight}:&nbsp;</td>
                        <td class="main_content_text" align="left">
                        <select name="weight" {if $data.root eq 1}disabled{/if} style="width: 195">
							<option value="0">------------------</option>
						{section name=s loop=$weight}
							<option value="{$weight[s].id}" {if $weight[s].sel}selected{/if}>{$weight[s].value}</option>
						{/section}
						</select>&nbsp;
						</td>
						<td>
							<div id="pair4" {if $pair ne 1} style="display:none" {/if}>
							<table border="0" width="100%" cellpadding="0" cellspacing="0">
								<tr>
									<td align="right" width="17%" class="main_header_text">{$lang.users.weight}:&nbsp;</td>
                        			<td class="main_content_text" align="left">
                        			<select name="weight_2" {if $data.root eq 1}disabled{/if} style="width: 195">
										<option value="0">------------------</option>
									{section name=s loop=$weight}
										<option value="{$weight[s].id}" {if $weight[s].sel_2}selected{/if}>{$weight[s].value}</option>
									{/section}
									</select>&nbsp;
									</td>
								</tr>
							</table>
							</div>
						</td>
                    </tr>
					<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.height}:&nbsp;</td>
                        <td cclass="main_content_text" align="left">
                        <select name="height" {if $data.root eq 1}disabled{/if} style="width: 195">
							<option value="0">------------------</option>
						{section name=s loop=$height}
							<option value="{$height[s].id}" {if $height[s].sel}selected{/if}>{$height[s].value}</option>
						{/section}
						</select>&nbsp;
						</td>
						<td>
							<div id="pair5" {if $pair ne 1} style="display:none" {/if}>
							<table border="0" width="100%" cellpadding="0" cellspacing="0">
								<tr>
									<td align="right" width="17%" class="main_header_text">{$lang.users.height}:&nbsp;</td>
                        			<td class="main_content_text" align="left">
                        			<select name="height_2" {if $data.root eq 1}disabled{/if} style="width: 195">
										<option value="0">------------------</option>
									{section name=s loop=$height}
										<option value="{$height[s].id}" {if $height[s].sel_2}selected{/if}>{$height[s].value}</option>
									{/section}
									</select>&nbsp;
									</td>
								</tr>
							</table>
							</div>
						</td>
                    </tr>
		    <tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.country}:&nbsp;</td>
                        <td class="main_content_text" align="left">
        				<select name="country" id="country" {if $data.root eq 1}disabled{/if} style="width: 195" onchange="SelectRegion(this.value, document.getElementById('region_div'), document.getElementById('city_div'));">
						<option value="0">------------------</option>
						{section name=s loop=$country}
							<option value="{$country[s].id}" {if $country[s].sel}selected{/if}>{$country[s].value}</option>
						{/section}
						</select>&nbsp;
						</td>
						<td>
							<div id="pair6" {if $pair ne 1} style="display:none" {/if}>
							<table border="0" width="100%" cellpadding="0" cellspacing="0">
								<tr>
									<td align="right" width="17%" class="main_header_text">{$lang.users.country}:&nbsp;</td>
                        			<td class="main_content_text" align="left">
        							<select name="country_2" id="country" {if $data.root eq 1}disabled{/if} style="width: 195" onchange="SelectRegion(this.value, document.getElementById('region_div_2'), document.getElementById('city_div_2'), '_2');">
										<option value="0">------------------</option>
									{section name=s loop=$country}
										<option value="{$country[s].id}" {if $country[s].sel_2}selected{/if}>{$country[s].value}</option>
									{/section}
									</select>&nbsp;
									</td>
								</tr>
							</table>
							</div>
						</td>
	        </tr>
		    <tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.region}:&nbsp;</td>
                        <td class="main_content_text" align="left">
						<div id="region_div">
						{if isset($region)}
		                        <select name="region" id="region" {if $data.root eq 1}disabled{/if}  style="width: 195" onchange="SelectCity(this.value, document.getElementById('city_div'));">
						<option value="0">------------------</option>
						{section name=s loop=$region}
							<option value="{$region[s].id}" {if $region[s].sel}selected{/if}>{$region[s].value}</option>
						{/section}
						</select>&nbsp;
						{else}
					   	&nbsp;
						{/if}
						</div>
						</td>
						<td>
							<div id="pair7" {if $pair ne 1} style="display:none" {/if}>
							<table border="0" width="100%" cellpadding="0" cellspacing="0">
								<tr>
									<td align="right" width="17%" class="main_header_text">{$lang.users.region}:&nbsp;</td>
                        			<td class="main_content_text" align="left">
									<div id="region_div_2">
									{if isset($region_2)}
		                        	<select name="region_2" id="region" {if $data.root eq 1}disabled{/if}  style="width: 195" onchange="SelectCity(this.value, document.getElementById('city_div_2'), '_2');">
										<option value="0">------------------</option>
									{section name=s loop=$region_2}
										<option value="{$region_2[s].id}" {if $region_2[s].sel}selected{/if}>{$region_2[s].value}</option>
									{/section}
									</select>&nbsp;
									{else}
					   				&nbsp;
									{/if}
									</div>
									</td>
								</tr>
							</table>
						</td>
            </tr>
		    <tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.city}:&nbsp;</td>
                        <td class="main_content_text" align="left">
						<div id="city_div">
						{if isset($city)}
		                        <select name="city" id="city" {if $data.root eq 1}disabled{/if}  style="width: 195">
						<option value="0">------------------</option>
						{section name=s loop=$city}
							<option value="{$city[s].id}" {if $city[s].sel}selected{/if}>{$city[s].value}</option>
						{/section}
						</select>&nbsp;
						{else}
				   		&nbsp;
						{/if}
						</div>
						</td>
						<td>
							<div id="pair8" {if $pair ne 1} style="display:none" {/if}>
							<table border="0" width="100%" cellpadding="0" cellspacing="0">
								<tr>
									<td align="right" width="17%" class="main_header_text">{$lang.users.city}:&nbsp;</td>
                        			<td class="main_content_text" align="left">
									<div id="city_div_2">
									{if isset($city)}
		                        	<select name="city_2" id="city" {if $data.root eq 1}disabled{/if}  style="width: 195">
										<option value="0">------------------</option>
									{section name=s loop=$city_2}
										<option value="{$city_2[s].id}" {if $city_2[s].sel}selected{/if}>{$city_2[s].value}</option>
									{/section}
									</select>&nbsp;
									{else}
				   					&nbsp;
									{/if}
									</div>
									</td>
								</tr>
							</table>
							</div>
						</td>
            </tr>
		    <tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.zipcode}:&nbsp;</td>
                        <td class="main_content_text" align="left"><input type="text" name="zipcode" id="zipcode" value="{$data.zipcode}" size=30 {if $data.root eq 1}disabled{/if}  style="width: 195" maxlength="{$form.zip_count}"></td>
                        <td>
                        	<div id="pair9" {if $data.couple ne 1} style="display:none" {/if}>
                        	<table border="0" width="100%" cellpadding="0" cellspacing="0">
                        		<tr>
                        			<td align="right" width="17%" class="main_header_text">{$lang.users.zipcode}:&nbsp;</td>
                        			<td class="main_content_text" align="left"><input type="text" name="zipcode_2" id="zipcode_2" value="{$data.zipcode_2}" size=30 {if $data.root eq 1}disabled{/if}  style="width: 195" maxlength="{$form.zip_count}"></td>
                        		</tr>
                        	</table>
                        	</div>
                        </td>
            </tr>
			<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.nationality}:&nbsp;</td>
                        <td class="main_content_text" align="left">
                        <select name="id_nation" {if $data.root eq 1}disabled{/if} style="width: 195">
							<option value="0">------------------</option>
						{section name=s loop=$nation}
							<option value="{$nation[s].id}" {if $nation[s].sel}selected{/if}>{$nation[s].value}</option>
						{/section}
						</select>&nbsp;
						</td>
						<td>
							<div id="pair10" {if $pair ne 1} style="display:none" {/if}>
							<table border="0" width="100%" cellpadding="0" cellspacing="0">
								<tr>
									<td align="right" width="17%" class="main_header_text">{$lang.users.nationality}:&nbsp;</td>
                       				<td class="main_content_text" align="left">
                        			<select name="id_nation_2" {if $data.root eq 1}disabled{/if} style="width: 195">
										<option value="0">------------------</option>
									{section name=s loop=$nation}
										<option value="{$nation[s].id}" {if $nation[s].sel_2}selected{/if}>{$nation[s].value}</option>
									{/section}
									</select>&nbsp;
									</td>
								</tr>
							</table>
							</div>
						</td>
            </tr>
			<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.language1}:&nbsp;</td>
                        <td colspan=2 class="main_content_text" align="left">
                        <select name="id_lang_1" {if $data.root eq 1}disabled{/if} style="width: 195">
							<option value="0">------------------</option>
						{section name=s loop=$lang_sel}
							<option value="{$lang_sel[s].id}" {if $lang_sel[s].sel1}selected{/if}>{$lang_sel[s].value}</option>
						{/section}
						</select>&nbsp;
						</td>
            </tr>
			<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.language2}:&nbsp;</td>
                        <td colspan=2 class="main_content_text" align="left">
                        <select name="id_lang_2" {if $data.root eq 1}disabled{/if} style="width: 195">
							<option value="0">------------------</option>
						{section name=s loop=$lang_sel}
							<option value="{$lang_sel[s].id}" {if $lang_sel[s].sel2}selected{/if}>{$lang_sel[s].value}</option>
						{/section}
						</select>&nbsp;
						</td>
            </tr>
			<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.language3}:&nbsp;</td>
                        <td colspan=2 class="main_content_text" align="left">
                        <select name="id_lang_3" {if $data.root eq 1}disabled{/if} style="width: 195">
							<option value="0">------------------</option>
						{section name=s loop=$lang_sel}
							<option value="{$lang_sel[s].id}" {if $lang_sel[s].sel3}selected{/if}>{$lang_sel[s].value}</option>
						{/section}
						</select>&nbsp;
						</td>
            </tr>
			<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.site_language}:&nbsp;</td>
                        <td colspan=2 class="main_content_text" align="left">
                        	<select name="site_lang" style="width: 195">
								{foreach from=$site_langs item=item}
									<option value="{$item.id}" {if $item.sel==1}selected{/if}>{$item.name}</option>
								{/foreach}
							</select>&nbsp;
						</td>
            </tr>
			<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.headline}:&nbsp;</td>
                        <td colspan=2 class="main_content_text" align="left"><textarea style="width: 195" name="headline" rows="2" cols="29" {if $data.root eq 1}disabled{/if}>{$data.headline}</textarea></td>
            </tr>
			<tr bgcolor="#ffffff">
                        <td align="right" width="17%" class="main_header_text">{$lang.users.comment}:&nbsp;</td>
                        <td colspan=2 class="main_content_text" align="left"><textarea style="width: 195" name="comment" rows="10" cols="29" {if $data.root eq 1}disabled{/if}>{$data.comment}</textarea></td>
            </tr>
            </table>
             </form>
			<table><tr height="40">
			{if $form.par eq "edit"}
			{if $data.root  ne 1}<td>
				{*<input type="button" value="{$lang.button.save}" class="button" onclick="javascript:document.profile.submit()">*}
				<a class="admin_button_major" onclick="javascript:document.profile.submit()" href="#">{$lang.button.save}<span>&nbsp;</span></a>
				{*<input type="button" value="{$lang.button.delete}" class="button" onclick="{literal}javascript: if(confirm({/literal}'{$form.confirm|escape:javascript}'{literal})){location.href={/literal}'{$form.delete}'{literal}}{/literal}">*}
				<a class="admin_button" style="float:right;" onclick="{literal}javascript: if(confirm({/literal}'{$form.confirm|escape:javascript}'{literal})){location.href={/literal}'{$form.delete}'{literal}}{/literal}" href="#">{$lang.button.delete}<span>&nbsp;</span></a>
			</td>{/if}
			{else}
			<td>
				<a class="admin_button_major" onclick="javascript:document.profile.submit()" href="#">{$lang.button.add}<span>&nbsp;</span></a>
			</td>
			{/if}			
			</tr></table>
{literal}
<script language="JavaScript" type="text/javascript">
function Change(par) {
		if (par == 'N') {
			for (var i=1; i<11; i++) {
				document.getElementById('pair'+i).style.display = 'none';
			}
			document.getElementById('pair').value = '0';
		} else if (par == 'Y') {
			for (var i=1; i<11; i++) {
				document.getElementById('pair'+i).style.display = 'block';
			}
			document.getElementById('pair').value = '1';
		}
}
</script>
{/literal}
{include file="$admingentemplates/admin_bottom.tpl"}