
AjaxFunctions_class = new Class({
AjaxUrl : '/ajaxpro/AjaxFunctions,App_Code.gwehp6ee.ashx',
PollCompanyVote : function(companyID, weight, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"PollCompanyVote"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"companyID":companyID, "weight":weight});
},
PollCommentVote : function(commentID, weight, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"PollCommentVote"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"commentID":commentID, "weight":weight});
},
PollSubCommentVote : function(subcommentID, weight, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"PollSubCommentVote"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"subcommentID":subcommentID, "weight":weight});
},
VerifyUserName : function(userName, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"VerifyUserName"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"userName":userName});
},
AddUserAsFriend : function(friendID, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"AddUserAsFriend"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"friendID":friendID});
},
UpsertUserCompanyRelation : function(companyID, relationCode, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"UpsertUserCompanyRelation"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"companyID":companyID, "relationCode":relationCode});
},
GetUserCompanyRelationStr : function(relationCode, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"GetUserCompanyRelationStr"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"relationCode":relationCode});
},
AdminPollCommentVote : function(commentID, weight, count, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"AdminPollCommentVote"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"commentID":commentID, "weight":weight, "count":count});
},
AdminPollSubCommentVote : function(subcommentID, weight, count, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"AdminPollSubCommentVote"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"subcommentID":subcommentID, "weight":weight, "count":count});
},
AdminDeleteCommentTag : function(commentID, tagID, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"AdminDeleteCommentTag"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"commentID":commentID, "tagID":tagID});
},
AdminAddCommentTag : function(commentID, tagID, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"AdminAddCommentTag"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"commentID":commentID, "tagID":tagID});
},
AdminAddNewCommentTag : function(commentID, tagName, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"AdminAddNewCommentTag"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"commentID":commentID, "tagName":tagName});
},
AdminUpdateCommentContent : function(commentID, content, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"AdminUpdateCommentContent"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"commentID":commentID, "content":content});
},
AdminUpdateSubCommentContent : function(subCommentID, content, onsuccess, context, onfailure)
{
    return new AjaxPro.Request(this.AjaxUrl,
    {
        async: (typeof onsuccess == "function"),
        headers: {"X-AjaxPro-Method":"AdminUpdateSubCommentContent"},        
        onSuccess: function(response) { AjaxPro.processResponse(response, onsuccess, context, onfailure); }
    }).send({"subCommentID":subCommentID, "content":content});
}
});AjaxFunctions = new AjaxFunctions_class();


