t(JSON.stringify(param, '  ', null));
    var sd = new KJUR.asn1.cms.SignedData(param);
    hCmsSignedData = sd.getContentInfoEncodedHex();
    f1.newcms1.value = hCmsSignedData;
  } catch (ex) {
    f1.newcms1.value = "Error: " + ex;
  }

  try {
    f1.newcms1dmp.value = ASN1HEX.dump(hCmsSignedData);
  } catch(ex) {}
}

function doIt2() {
  var f1 = document.form1;
  try {
    var cms = f1.newcms1.value;
    parsedInfo = 
      KJUR.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned(c