function DeveloperTask_ViewToolbarKeys() {
    var domXML = new ActiveXObject( "Microsoft.XMLDOM" );
    var oRoot = domXML.createElement( "toolbars" );
    domXML.appendChild( oRoot );
    
	for( oTB = new Enumerator( g_Wizard.App.Toolbars ); !oTB.atEnd(); oTB.moveNext() ) {
		var eToolbar = domXML.createElement( "toolbar" );
		eToolbar.setAttribute( "key", oTB.item().Caption );
		for( var oButton = new Enumerator( oTB.item().Buttons ); !oButton.atEnd(); oButton.moveNext() ) {
			var eButton = domXML.createElement( "button" );
			eButton.setAttribute( "key", oButton.item().Name );
			eToolbar.appendChild( eButton );
		}
		oRoot.appendChild( eToolbar );
	}
	
	try {
		var oFS = g_Wizard.App.Scripting.GetFileSystemObject();
		var sPath = oFS.BuildPath( g_Wizard.App.Scripting.installDir, "SimulationWizard" );
		var sPath = g_Wizard.App.Scripting.wbGetFileSelection( "ToolbarKeys_TEMP.xml",  sPath, "XML Files (*.xml)|(*.xml)", true );
		var oFile = oFS.CreateTextFile( sPath, true );
		oFile.WriteLine( domXML.xml );
		oFile.Close();
		window.open( sPath );
		return true;	
	}
	catch(e) {
		return false;
	}
}

function DeveloperTask_ViewMergedWizardXML() {
	try {
		var oFS = g_Wizard.App.Scripting.GetFileSystemObject();
		var sPath = oFS.BuildPath( g_Wizard.App.Scripting.installDir, "SimulationWizard" );
		var sPath = g_Wizard.App.Scripting.wbGetFileSelection( "MergedWizardDefinition_TEMP.xml",  sPath, "XML Files (*.xml)|(*.xml)", true );
		var oFile = oFS.CreateTextFile( sPath, true );
		oFile.WriteLine( g_Wizard.DOM.xml );
		oFile.Close();
		window.open( sPath );
		return true;	
	}
	catch(e) {
		return false;
	}
}

function DeveloperTask_ViewWizardDHTML() {
	try {
		var oFS = g_Wizard.App.Scripting.GetFileSystemObject();
		var sPath = oFS.BuildPath( g_Wizard.App.Scripting.installDir, "SimulationWizard" );
		var sPath = g_Wizard.App.Scripting.wbGetFileSelection( "StaticSnapshot_TEMP.htm",  sPath, "HTML Files (*.htm)|(*.htm)", true );
		var oFile = oFS.CreateTextFile( sPath, true );
		oFile.WriteLine( document.all.tags("HTML")[0].innerHTML );
		oFile.Close();
		window.open( sPath );
		return true;	
	}
	catch(e) {
		return false;
	}
}

function DeveloperTask_RemoveMergeInformation() {
	RemoveMergeInformation( g_Wizard.DOM );
}
