var sel = window.event.currentTarget || window.event.srcElement || window.event.target;
/** @type {Element} */
var spn = document.getElementById("spcmt");
switch(sel.value){
case "1":
spn.innerText = "No changes to the document are permitted; any change to the document invalidates the signature.";
break;
case "2":
spn.innerText = "Permitted changes are filling in forms, instantiating page templates, and signing; other changes invalidate the signature.";
break;
case "3":
spn.innerText = "Permitted changes are the same as for 2, as well as annotation creation, deletion, and modification; other changes invalidate the signature.";
<inputtype="checkbox"id="pCopy"name="perms"value="copy"checked><labelfor="pCopy">"copy": Copy text and graphics from the document. (Only valid on public-key mode)</label><br/>
<inputtype="checkbox"id="pPrint"name="perms"value="print"checked><labelfor="pPrint">"print": Print the document.</label><br/>
<inputtype="checkbox"id="pModify"name="perms"value="modify"checked><labelfor="pModify">"modify": Modify the contents of the document by operations other than those controlled by 'fill-forms', 'extract' and 'assemble'.</label><br/>
<inputtype="checkbox"id="pCopyExtract"name="perms"value="copy-extract"checked><labelfor="pCopyExtract">"copy-extract": Copy or otherwise extract text and graphics from the document.</label><br/>
<inputtype="checkbox"id="pAnnotForms"name="perms"value="annot-forms"checked><labelfor="pAnnotForms">"annot-forms": Add or modify text annotations, fill in interactive form fields, and, if 'modify' is also set, create or modify interactive form fields (including signature fields).</label><br/>
<inputtype="checkbox"id="pFillForms"name="perms"value="fill-forms"checked><labelfor="pFillForms">"fill-forms": Fill in existing interactive form fields (including signature fields), even if 'annot-forms' is not specified.</label><br/>
<inputtype="checkbox"id="pExtract"name="perms"value="extract"checked><labelfor="pExtract">"extract": Extract text and graphics (in support of accessibility to users with disabilities or for other purposes).</label><br/>
<inputtype="checkbox"id="pAssemble"name="perms"value="assemble"checked><labelfor="pAssemble">"assemble": Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if 'modify' is not set.</label><br/>
<inputtype="checkbox"id="pPrintHigh"name="perms"value="print-high"checked><labelfor="pPrintHigh">"print-high": Print the document to a representation from which a faithful digital copy of the PDF content could be generated. When this is not set, printing is limited to a low-level representation of the appearance, possibly of degraded quality.</label><br/>