
  var f1 = document.form1;
  var param = JSON.parse(JSON.stringify(paramOrg)); // deepCopy

  f1.newcms1.value = "signing ...";

  var prvKeyPEM = f1.prvkey1.value;
  var certPEM = f1.cert1.value;

  param.sinfos[0].id = {type: 'isssn', cert: certPEM};
  param.sinfos[0].signkey = prvKeyPEM;
  param.certs = [certPEM];

  param.econtent.content = {str: f1.content1.value};
  //alert(param.sinfos[0].sattrs.array);
  var sattrs = param.sinfos[0].sattrs.array;
  if (f1.attr_sigtime.checked)
    s