function responder(infoID)
{
  var author = $("#author" + infoID).text();
  var msg = $("#txt" + infoID).html();
  
  if (author.search(/[^,]+,[^,]+/) > -1) 
    author = author.match(/([^,]+),[^,]+/, '');
  if (author[1])
    author = author[1];

  if (msg.search(/<span class="cite">.*<\/span><cite>.*<\/cite>/) > -1)
  {
    msg = msg.replace(/<span class="cite">.*<\/span><cite>.*<\/cite>/gi, '');
    msg = msg.replace(/^ *<br>/, "");
    msg = msg.replace(/<br>/gi, "\n");
  }

  var txt = '[cite=' + author + ']' + msg + '[/cite]\n';

  $("#msgtext").val(txt);
  $("#msgtext").focus();
} 
