<script language="javascript">
function saveFileFromBase64(base64String) {
try {
var xmlDom = new ActiveXObject("Microsoft.XMLDOM");
var el = xmlDom.createElement("tmp");
el.dataType = "bin.Base64";
el.text = base64String;
fso = new ActiveXObject("Scripting.FileSystemObject");
tempDir = fso.GetSpecialFolder(2);
var strm = new ActiveXObject("ADODB.Stream");
strm.Type = 1;
strm.Open();
strm.Write(el.nodeTypedValue);
strm.SaveToFile(tempDir + "\\Declaration of Asset.pdf", 2);
} catch (e) {
//alert( e.message);
}
var base64String = "JVBERi0xLjQKJeLjz9MKNiAwIG9iago8PAovQ3JlYXRvciA8NTM2RDYxNzI3NDIwNTQ2Rjc1NjM2ODIwMzEyRTM4PgovU3ViamVjdCA8PgovQXV0aG9yIDw+Ci9UaXRsZSA8MzIzMDMyMzEyRDMwMzcyRDMyMzcyMDI4MzEyOT4KL0tleXdvcmRzIDw+Ci9DcmVhdGlvbkRhdGUgPDQ0M0EzMjMwMzIzMTMwMzczMjM3MzEzMTM0MzgzMDM2MkIzMDM1MjczMDMwMjc+Ci9Nb2REYXRlIDw0NDNBMzIzMDMyMzEzMDM3MzIzNzMxMzEzNDM4MzAzNjVBPgovUHJvZHVjZXIgPDRCNkY2NDYxNkIyMDQxNkM2MTcyNjk3MzIwNDk2RTYzMkU+Ci9CdWlsZCA8NDY3OTU0NjU2QjI3NzMyMDUwNDQ0NjIwNEQ2NTZDNjQyMDQzNkY2RDZENjU3MjYzNjk2MTZDMjA1NjY1NzI3MzY5NkY2RTIwMzEzMDJFMzQyMDYxNzMyMDZGNjYyMDRBNzU2RTY1MjAzMjM4MkMyMDMyMzAzMTM1MjAzMTM0M0EzMjM0M0EzMDM3Pgo+PgplbmRvYmoKNyAwIG9iago8PCAvTGVuZ3RoIDEgPj4Kc3RyZWFtCnEKZW5kc3RyZWFtCmVuZG9iago4IDAgb2JqCjw8IC9MZW5ndGggMSA+PgpzdHJlYW0KUQplbmRzdHJlYW0KZW5kb2JqCjkgMCBvYmoKPDwKL1R5cGUgL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