function _(object)  {
    return document.getElementById(object);
}
function reply_comment(id) {
    var div = _("comment_reply_"+id);
    div.appendChild( _("form_comment_inline"));
    _("form_comment_inline").style.display = 'block';
    _("textarea_comment2").value = "";
    _("textarea_comment2").focus();
    _("edit_comment2_parent").value = id;
}
function comment_inline_submit() {
  if (_("form_comment_name2").value.length<3) {
      alert(m_fill_name);
      _("form_comment_name2").focus();
      return false;
  }
  if (_("textarea_comment2").value.length<2) {
      alert(m_fill_msg);
      _("textarea_comment2").focus();
      return false;
  }
  _("btn_comment2").disabled=true;
  _("btn_comment2").value=m_sending;
  document.form_comment2.action = "/album_comment_post.php";
  document.form_comment2.submit();
  return false;
}

function comment_submit() {
  if (_("form_comment_name").value.length<3) {
      alert(m_fill_name);
      return false;
  }
  if (_("textarea_comment").value.length<2) {
      alert(m_fill_msg);
      return false;
  }
  _("btn_comment1").disabled=true;
  _("btn_comment1").value=m_sending;
  document.form_comment1.action = "/album_comment_post.php";
  document.form_comment1.submit();
  return false;
}