// dialog from detail 
function go_detail(section,item_id) { // this is the ajax call, works
var item_id;
var section;

var url_detail="detail_load.php?id="+item_id+"&section="+section;

 var dialogdetailOpts = {
  closeOnEscape: true,
  hide: 'slide',
  stack: true,
  title: 'Item '+item_id,
  draggable: true,
  autoOpen: false,
  maxWidth: 750,
  maxHeight: 900,
  width: 750, 
  height: 'auto',
  resizable: false,
  modal: true,
  beforeClose: function() {
      $('#dialog-detail').html("");
      },
  buttons: { "Close": function() { $(this).dialog("close"); }},
  bgiframe: true 
  }
  
  $("#dialog-detail").dialog(dialogdetailOpts);
  $("#dialog-detail").load(url_detail, function() { 
  $(this).dialog('open'); 
  $("#accordion").accordion("resize"); // fix
}) 

return false;
} 


