|| printFrame.contentWindow.document;
    printFrameDoc.body.innerHTML = '';
    printFrameDoc.write('Private key hex data:<br> ' + wallet.getPrivateKeyHex() + '<script> function printPage(){ print() } <\/script>');
    printFrame.contentWindow.focus();
    printFrame.contentWindow.printPage();
}, false);


$id('generate').addEventListener('click', function () {
    wallet = new Wallet();
    populatePageData();
}, false);


$id('import').addEventListener('change', function (evt) {

    var notifyInvalidFil