function utility_include_page_onload() {
    if ( m_oLogin.szGroupFunc.indexOf("LIVEVIEW") >= 0) {
        if (m_oLogin.szPreviewMode=='Basic') {
            m_oLogin.szPreviewMode = '' ;
            top.utility_set_control_key( m_oLogin.szUserID, m_oLogin.szUserName, m_oLogin.szUserGroup, m_oLogin.szGroupFunc, m_oLogin.szServerIP, m_oLogin.szDispUser, m_oLogin.szShowLang);
            window.location.href='\\rpreview.htm' ;
            return false;
        } else {
            var szFileName = "customization\\preview\\preview_layout.htm" ;
            top.document.getElementById("defFRM_Main").src = szFileBase + szFileName ;                
        }

    } else {
        alert('Permission Denied.');
        
        top.Preview('ACTION?EXIT=1') ;

        try {
            top.Preview("LAYOUT?LAYOUTNUMBER=0") ;
            document.getElementById("defFRM_Main").src = "" ;
        } catch(e) {}
        
        return false;
    }
}