
<script language="javascript" type='text/javascript'>
<!--
var LocationMax  = "{$ibforums->vars['max_location_length']}";
var InterestMax  = "{$ibforums->vars['max_interest_length']}";
function CheckLength(Type) {
    LocationLength  = document.theForm.Location.value.length;
    InterestLength  = document.theForm.Interests.value.length;
    message  = "";
    if (Type == "location") {
        if (LocationMax !=0) {
            message = "{$ibforums->lang['js_location']}: {$ibforums->lang['js_max']} " + LocationMax + " {$ibforums->lang['js_characters']}.";
        } else {
            message = "";
        }
        alert(message + "  {$ibforums->lang['js_used']} " + LocationLength + " {$ibforums->lang['js_so_far']}.");
    }
    if (Type == "interest") {
        if (InterestMax !=0) {
            message = "{$ibforums->lang['js_interests']}: {$ibforums->lang['js_max']} " + InterestMax + " {$ibforums->lang['js_characters']}.";
        } else {
            message = "";
        }
        alert(message + "  {$ibforums->lang['js_used']} " + InterestLength + " {$ibforums->lang['js_so_far']}.");
    }
    
}
function ValidateProfile() {
    LocationLength  = document.theForm.Location.value.length;
    InterestLength  = document.theForm.Interests.value.length;
    errors = "";
    if (LocationMax !=0) {
        if (LocationLength > LocationMax) {
            errors = "{$ibforums->lang['js_location']}:  {$ibforums->lang['js_max']} " + LocationMax + " {$ibforums->lang['js_characters']}.  {$ibforums->lang['js_used']}: " + LocationLength;
        }
    }
    if (InterestMax !=0) {
        if (InterestLength > InterestMax) {
            errors = errors + "  {$ibforums->lang['js_interests']}:  {$ibforums->lang['js_max']} " + InterestMax + " {$ibforums->lang['js_characters']}.  {$ibforums->lang['js_used']}: " + InterestLength;
        }
    } 
    
    if (errors != "") {
        alert(errors);
        return false;
    } else {
        return true;
    }
}
//-->
</script>
<form action="{$ibforums->base_url}auth_key={$Profile['key']}" method="post" name='theForm' onsubmit='return ValidateProfile()'>
<input type='hidden' name='act' value='UserCP' />
<input type='hidden' name='CODE' value='21' />
<div style='padding: 6px;'><strong>&raquo; {$ibforums->lang['m_contact_info']}</strong></div>
<div class='titlemedium'>{$ibforums->lang['profile_title']}</div>
<!--{REQUIRED.FIELDS}-->
<table cellpadding='3' cellspacing='0' border='0' width='100%' class='content'>
<!--{MEMBERTITLE}-->
<!--{BIRTHDAY}-->
<tr>
  <td class='content' width='35%'>{$ibforums->lang['website']}</td>
  <td class='content'><input type='text' size='40' maxlength='1200' name='WebSite' value='{$Profile['website']}' class='forminput' /></td>
</tr>  
<tr>
  <td class='content'>{$ibforums->lang['icq']}</td>
  <td class='content'><input type='text' size='40' maxlength='20' name='ICQNumber' value='{$Profile['icq_number']}' class='forminput' /></td>
</tr>
<tr>
  <td class='content'>{$ibforums->lang['aol']}</td>
  <td class='content'><input type='text' size='40' maxlength='30' name='AOLName' value='{$Profile['aim_name']}' class='forminput' /></td>
</tr>
<tr>
  <td class='content'>{$ibforums->lang['yahoo']}</td>
  <td class='content'><input type='text' size='40' maxlength='30' name='YahooName' value='{$Profile['yahoo']}' class='forminput' /></td>
</tr>
<tr>
  <td class='content'>{$ibforums->lang['msn']}</td>
  <td class='content'><input type='text' size='40' maxlength='30' name='MSNName' value='{$Profile['msnname']}' class='forminput' /></td>
</tr>
<tr>
  <td class='content'><a href='http://www.integritymessenger.com/' target='_blank'>{$ibforums->lang['integ_msg']}</a></td>
  <td class='content'><input type='text' size='40' maxlength='30' name='integ_msg' value='{$Profile['integ_msg']}' class='forminput' /></td>
</tr>
<tr>
  <td class='content'>{$ibforums->lang['location']}<br />(<a href='javascript:CheckLength("location");'>{$ibforums->lang['check_length']}</a>)</td>
  <td class='content'><input type='text' size='40' name='Location' value='{$Profile['location']}' class='forminput' /></td>
</tr>
<tr>
  <td class='content'>{$ibforums->lang['interests']}<br />(<a href='javascript:CheckLength("interest");'>{$ibforums->lang['check_length']}</a>)</td>
  <td class='content'><textarea cols='60' rows='10' wrap='soft' name='Interests' class='forminput' style='width: 95%;'>{$Profile['interests']}</textarea></td>
</tr>
<!--{OPTIONAL.FIELDS}-->
<tr>
</table>
<div class='titlemedium' style='text-align: center;'><input type="submit" value="{$ibforums->lang['submit_profile']}" class='forminput' /></div>
</form>
