Using Document Variables

Document variables belong to and depend upon the document script in which they are included. That is, document variables are erased when their documents are closed or another variable is defined for them. From one document, you can call functions in two ways: myFunction(myParam) or ActiveDocument.myFunction(myParam).