rem: var userInputFile = document.setupPlugin.GetCurrentProfileDirectory(); 
add: currentProfileDirectory = document.setupPlugin.GetCurrentProfileDirectory(); var userInputFile = currentProfileDirectory; 
context: function loadGlobalData(){	netscape.security.PrivilegeManager.enablePrivilege("AccountSetup");	if ( document.setupPlugin == null )		return;	if ( document.vars.inited.value != "yes" )	{		// load globals here			var acctSetupFile = getAcctSetupFilename( self );		if ( acctSetupFile != null && acctSetupFile != "" )		{			var intlMode = parent.parent.globals.GetNameValuePair( acctSetupFile, "Mode Selection", "IntlMode" );			if ( intlMode != null && intlMode != "" )			{				intlMode = intlMode.toLowerCase();				document.vars.intlMode.value = intlMode;			}						var editMode = parent.parent.globals.GetNameValuePair( acctSetupFile, "Mode Selection", "EditMode" );			if ( editMode != null && editMode != "" )			{				editMode = editMode.toLowerCase();				document.vars.editMode.value = editMode;				SetNameValuePair( acctSetupFile, "Mode Selection", "EditMode", "no" );			}			// if not in editMode, ensure that OS support is available (networking,dialer,etc)			if ( editMode != "yes" )			{				var installedFlag = document.setupPlugin.CheckEnvironment();				if ( installedFlag != true )				{					document.setupPlugin.QuitNavigator();					return;				}			}			// set appropriate path info (if not prompting user)				document.vars.path.value = "";			var newPathFlag = parent.parent.globals.GetNameValuePair( acctSetupFile, "Mode Selection", "ForceNew" );			newPathFlag = newPathFlag.toLowerCase();			var existingPathFlag = parent.parent.globals.GetNameValuePair( acctSetupFile, "Mode Selection", "ForceExisting" );			existingPathFlag = existingPathFlag.toLowerCase();				if ( newPathFlag == "yes" && existingPathFlag != "yes" )				document.vars.path.value = "New Path";			else if ( existingPathFlag == "yes" && newPathFlag != "yes" )				document.vars.path.value = "Existing Path";			document.vars.oneStepMode.value = "";			var oneStepModeFlag = parent.parent.globals.GetNameValuePair( acctSetupFile, "Mode Selection", "OneStepMode" );			oneStepModeFlag = oneStepModeFlag.toLowerCase();			if ( oneStepModeFlag == "yes" )				document.vars.oneStepMode.value = "yes";									if ( document.vars.debugMode.value.toLowerCase() != "yes" && ( document.vars.editMode.value.toLowerCase() != "yes" ) )				if (checkPluginExists( "application/x-netscape-autoconfigure-dialer", false ) )					document.setupPlugin.SetKiosk( true );		}						// load in user input (if any)		var userInputFile = document.setupPlugin.GetCurrentProfileDirectory();		if ( userInputFile != null && userInputFile != "" )		{			userInputFile = userInputFile + "ACCTSET.DAT";			var theSection = "Account Setup User Input";				document.vars.externalEditor.value = GetNameValuePair( userInputFile, theSection, "externalEditor" );			var startupFile = GetNameValuePair( userInputFile, theSection, "startupFile" );			if ( startupFile != null && startupFile != "" )			{				document.vars.startupFile.value = startupFile;				document.vars.path.value = GetNameValuePair( userInputFile, theSection, "path" );				document.vars.pageHistory.value = GetNameValuePair( userInputFile, theSection, "pageHistory" );				SetNameValuePair( userInputFile, theSection, "startupFile", "" );				SetNameValuePair( userInputFile, theSection, "path", "" );				SetNameValuePair( userInputFile, theSection, "pageHistory", "" );				// if coming out of a reboot and using magic profile, rename it so that it won't be automatically deleted at next launch							var profileName = document.setupPlugin.GetCurrentProfileName();				if ( profileName != null && profileName != "" )				{					profileName = profileName.toUpperCase();					if ( profileName == '912' )						document.setupPlugin.SetCurrentProfileName( "USER1" );				}				loadUserInput();			}			else			{				document.vars.startupFile.value = "main.htm";				// defer loading user input until after main screen has loaded (faster speedup)			}			parent.screen.location.replace( "screen.htm" );		}		// QA support		var qaMode = document.vars.qaMode.value;		if ( qaMode != null && qaMode != "" )		{			qaMode = qaMode.toLowerCase();			if ( qaMode == "yes" )			{				if ( confirm( "Would you like to use a Milan data file to configure Communicator?" ) == true )				{					if ( document.setupPlugin.Milan( null, null, true, false ) == true )						document.vars.regMode.value = "yes";				}			}		}	}		if ( document.vars.regMode.value == "yes" )		setRegisterMode( 1 );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/495c50ea208cbee240dfc86d5af90b0c7536e6c6/globals1.js/clean/cmd/dialup/as_html/globals1.js