<script type="text/javascript">
[new]var msg_num = parseInt($('#new_msg').text().replace(')', '').replace('(', ''))-1;
if(msg_num > 0)
	$('#new_msg').html("+"+msg_num);
else
	$('#new_msg').html('');[/new]

$(document).ready(function(){
	$('#msg_value').autoResize();
	$('#msg_value').focus();
});
</script>

<div class="clear" style="height:10px;"></div>
<div class="msg_review_ava">
  <a href="/u{user-id}" onClick="Page.Go(this.href); return false"><img src="{ava}" alt="" /></a>
  <div>{online}</div>
</div>
<div class="msg_review_right_col">
  <div class="msg_review_name">[outbox]<font color="#888">{translate=lang_152}</font>[/outbox]
    <a href="/u{user-id}" onClick="Page.Go(this.href); return false">{name}</a>
  </div>
  <div class="msg_review_date">{date}</div>
  <div class="clear"></div>
  <div class="msg_review_text">{text}</div>
</div>
<div class="clear" style="height:10px;"></div>
<div class="msg_answer_form">
  <textarea style="height:50px; resize:none; width:588px; float:left; padding:10px;" placeholder="{translate=lang_153}" id="msg_value"></textarea>
  <div class="clear" style="height:10px;"></div>
  <button onClick="Messages.Reply({user-id}, '[inbox]reply[/inbox][outbox]new[/outbox]'); return false" id="msg_sending">[inbox]{translate=lang_154}[/inbox][outbox]{translate=lang_155}[/outbox]</button>
<div class="clear" style="height:10px;"></div>
</div>
<div class="msg_view_histroy" id="history_lnk" onClick="Messages.History({user-id}); return false">{translate=lang_156}</div>
<span class="no_display">
<input type="hidden" id="theme_value" value="{subj}" />
</span>
<div class="msg_view_history_title no_display">{translate=lang_157}</div>
<div id="msg_historyies"></div>
