<script type="text/javascript">
<!--
var url_input      = "{$data['current_url_avatar']}";
var remove_pressed = 0;
	function select_url(){
		restore_it();
	}
	
	function select_upload(){
		try{
			if ( document.creator.url_avatar.value != "" ) {
				url_input = document.creator.url_avatar.value;
			}
			document.creator.url_avatar.value = "";
		}
		catch(nourl){
			return true;
		}
	}
	
	function restore_it(){
		if (url_input != ""){
			document.creator.url_avatar.value = url_input;
			}
		}
	function checkform(){
		if ( remove_pressed != 1 ){
			return true;
		}
	
		else{
			fcheck = confirm("{$this->ipsclass->lang['av_confirm']}");
			if ( fcheck == true ){
				return true;
			}
			else{
				remove_pressed = 0;
				return false;
				}
			}
	}
-->
</script>
<!--IBF.LIMITS_AVATAR-->
<div class="formsubtitle">{$this->ipsclass->lang['av_current']}</div>
<div class="tablepad" align="center">{$data['current_avatar_image']}<br />{$data['current_avatar_type']} {$data['current_avatar_dims']}</div>
<div class="formsubtitle">{$this->ipsclass->lang['avatar_pre_title']}</div>
<form action="{$this->ipsclass->base_url}act=UserCP&amp;CODE=getgallery" method="post">
	<table class='ipbtable' cellspacing="0">
		<tr>
			<td class="pformleft">{$this->ipsclass->lang['av_go_gal']}</td>
			<td class="pformright">{$data['avatar_galleries']}&nbsp;&nbsp;<input type="submit" class='button' value="{$this->ipsclass->lang['av_go_go']}" name="submit" /></td>
		</tr>
	</table>
</form>
<form action="{$this->ipsclass->base_url}auth_key=$key" method="post" $formextra name="creator" onsubmit="return checkform();">
<input type="hidden" name="act" value="UserCP" />
<input type="hidden" name="CODE" value="25" />
$hidden_field
<!--IBF.EXTERNAL_TITLE-->
<!--IBF.URL_AVATAR-->
<!--IBF.UPLOAD_AVATAR-->
<!--IPB.SIZE-->
	<div align="center" class="formsubtitle">
		<input type="submit" value="{$this->ipsclass->lang['av_update']}" class='button' />
		&nbsp;&nbsp;&nbsp;<input type="submit" name="remove" onclick="remove_pressed=1;" class='button' value="{$this->ipsclass->lang['av_remove']}" />
	</div>
</form>