menu_obj.copyDatabaseXml_funct = function()
{
	// convert database object into XML
	var new_xml = new XML();
	#include "functions/writeXml.as"
	writeXml( database, new_xml );
	var export_xml = new_xml.firstChild;
	
	// convert the XML into actionscript
	var saveString = String(export_xml);
	
	// replace carriage returns with \r
	var enter_str = String.fromCharCode( 13 );
	saveString = saveString.split( enter_str ).join("\\r");
	
	// copy XMl to clipboard
	System.setClipboard( saveString );
	
	// prompt
	mdm.Dialogs.prompt("The database has been copied to the clipboard.");
}// copyDatabaseXml_funct()