<h2>&nbsp;</h2>
{if $not_allow eq 1}
<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>
{else}
<form method="post" action="{$site_root}/{$seo.viewprofile}" id="adult_form">
	<div id="ajax_loader">
		<input type="hidden" name="id_file" id="id_file" value="{$id_file}">
		<input type="hidden" name="sel" id="sel" value="{$sel}">
		<input type="hidden" name="upload_type" id="upload_type" value="{$upload_type}">
		<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" value="yes"></td>
					<td>&nbsp;{$lang.i_agree}</td>
					<td style="padding-{$default_left}: 15px;"><input type="radio" name="agree" value="no"></td>
					<td>&nbsp;{$lang.i_not_agree}</td>
				</tr>
			</table>
		</div>
		<div align="center" style="padding-top: 10px;">
			<input type="button" onclick="check_agree();" value="{$lang.button.confirm}">
		</div>
	</div>
</form>
{/if}
<script>
{literal}
function check_agree(){
	if($('input[name="agree"]:checked').val() == 'yes'){
		location.href = SEO_SITE_ROOT+'/gallary.php?sel=view_upload&adult_agree=1&upload_type='+$('#upload_type').val()+'&id='+$('#id_file').val();
		ajaxLoadingImage(1, 'ajax_loader');
	}else{
		$('#mask').hide(); $('.window').hide();
	}
}

{/literal}
</script>