var progressWindow = null;
document.onfocusin = getProgressFocusAgain;
function getProgressFocusAgain(){
    try{
        if(progressWindow != null ){
            if( document.hasFocus() && !(progressWindow.document.hasFocus())){
                  progressWindow.focus();
            }
        }
    }catch(e){}
}

function progress_viewMessage(){
   progressWindow = null;

}
function progress_openWindow(){
    var opt = "dialogWidth:240px;dialogHeight:125px;center:yes;dialogHide:yes;help:off;resizable:no;scroll:no;status:no;edge:sunken";
    progressWindow = window.showModelessDialog("/commons/progress/progress.htm", window, opt );

}
function progress_closeWindow(){
    try{
        progressWindow.selfClose();
        progressWindow = null;
    }catch( Exception){}
}
