title: Javascript in PDFs
body: <p>I am currently creating a PDF document which has fields on it which I'd like to post into an aspx page.  Now this bit I have working successfully using a button with the added behaviour 'Submit Form'.  I want to tweak this so before the form is submitted a confirmation message pops up, clicking no will abort the for submit, clicking yes will submit the form.</p>
  
  <p>I figure I need to do this in javascript so I've been digging around and come up with the following;</p>
  
  <pre><code>var answer = app.alert("Are you ready to submit this form now?", 2, 2, "Confirmation");
  if(answer!=4) 
    this.submitForm("http://localhost:8018/quote/apply.aspx");
  </code></pre>
  
  <p>I think my submitForm function is rubbish.  How can I improve it?</p>