(function() {
var doc=getCurrentDocument();
var docId=doc.getId();
var ts1=doc.getItemValueAsString("字段一");
var ts2=doc.getItemValueAsString("字段二");
var exparams = "&ts1="+ts1+"&ts1="+ts1+"";
var appId=getApplication();
var domainid=getDomainid();
var formid="__2KhuwiEaRIwNdmoecoD";
var btn="<a action-type='opendocument' formid='"+formid+"' docid='"+docId+"' appid='"+appId+"' open-type='open-blank' reflash-on-close='reflash-on-close' dialog-width='1000px' dialog-height='600px' exparams='"+exparams+"'>新窗口打开表单</a>";
return btn;
})();