﻿var Unlock = function() { }
onUnlockButtonClicked = function(obj) {
    new Ajax.Request(Unlock.HandlerUrl, { method: 'post', postBody: $H(obj).toQueryString(), onSuccess: onLockReturn.bind(this,obj.thmode) });
}
onLockReturn = function(thmode, tran) {
    eval('var ret_obj = ' + tran.responseText);
    if (thmode != null)
        if (thmode == 2) {
        window.location.href = window.location.href.replace(/#/,'');
        return;
    }
    if (typeof ret_obj.redirectTo != 'undefined')
        if (ret_obj.redirectTo != '')
        document.location.href = ret_obj.redirectTo;
}
Unlock.HandlerUrl = '/httphandlers/msg/threadUnlock.ashx';