function copyQ() { 

txt='quote'

if (document.getSelection) {txt=document.getSelection()} 
else if (document.selection) {txt=document.selection.createRange().text;} 

txt='[color=yellow]'+'> '+txt+'[/color]\n\n'}

function pasteQ(){if(document.addform.message)document.addform.message.value += txt}

function emoticon1(theSmilie,wh){

if( (txt == '[color=yellow]> [/color]\n\n') ){alert("Прежде чем жать на кнопку - выдели нужный текст.\nЦитата по определению вырвана из контекста (с).")}

else
{
doInsert(" " + theSmilie + " ","",false,wh);

if(document.addform.message)document.addform.message.value += txt;
}
}
