function QuoteText(objTextArea, txtAuthor) {
	var txt = '';

	if (window.getSelection) {
		txt = window.getSelection();

	} else if (document.getSelection) {
		txt = document.getSelection();

	} else if (document.selection) {
		txt = document.selection.createRange().text;

	} else return;

	if( txtAuthor != '' ) {
		objTextArea.value += '[quote='+txtAuthor+']'+txt+'[/quote]';
	} else {
		objTextArea.value += '[quote]'+txt+'[/quote]';
	}
}