function onUpdating(updateProgressDivControl, controlID)
{
        var updateProgressDiv = $get(updateProgressDivControl);
        updateProgressDiv.style.display = '';

        var gridView = $get(controlID);

        var gridViewBounds = Sys.UI.DomElement.getBounds(gridView);
        var updateProgressDivBounds = Sys.UI.DomElement.getBounds(updateProgressDiv);

        var x = gridViewBounds.x + Math.round(gridViewBounds.width / 2) - Math.round(updateProgressDivBounds.width / 2);
        var y = gridViewBounds.y + Math.round(gridViewBounds.height / 2) - Math.round(updateProgressDivBounds.height / 2);
        Sys.UI.DomElement.setLocation(updateProgressDiv, x, y);
}

function onUpdated(updateProgressDivControl)
{
    var updateProgressDiv = $get(updateProgressDivControl);
    updateProgressDiv.style.display = 'none';
}

