function show_dialog(html,title,buttons){
      if(!jQuery._common_dialog_layer){
         jQuery._common_dialog_layer = jQuery('<div></div>').dialog(
         {
            autoOpen:false,
            modal: true,
            resizable: false
         });
      }
      jQuery._common_dialog_layer.html(html)
      if(title){
         jQuery._common_dialog_layer.dialog('option','title',title);
      }else{
         jQuery._common_dialog_layer.dialog('option','title','Notify');
      }
      if(buttons){
         jQuery._common_dialog_layer.dialog('option','buttons',buttons);
      }else{
         jQuery._common_dialog_layer.dialog('option','buttons',{
               "Ok": function(){jQuery._common_dialog_layer.dialog('close');}
            });
      }
      jQuery._common_dialog_layer.dialog('open');
}
function show_debug(html){
      if(!jQuery._common_debug_layer){
         jQuery._common_debug_layer = jQuery('<div></div>').dialog(
         {
            autoOpen:false,
            modal: true,
            resizable: false,
            width: 800,
            height: 425
         });
      }
      jQuery._common_debug_layer.html('<textarea style="width: 760px; height: 300px;">'+html+'</textarea>');
      jQuery._common_debug_layer.dialog('option','title','Debug');
      jQuery._common_debug_layer.dialog('option','buttons',{
            "Ok": function(){jQuery._common_debug_layer.dialog('close');}
         });
      jQuery._common_debug_layer.dialog('open');
}
function close_dialog(){
   if(jQuery._common_dialog_layer){
      jQuery._common_dialog_layer.dialog('close');
   }
}
