Do you know how to write a javascript to automatically calculate a number based on the number of time a document is opened? I'm creating a form for a client that requires a PO number. They want it to be automatically generated. I can put in a custom form field with a custom javascript but I don't know how to write the code for this.