/* Takes an existing comment's content, modifies it a bit, and puts it into the comment form. Written by Olof Lönnroth, 2006 */

function QuoteComment(Cdiv) {
	var Content = document.getElementById(Cdiv).innerHTML;
	Content = Content.replace(/<p>|<\/p>|\t|\n/ig,"");
	var TextForm = document.getElementById("comment");
	TextForm.value += "<blockquote>" + Content + "</blockquote>";
}