// Functions for quick quote selected text (for quickpost)

function copyQ() { // Simple quoting without author

txt=''

if (document.getSelection) {

txt=document.getSelection()

} else if (document.selection) {

txt=document.selection.createRange().text;

}

txt='[QUOTE]'+txt+'[/QUOTE]'

}



function copyQI() { // Simple quoting without author use italic font

txt=''

if (document.getSelection) {

txt=document.getSelection()

} else if (document.selection) {

txt=document.selection.createRange().text;

}

txt='[B]Quote[B] [I][COLOR=black]'+txt+'[/COLOR][/I]'

}



function copyQA(author) { // Simple quoting with author

txt=''

if (document.getSelection) {

txt=document.getSelection()

} else if (document.selection) {

txt=document.selection.createRange().text;

}

mess = txt;

author = unescape(author);

txt='[QUOTE='+author+']'+txt+'[/QUOTE]'

}



function copyQAI(author) { // Simple quoting with author using bold & italic fonts

txt=''

if (document.getSelection) {

txt=document.getSelection()

} else if (document.selection) {

txt=document.selection.createRange().text;

}

txt='[B]'+author+'[/B] [I][COLOR=black]'+txt+'[/COLOR][/I]'

}





function pasteQ() {

if(mess != ''){

document.REPLIER.Post.value=document.REPLIER.Post.value+txt+"\n";

    document.REPLIER.Post.focus(); }

else {alert ("Перед тем как нажимать эту кнопку, выделите мышкой ту часть сообщения,n которую хотите цитировать.");}

}

