mage = document.getElementById("image-preview");
                        image.src= data;
                        MyBridge.alert("success");
                    }, function(error){
                        MyBridge.alert(error);
                    });
                 break;

            }
        }
    }

    window.onload = function() {
        window.startTime = new Date().getTime();
    }

    window.onMyBridgeReady = function () {
        console.log("onMyBridgeReady load finish, cost:" + (new Date().g