﻿    //操作提示
    function onSuccess(result,context,methodName)
    {
        showMessage("操作提示",result);
        location.href = location.href;
    }
    //出错提示
    function onFailed(error,context,methodName)
    {
        showMessage("出错提示",error.get_message());
    }
    //操作成功
    function showMessage(type,msg)
    {
        if(window.parent != window)
        {
            if(type == "0")
            {
                type = "操作成功";
            }
            if(type == "1")
            {//操作失败
                type = "操作失败";
            }
            window.parent.showMessage(type,msg);
        }
        else
        {
            alert(msg);
        }
    }
//    //执行在线观看
//    function   OnLineLook(filePath)
//    {
//         var url="ReadMagazine.htm?file="+encodeURI(filePath); 
//         location.href     
//        // window.open(url,'readmagazine','height=200,width=400,top=200,left=200,menubar=no,toolbar=no,location=no');
//    }