function fn_open_dialog(dlg_id,dlg_title,dlg_width,dlg_height,s_dialog_html){
	if(navigator.userAgent.indexOf("Macintosh")>-1){
		jQuery('div#page_contenus object,div#page_contenus embed').css({'display':'none'});
	}
	if(jQuery('#'+dlg_id).size()==0){
		jQuery(s_dialog_html).appendTo(jQuery('body'));
	}

	jQuery('#'+dlg_id).dialog({
		modal:true,
		width:dlg_width,
		height:dlg_height,
		resizable:false,
		title:dlg_title,
		close:function(){
			if(navigator.userAgent.indexOf("Macintosh")>-1){
				jQuery('div#page_contenus object,div#page_contenus embed').css({'display':'block'});
			}
		}
	});
}

function fn_open_dialog_ex(dlg_id,dlg_title,dlg_width,dlg_height,s_dialog_html){
	if(navigator.userAgent.indexOf("Macintosh")>-1){
		jQuery('div#page_contenus object,div#page_contenus embed').css({'display':'none'});
	}
	if(jQuery('#'+dlg_id).size()==0){
		jQuery("<div id='"+dlg_id+"'>"+s_dialog_html+"</div>").appendTo(jQuery('body'));
	}

	jQuery('#'+dlg_id).dialog({
		modal:true,
		width:dlg_width,
		height:dlg_height,
		resizable:false,
		title:dlg_title,
		close:function(){
			if(navigator.userAgent.indexOf("Macintosh")>-1){
				jQuery('div#page_contenus object,div#page_contenus embed').css({'display':'block'});
			}
		}
	});
}


function fn_close_dialog(dlg_id){
	jQuery('#'+dlg_id).dialog('close');
}

