
        var clientid;
        function fnSetFocus(txtClientId)
        {
        	clientid=txtClientId;
        	setTimeout("fnFocus()",500);
            
        }
  
        function fnFocus()
        {
            eval("document.getElementById('"+clientid+"').focus()");
        }

function AnimateRowNow(sender, args)
{
    var dataKey = '<%= this.gvTopics.ThreadID %>';
    var updatedRowIndex = args.get_dataItems()[dataKey];
    if(updatedRowIndex)
    {
        var tr = $get(dataKey).rows[parseInt(updatedRowIndex) + 1];
        Sys.UI.DomElement.addCssClass(tr, 'Updated');
        
    
    }
    //var affectedRow = ""; 
    //animateRow(affectedRow);
}
function setZindex(sender, ind) {
    //alert(sender.style);
    sender.style.zIndex = ind;
}
function setZindexX(targ, ind) {
    //alert(sender.style);
    var t = document.getElementById(targ);
    t.style.zIndex = ind;
}

function animateRow(affectedRow)
{
    //first save the existing row color so you can restore it after the animation is completed
    //you may have to do some post-processing to make sure the affectedRowColor is a hex value like #FFFFFF
    //var affectedRowColor = affectedRow.style.backgroundColor;
    animation = new AjaxControlToolkit.Animation.ColorAnimation('ctl00_ContentPlaceHolder1_gvCategory_ctl02_gvTopics_ctl02_MessageTable', 2, 32, 'style', 'backgroundColor', '#ffff99', '#777777');
    animation.play();
}
