jQuery(document).ready(function(){
  $("#help").click(function(){
    var dialogOpts = {
      title: "Help / Info",
      modal: true,
      bgiframe: true,
      autoOpen: false,
      height: 750,
      width: 800,
      draggable: true,
      resizeable: true,
      open: function() {
        ContentType = 1;
      },
      close: function() {
        ContentType = 0;
      }
    };
    $("#InfoDlg").dialog(dialogOpts);
    $("#InfoDlg").dialog("open");
    FetchContent_1(Page_1);
    return false;
  });
});

function FetchContent_1(Page_1){
  $.ajax({
    type: 'POST',
    url:"/ajax_server/html/svr_dynamic_content.php",
    data: {
      SLPageID: SLPageID,
      SLPageName: SLPageName,
      request:"PrintPage",
      ContentType: 1,
      Paged: PagedInfo,
      rows: RowCtInfo,
      page: Page_1,
      sidx:"1",
      sord:"asc"
    },
    success: function(msg){
      $('#SL_DynamicContent_1').html(msg);
      if (PagedInfo){
        $("#pager_1").pager({
          pagenumber: Page_1,
          pagecount: PageCt,
          buttonClickCallback: PageClick
        });
      }
    }
  });
}

