
    function QuoteComment(id, poster)
    {
        var messageBox = document.getElementById("ctl06_txtMessage");
        var commentTextBox = document.getElementById(id);
		
		var newText = commentTextBox.innerHTML.replace(new RegExp( "\\n", "g" ),'');
		newText = newText.replace(new RegExp( "\\r\n", "g" ),'');
		newText = newText.replace(new RegExp( "\\r", "g" ),'');
		newText = newText.replace(new RegExp( "\\t", "g" ),'');
		newText = newText.replace(new RegExp( "\<div class=\"text_quote\">", "g" ),"<quote>");
		newText = newText.replace(new RegExp( "\</div>", "g" ),"</quote>");
		newText = newText.replace(new RegExp( "\<DIV class=\"text_quote\">", "g" ),"<quote>");
		newText = newText.replace(new RegExp( "\<DIV class=text_quote>", "g" ),"<quote>");
		newText = newText.replace(new RegExp( "\</DIV>", "g" ),"</quote>");
		newText = newText.replace(new RegExp( "\<BR/><BR/>", "g" ),"\<BR/>");
		newText = newText.replace(new RegExp( "\<br/><br/>", "g" ),"\<br/>");
		newText = newText.replace(new RegExp( "\<BR><BR>", "g" ),"\<BR/>");
		newText = newText.replace(new RegExp( "\<br><br>", "g" ),"\<br/>");
		newText = newText.replace(new RegExp( "\<BR/>", "g" ),"\n");
		newText = newText.replace(new RegExp( "\<BR>", "g" ),"\n");
		newText = newText.replace(new RegExp( "\<br/>", "g" ),"\n");
		newText = newText.replace(new RegExp( "\<br>", "g" ),"\n");

		messageBox.value = "<quote=\""+poster+"\">" + newText + "</quote>\n" + messageBox.value;
		messageBox.focus();
		return true;
    }
