
<script language="javascript" type="text/javascript">
<!--
	var url_input      = "$url_photo";
	var remove_pressed = 0;
	
	function clear_it()
	{
		if ( document.bob.url_photo.value != "" )
		{
			url_input = document.bob.url_photo.value;
		}
      
		document.bob.url_photo.value = "";
	}
   
	function restore_it()
	{
		if (url_input != "")
		{
			document.bob.url_photo.value = url_input;
		}
	}
   
	function checkform()
	{
   		if ( remove_pressed != 1 )
   		{
   			return true;
   		}
   		else
   		{
   			fcheck = confirm("{$ibforums->lang['pp_confirm']}");
   			if ( fcheck == true )
   			{
   				return true;
   			}
   			else
   			{
   				return false;
   			}
   		}
	}
//-->
</script>
<form action="{$ibforums->base_url}auth_key=$key" enctype='multipart/form-data' method="post" name="bob" onsubmit="return checkform();">
<input type='hidden' name='act' value='UserCP' />
<input type='hidden' name='CODE' value='dophoto' />
<div style='padding: 6px;'><strong>&raquo; {$ibforums->lang['m_change_photo']}</strong></div>
<div class='titlemedium'>{$ibforums->lang['pph_title']}</div>
<div class='content' style='padding: 3px;'>{$ibforums->lang['pph_desc']}<br />{$ibforums->lang['pph_max']}</div>
<div class='titlemedium'>{$ibforums->lang['pph_current']}</div>
<div align='center'>
 <p>$cur_photo<br />$cur_type $show_size</p>
</div>
<div class='titlemedium'>{$ibforums->lang['pph_change']}</div>
<table cellpadding='3' cellspacing='0' border='0' width='100%' class='content'>
  <tr>
    <td class='content'>{$ibforums->lang['pph_url']}</td>
    <td class='content'><input type='text' onfocus="restore_it()" name='url_photo' value='$url_photo' size='40' class='forminput' />&nbsp;&nbsp;[ <a href='javascript:restore_it()'>{$ibforums->lang['pp_restore']}</a> ]</td>
  </tr>
  <!--IPB.UPLOAD-->
  <!--IPB.SIZE-->
</table>
<div class='titlemedium' style='text-align: center;'><input type="submit" name='submit' value="{$ibforums->lang['pph_submit']}" class='forminput' />
  &nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" onclick="remove_pressed=1;" name='remove' value="{$ibforums->lang['pph_remove']}" class='forminput' /></div>
</form>
