catch(ex) {}
}

function doIt4() {
  var f1 = document.form1;
  var tst = f1.si_sigtst1.value;
  f1.cades_t_1.value = "generating CAdES-T by adding SigTS...";
  try {
    var pBES = parsedInfo;
    var si = pBES.sinfos[0];
    si.uattrs = {array:[{attr:"signatureTimeStamp", tst: tst}]};
    var oEST = new KJUR.asn1.cms.SignedData(pBES);
    var hEST = oEST.getContentInfoEncodedHex();
    f1.cades_t_1.value = hEST;
  } catch (ex) {
    f1.cades_t_1.value = "Error: " + ex;
  }

  try {
    