(function(){
    function $(id){
        return document.getElementById(id);
    }
    function quote(authorId, commentBodyId) {
        var author = $(authorId).innerHTML.replace(/<.+?>/gim,"").replace(/\t|\n|\r\n/g, "");
        var comment = $(commentBodyId).innerHTML;
        $("comment").value+='<blockquote>\n<cite>' + author + '</cite>' + '<div>' + comment.replace(/\t/g, "") + '</div></blockquote>\n';
        $("comment").focus();
    }  
    window['SIMPALED'] = {};
    window['SIMPALED']['quote']=quote;
})();
