﻿function MarkSpamArticle(msgId) {
    if (confirm('Remove as Spam? Warning: This will remove the complete thread.')) {
        $.ajax({
            url: '/Article-/MarkSpamArticle',
            data: { MessageId: msgId },
            success: function(r) {
                location = "/";
            },
            error: function(x) { AlertError(x) }
        });
    }
}
function MarkSpamReply(msgId) {
    if (confirm('Remove as Spam?')) {
        $.ajax({
            url: '/Article-/MarkSpamReply',
            data: { MessageId: msgId },
            success: function(r) {
                location.reload();
            },
            error: function(x) { AlertError(x) }
        });
    }
}
function ReportSpamArticle(msgId) {
    $.ajax({
        url: '/Article-/ReportSpamArticle',
        data: { MessageId: msgId },
        success: function(r) {
            AlertMsg('Thanks for helping us fight spam!');
        },
        error: function(x) { AlertError(x) }
    });
}
function ReportSpamReply(msgId) {
        $.ajax({
            url: '/Article-/ReportSpamReply',
            data: { MessageId: msgId },
            success: function(r) {
                AlertMsg('Thanks for helping us fight spam!');
            },
            error: function(x) { AlertError(x) }
        });
}