<h2>&nbsp;</h2>
{if $not_allow eq 1}
<div>
	<div style="padding-top: 15px;" align="center">
		<font class="error_msg">{$lang.adult_not_allow_text}</font>
	</div>
	<div align="center" style="padding-top: 10px;">
		<input type="button" value="{$lang.button.close}" onclick="$('#mask').hide(); $('.window').hide();">
	</div>
</div>
{else}
<div>
	<div style="padding-top: 15px;" align="center">
		<font class="error_msg">{$lang.adult_warning_text}</font>
	</div>
	<div align="center" style="padding-top: 10px;">
	<table cellpadding="0" cellspacing="0">
	<tr>
		<td><input type="radio" name="agree" id="yes" value="yes" checked></td>
		<td>&nbsp;{$lang.i_agree}</td>
		<td>&nbsp;</td>
		<td style="padding-{$default_left}: 15px;"><input type="radio" name="agree" id="no" value="no"></td>
		<td>&nbsp;{$lang.i_not_agree}</td>
	</tr>
	</table>
	</div>
	<div align="center" style="padding-top: 10px;">
		<input type="button" value="{$lang.button.confirm}" onclick="AgreementBtnClick();">
	</div>
</div>
{literal}
<script type="text/javascript">
function AgreementBtnClick() {
	if (document.getElementById('no').checked) {
		$('#mask').hide(); $('.window').hide();
	} else if (document.getElementById('yes').checked) {
		ajaxLoadingImage(1, 'content');

		$.post('{/literal}{$seo_site_root}{literal}/viewprofile.php', {/literal}'{$data.str}'{literal}, function(data){
			$('#content').html(data);
		});
	}
}
</script>
{/literal}
{/if}