var MSN_Check; 
document.write("<OBJECT classid='clsid:F3A614DC-ABE0-11d2-A441-00C04F795683' codeType='application/x-oleobject' height='0' id='MsgrObj' width='0'></OBJECT><OBJECT classid='clsid:FB7199AB-79BF-11d2-8D94-0000F875C541' codeType='application/x-oleobject' height='0' id='MsgrApp' width='0'></OBJECT>"); 
if ("undefined" != typeof(MsgrObj) && null != MsgrObj.object && "undefined" != typeof(MsgrApp) && null != MsgrApp.object) 
{ 
        if( MsgrObj.LocalState == 1 ) MSN_Check = false; 
        else MSN_Check = true; 
} 
else MSN_Check = true; 
function MSN_PRINT(email) 
{ 
        document.write("<A HREF='' TITLE='[" + email + "] 님에게 쪽지 보내기' OnClick=\"MSG_SEND('" + email + "'); return false;\"><font style=font-family:;font-size:9pt></font></A><font style=font-family:;font-size:9pt> | </font><A HREF='' TITLE='[" + email + "] 님을 대화 상대로 추가하기' OnClick=\"ADD_FRIEND('" + email + "'); return false;\"><font style=font-family:;font-size:9pt>대화상대추가</font></A>"); 
} 
function MSG_SEND(mail) 
{ 
        if( MSN_Check ) 
        { 
                var State = MsgrObj.LocalState; 
                if (1 != State) if( mail != MsgrObj.LocalLogonName ) MsgrApp.LaunchIMUI(mail); 
                else { MsgrApp.Visible=1; MsgrApp.LaunchLogonUI(); } 
        } 
} 
function ADD_FRIEND(email) 
{ 
        if( MSN_Check ) MsgrApp.LaunchAddContactUI(email); 
} 