
function ajaxPost( href, num, callback ){
        theurl = href + "&ajax=1&format=json" + "&num=" + num ;
        $.ajax({
          type: "POST",
          contentType: "application/json; charset=utf-8",
          url: theurl, 
          data: num ,
          dataType: "json",
          success: callback
        });
}


$(function(){

  
  $(".delete_reply").click(
    function(e){
        link=this;
        ajaxPost(
                    link.href , 
                    0, 
                    function(p){
								{
							    id= $(link).attr("delreply");
							    selector = "TR[delreply='"+id+"']";
							    $(selector).remove();
								}
                    }
        );
        return false;
    }
  );
  
});

