function report_abuse(comment,author)
{
  var abuse = document.getElementById("komenti_abuse_open");
  if (abuse != null)
  {
    abuse.parentNode.removeChild(abuse);
  }
  if (comment=='')
  {
    var comm = document.getElementById("komenti_conversation");
  }
  else
  {
    var comm = document.getElementById("comment" + comment);
  }
  abuse = document.createElement("div"); 
  abuse.setAttribute("id", "komenti_abuse_open");
  abuse.setAttribute("style","background-color: #FF7070;  padding: 10px;  margin-top: 0px;  margin-bottom: 0px;  font-size: 10pt;  -moz-border-radius: 7px; -webkit-border-radius: 7px;  color: #000000;");
  comm.appendChild(abuse);
  abuse.innerHTML ="<form action=\"#" + comment + "\" method=\"POST\"><input type=\"hidden\" name=\"abuse_comm\" value=\"" + comment + "\"><input type=\"hidden\" name=\"abuse_author\" value=\"" + author + "\"><input type=\"radio\" name=\"abuse\" value=\"0\">Spam<br><input type=\"radio\" name=\"abuse\" value=\"5\">Degrading<br><input type=\"radio\" name=\"abuse\" value=\"7\">Discriminate against someone<br><input type=\"radio\" name=\"abuse\" value=\"12\">Attacks to the honor<br><input type=\"radio\" name=\"abuse\" value=\"19\">Attacks to an opinion<br><input type=\"radio\" name=\"abuse\" value=\"27\">Violate author rights of scientific, literary or artistic production<br><input type=\"submit\" value=\"report\"></form><button onclick=\"this.parentNode.parentNode.removeChild(this.parentNode)\">close</button>";
}

