﻿var _source;
var _popup;

function showConfirm(source) {
    this._source = source;
    this._popup = $find('mdlPopup');
    this._popup.show();
}

function okClick() {
    this._popup.hide();
    __doPostBack(this._source.name, '');
}

function cancelClick() {
    this._popup.hide();
    this._source = null;
    this._popup = null;
}

function maskWholePage() {
   el = Ext.getBody().createChild({ style: "position:absolute;left:0;top:0;width:100%;height:100%;z-index:20000;background-color:Transparent;" });
   var scroll = Ext.getBody().getScroll();
   el.setLeftTop(scroll.left, scroll.top);
   el.mask("Cargando Datos...", "x-mask-loading");
}

var ActualizarFN = function(el) {
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    prm._doPostBack('UpdatePanel1', '');

}
