d>File:</td><td>
  <input type="file" onchange="computeMD5(this.files[0]);">
  <input type="button" value="Abort" onclick="abort();">
</td></tr>
<tr><td>MD5:</td><td><div id="output" style="font-family:courier new,fixed" /></td></tr>
</table>
<script>

var hashFn = new goog.crypt.Md5();
var blobHasher = new goog.crypt.BlobHasher(hashFn);
var startTime = 0;

function computeMD5(file) {
  goog.events.listen(blobHasher, goog.crypt.BlobHasher.EventType.COMPLETE,
                     function() {
    var hash = 