// JScript File
// These methods will be used for the blogs and posts
function deletePost(postID)
{
    if(confirm_prompt('Are you sure you want to delete this post?'))
    {
        window.location = WEBSITEURL + "deletepost.aspx?postid=" + postID;
    }
}

function deleteComment(postID, commentID)
{
    if(confirm_prompt('Are you sure you want to delete this comment?'))
    {
        window.location = WEBSITEURL + "deletecomment.aspx?postid=" + postID + "&cid=" + commentID;
    }
}

function trackPost(postID)
{
    var url = WEBSITEURL + 'tracking/trackposts.ashx?postid=' + postID;
    AjaxGetRequest(url, trackPost_Callback);
}

function trackPost_Callback()
{
    if (gXMLHttp.readyState==4 || gXMLHttp.readyState=='complete')
    {
        //do nothing
        var text = gXMLHttp.responseText;
    }
}