title: Custom Confirm Dialog
body: <pre><code>function deleteRecordDialog() {
      var returnThis;
      var numRecordss = recs.length;
      var html = ""
      /*html= html +'&lt;div id="popupContainer" style="width:' + width + 'px; height: ' + height + '; display: block;"&gt;';
      html= html + '&lt;div id="popupInner"&gt;';
      html= html + '&lt;div id="popupFrame"&gt;';
      html= html + '&lt;div class="margin15px dialog-messages"&gt;';*/
      html= html + '&lt;table&gt;';
      html= html + '&lt;tr&gt;';
      html= html + '&lt;td class="warning-icon-cell"&gt;&lt;/td&gt;';
      html= html + '&lt;td style="padding-left: 5px;"&gt;';
      if (numAddresses == 1) {
          html = html + '&lt;p&gt;You have chosen to delete a contact.&lt;/p&gt;';
      }
      else {
          html = html + '&lt;p&gt;You have chosen to delete ' + numAddresses + ' contact(s).&lt;/p&gt;';
      }
      html= html + '&lt;p&gt;Are you sure you wish to proceed?&lt;/p&gt;';
      html= html + '&lt;/td&gt;';
      html= html + '&lt;/tr&gt;';
      html = html + '&lt;/table&gt;';
      if (numAddresses == 1) {
          html = html + '&lt;div class="add-postage-submit-buttons"&gt;&lt;input type="button" value="Yes, Delete Contact" style="width: 160px; onclick="returnThis=true; CloseDialog();"/&gt;&amp;nbsp;&amp;nbsp;&lt;input type="button" value="Cancel" onclick="returnThis=false; CloseDialog();"/&gt;&lt;/div&gt;';
      }
      else {
          html = html + '&lt;div class="add-postage-submit-buttons"&gt;&lt;input type="submit" value="Yes, Delete Contact(s)" style="width: 160px; onclick="returnThis=true; CloseDialog();"/&gt;&amp;nbsp;&amp;nbsp;&lt;input type="button" value="Cancel" onclick="returnThis=false; CloseDialog();"/&gt;&lt;/div&gt;';
      }
      html = html + '&lt;/div&gt;';
      html = html + '&lt;/div&gt;';
      html = html + '&lt;/div&gt;';
      html = html + '&lt;/div&gt;';
      OpenDialog(html, 350, 180, false, "Delete Contact")
      return returnThis;
  }
  </code></pre>
  
  <p>Now usually I'd use JQuery and set modal to true to enable the false/true to be assigned but I don't have the luxury of jquery with this. Is there a way to use this custom dialog?</p>
  
  <p>Is there a way to do the following without JQuery?</p>
  
  <pre><code>$("#dialogInfo").dialog({
      modal: true
  });
  </code></pre>