function modalDialog2(url,width,height)
    {
    var left = screen.availWidth/2 - width/2;
    var top = screen.availHeight/2 - height/2;
    activeModalWin = window.open(url, "", "width="+width+"px,height="+height+",left="+left+",top="+top+",scrollbars=yes,resizable=yes");
    window.onfocus = function(){if (activeModalWin.closed == false){activeModalWin.focus();};};
    }
function modalDialog(url,width,height,title)
    {
    if (title)
        box.open({ url: url, type: 'iframe', width: width + 'px', height: height + 'px', title: title, adjY: '20px', overlay: false });
    else
        box.open({ url: url, type: 'iframe', width: width + 'px', height: height + 'px', adjY: '20px', overlay: false });
    }
function mDialogInline(url, width, height, title, overlay, parent) 
    {
    if (title)
        box.open({ url: url, type: 'inline', width: width + 'px', height: height + 'px', title: title, adjY: '20px', overlay: overlay, parent: parent });
    else
        box.open({ url: url, type: 'inline', width: width + 'px', height: height + 'px', adjY: '20px', overlay: overlay, parent: parent });
    }
function icCloseDlg()
    {
    box.close();
}
function areaOver(s) {
    if (document.getElementById('divAddModule_' + s))
        document.getElementById('divAddModule_' + s).style.visibility = 'visible';
}
function areaOut(s) {
    if (document.getElementById('divAddModule_' + s))
        document.getElementById('divAddModule_' + s).style.visibility = 'hidden';
}
