function addSpam( id ) {
    var myRequest = new Request({method: 'get', url: '/ajax/addspam.php'});
    myRequest.onSuccess = function (text, xml) {if (text == 1) {
                                                    $("spam_count" + id).set('src', '/img/spam1.gif');     
                                                }
                                                if (text >= 2) { 
                                                    $("comment_" + id).dispose();
                                                } 
                                    };
    
    myRequest.send('id=' + id);

}

function noSpam( id ) {
    var myRequest = new Request({method: 'get', url: '/ajax/nospam.php'});
    myRequest.onSuccess = function (text, xml) {if (text == 0) {
                                                    $("spam_count" + id).set('src', '/img/spam0.gif');     
                                                }
                                                $("no_spam_"+id).dispose();
                                                };
    
    myRequest.send('id=' + id);

}