function Nethzah_ShowModelDlg(strURL, windowName, width, height, title, onClosed)
{
    if (width == '')
        width = '75%';
    if (height == '')
        height = '75%';
    
    if (onClosed)
        $('#FancyBoxLink_id').fancybox({'width':width,'height':height, 'href': strURL, 'type': 'iframe', 'onClosed' : eval(onClosed)}); 
    else
        $('#FancyBoxLink_id').fancybox({'width':width,'height':height, 'href': strURL, 'type': 'iframe'}); 
        
    if (!title)
        title = '';
        
    $('#FancyBoxLink_id').attr("title", title); 

    $('#FancyBoxLink_id').trigger('click');
}

function OpenKBArticlePopup(intArticleId)
{
    var strURL = "/Modules/KnowledgeBaseFolder/ViewArticlePopup.aspx?Id=" + intArticleId;
    MotifSoft_OpenNewWindow(strURL, 'ViewArticle', 900, 500);
}

function MSGlobal_OpenDocument(strURL)
{
    MotifSoft_OpenNewWindow(strURL, 'DocumentDetail',670, 450);
}

function ShowRecordInTop(tableid, id)
{
    top.location.href = '/RecordView.aspx?TableId=' + tableid + '&Id=' + id;
}
