
<script langauge='javascript' 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("{$ibforums->lang['av_confirm']}");
		if ( fcheck == true )
		{
			return true;
		}
		else
		{
			return false;
		}
	}
}
  
//-->
</script>
<div style='padding: 6px;'><strong>&raquo; {$ibforums->lang['m_avatar_info']}</strong></div>
<div class='titlemedium'>{$ibforums->lang['av_current']}</div>
<div class='content' style='padding: 3px; text-align: center;'>{$data['current_avatar_image']}<br />{$data['current_avatar_type']} {$data['current_avatar_dims']}</div>
<!--IBF.LIMITS_AVATAR-->
<div class='titlemedium'>{$ibforums->lang['avatar_pre_title']}</div>
<form action='{$ibforums->base_url}act=UserCP&amp;CODE=getgallery' method='post'>
<table cellpadding='3' cellspacing='0' border='0' width='100%' class='content'>
  <tr>
    <td class='content' width='40%'>{$ibforums->lang['av_go_gal']}</td>
    <td class='content'>{$data['avatar_galleries']}&nbsp;&nbsp;<input type="submit" value="{$ibforums->lang['av_go_go']}" name="submit" class="forminput" /></td>
  </tr>
</table>
</form>
<form action='{$ibforums->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 class='titlemedium' style='text-align: center;'><input type="submit" name="submit" value="{$ibforums->lang['av_update']}" class='forminput' /> &nbsp;&nbsp;&nbsp;<input type="submit" name="remove" onclick="remove_pressed=1;" value="{$ibforums->lang['av_remove']}" class='forminput' /></div>
</form>
