title: Popup window confirmation/Preview records before Insertion happens
body: <p>Bear with my kindergarten introduction to Javascript and Phonegap.
  I need a user to preview records captured before inserting them. Any work arounds? I have the implementation as follows:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function Preview() {
    var vName = document.getElementById("name").value;
    var vage = document.getElementById("age").value;
    var vplace = document.getElementById("place").value;
  
    var popup = window.open(view, 'Preview_records');
    popup.document.write('Name:' + vName + '&lt;br /&gt; Age:' + vage + '&lt;br /&gt; Place: ' + vplace + '&lt;br /&gt;');
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form id="view" method="POST" class="formular"&gt;
    &lt;label&gt;Name&lt;/label&gt;
    &lt;input type="text" name="name" id="name" /&gt;&lt;br&gt;
    &lt;label&gt;age&lt;/label&gt;
    &lt;input type="text" name="age" id="age" /&gt;&lt;br&gt;
    &lt;label&gt;place&lt;/label&gt;
    &lt;input type="text" name="place" id="place" /&gt;
  
    &lt;button onclick="Preview()"&gt;Preview&lt;/button&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When this window pops up, I want to have PROCEED button and CANCEL Button, where PROCEED will take me to an insertion function and CANCEL will drop back to edit form data.</p>
  
  <p>Insertion function as </p>
  
  <pre><code>        function Insertion() {
              var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
              db.transaction(insertDT, errorZ, successY);
          }
  </code></pre>