function signalAbus( idComment, idPost ) { var opt = { method: 'post', postBody: 'action=abus&url='+window.location+'&idPost='+idPost+'&idcomment='+idComment, onSuccess: function(x) { var rep = eval('(' + x.responseText + ')'); if( rep != "" ) alert( rep ); else $('comment-'+idComment).hide(); } }; new Ajax.Request( "http://affaires.svp.com/wp-content/plugins/SVPcommentaire/php/dispatcherSVPcommentaire.php" , opt ); }