﻿function onUpdating() {
    //alert(obja.id);
    //var updateProgressDivId;
    //var updatePanelId;
    // 取得顯示訊息的Div        
    var updateProgressDiv = $get('searchUpdateProgressDiv');
    //  取得GridView
    //var gridView = $get(updatePanelId);
    // 顯示查詢訊息
    updateProgressDiv.style.display = '';
    updateProgressDiv.style.left = (this.screen.width - parseInt(updateProgressDiv.style.width.replace("px", ""))) / 2 + "px";
    updateProgressDiv.style.top = (this.screen.height - parseInt(updateProgressDiv.style.height.replace("px", ""))) / 2 - 100 + "px";

//    // 計算GridView及訊息Div的位置 
//    var gridViewBounds = Sys.UI.DomElement.getBounds(parent);
//    var updateProgressDivBounds = Sys.UI.DomElement.getBounds(updateProgressDiv);
//    var x;
//    var y;
//    x = gridViewBounds.x + Math.round(gridViewBounds.width / 2) - Math.round(updateProgressDivBounds.width / 2);
//    y = gridViewBounds.y + Math.round(gridViewBounds.height / 2) - Math.round(updateProgressDivBounds.height / 2);
//    //    設定訊息顯示的位置 \n" +
//    Sys.UI.DomElement.setLocation(updateProgressDiv, x, y);
}
function onUpdated(updateProgressDivId) {
    //var updateProgressDivId;
    // 取得顯示訊息的Div \n" +
    var updateProgressDiv = $get('searchUpdateProgressDiv');
    // 設定隱藏  \n" +
    updateProgressDiv.style.display = 'none';
}
