rem: var profileDir = parent.parent.globals.document.setupPlugin.GetCurrentProfileDirectory(); 
add:  var profileDir = parent.parent.globals.currentProfileDirectory; parent.parent.globals.debug("****Priofile Dir = " + profileDir); 
context: function loadData(){	var cleanFlag = false;	var configuredFlag = false;	var newProfileFlag = false;	var configFilename = "";	netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" );	var acctSetupFile = parent.parent.globals.getAcctSetupFilename( self );	var editMode = parent.parent.globals.document.vars.editMode.value;	if ( editMode != null && editMode != "" )		editMode = editMode.toLowerCase();	if ( editMode != "yes" )	{		document.onkeydown = captureKeys;			// get platform			var thePlatform = parent.parent.globals.getPlatform();			var profileDir = parent.parent.globals.document.setupPlugin.GetCurrentProfileDirectory();		if ( profileDir != null && profileDir != "" )		{			if ( thePlatform == "Macintosh" )				// Macintosh support				configFilename = profileDir + "Configuration";			else										// Windows support				configFilename = profileDir + "CONFIG.INI";				// if a MUC file exists:  re-using Account Setup against a profile that's been configured			// else, if "account_setup.upgraded" is true, but no MUC:  upgrade from 3.x or earlier				var accountName = parent.parent.globals.document.setupPlugin.GetNameValuePair( configFilename, "Account", "Account" );			if ( accountName != null && accountName != "" && accountName != "Untitled" && accountName != "None" )				configuredFlag = true;			else			{				var profileName = parent.parent.globals.document.setupPlugin.GetCurrentProfileName();				if ( profileName != null )				{					profileName = profileName.toUpperCase();					if ( profileName == '911' || profileName == 'USER1' )						cleanFlag=true;					else						newProfileFlag=true;				}			}		}			// ensure that some descriptive layer is shown			if ( cleanFlag == false && configuredFlag == false && newProfileFlag == false )			cleanFlag = true;			if ( document && document.layers )		{			document.layers[ "Clean_Installation" ].visibility = ( ( cleanFlag == true ) ? "show" : "hide" );			document.layers[ "Profile_Configured" ].visibility = ( ( configuredFlag == true ) ? "show" : "hide" );			document.layers[ "Profile_Manager_Entrance" ].visibility = ( ( newProfileFlag == true ) ? "show" : "hide" );		}			parent.parent.globals.loadUserInput();	}			if ( document && document.layers )			document.layers[ "buttontext" ].visibility = "show";	if ( parent && parent.controls && parent.controls.generateControls )		parent.controls.generateControls();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c0efc8a3ac79ad9db736ca849fa7d9d7c091b091/main.js/buggy/cmd/dialup/as_html/main.js