 					'var obj = window[WEAVE_EXTERNAL_TOOLS][windowName];',
 					'obj.window.close();'
 				);
-			var url:String = '/pdo/pdo.html';
 			ExternalTool.launch(WeaveAPI.globalHashMap, url, lastHtml5WindowName = ExternalTool.generateWindowName());
 		}
 		
-		public static function disableScripts():void
+		public static function disableScripts(exportUrl:String = null):void
 		{
 			LinkableFunction.enabled = false;
 			LinkableCallbackScript.enabled = false;
+			
+			if (exportUrl)
+				ExportMenu.url = exportUrl;
+			else
+				exportUrl = ExportMenu.url;
 			
 			var names:Array = WeaveAPI.globalHashMap.getNames();
 			var lcs:LinkableCallbackScript = WeaveAPI.globalHashMap.requestObject("_disableFlashScripts", LinkableCallbackScript, false);

package weave.menus
{
	import weave.Weave;
	import weave.core.LinkableCallbackScript;
	import weave.core.LinkableFunction;
	import weave.visualization.tools.ExternalTool;

			WeaveAPI.globalHashMap.setNameOrder(names);
			lcs.groupedCallback.value = false;
			lcs.script.value = "if (typeof ExportMenu != 'undefined') {\n" +
				"\tExportMenu.disableScripts(" + Compiler.stringify(exportUrl) + ");\n" +
				"\tExportMenu.export();\n" +
				"\tSessionStateEditor.openDefaultEditor();\n" +
				"}";
