  function ProcessInner(s)
  {
    var ih = s;
    var unlinked = "";
    var pos = 0;
    var cpos;
    var poshref;
    var hpos;
    while((pos = ih.indexOf('<A ')) >= 0)
    {
      cpos = ih.indexOf('</A>');
      if (pos > cpos || cpos < 0)
        break;
  //    poshref = ih.indexOf('href="');
      poshref = ih.indexOf('url=');
      unlinked += ih.substr(0, pos);
      ih = ih.substr(poshref + 4);
      hpos = ih.substr(0, ih.indexOf('"'));
      unlinked += hpos;
      ih = ih.substr(ih.indexOf("</A>") + 4);
    }
    unlinked += ih;

    var unqouted = "";
    while((pos = unlinked.indexOf('<BLOCKQUOTE ')) >= 0)
    {
      unqouted += unlinked.substr(0, pos + 11) + '>';
      unlinked = unlinked.substr(pos);
      unlinked = unlinked.substr(unlinked.indexOf('>') + 1);
    }
    unqouted += unlinked;
    unqouted = unqouted.replace(/<BR>/g,"\n");
    unqouted = unqouted.replace(/<BR\/>/g,"\n");

    var QuotedText = "<BLOCKQUOTE>"+unqouted+"</BLOCKQUOTE>\n";
    var CurrentValue = document.forms['postform'].usermessage.value;
    if (CurrentValue != "")
      CurrentValue += "\n";
    document.forms['postform'].usermessage.value = CurrentValue + QuotedText;
  }

  function UnhideElement(elementName)
  {
    document.getElementById(elementName).style.display="";
  }

  function HideElement(elementName)
  {
    document.getElementById(elementName).style.display="none";
  }

  function ShowCommentForm(FormName, LinkName, SeparatorName, TextName)
  {
    UnhideElement(FormName);
    HideElement(LinkName);
    HideElement(SeparatorName);
    UnhideElement(TextName);
  }