﻿function ClickPrevNext(href, id)
{
        var modname = $("#modulename").val();
        var numPage = id;
        numPage = numPage.substr("11");
        $.ajax({
            type: 'POST',
            url: href,
            data: ({ pageNumber: numPage, modulename : modname}),
            contentType: 'application/x-www-form-urlencoded',
            dataType: 'json',
            success: function (data) {
                ModNewsCallback(data);
            },
            error: function (request, status, errorThrown) {
            }
        });
        return false;
}
function ModNewsCallback(data)
{
    if (data.result == true)
    {
        $(".modnewscontent").html('');
        $(".modnewscontent").html(data.newsmarkup);
    }
}
