add: else if ( formName == "error2.htm" ) { showBack = true; showExit = true; showNext = false; showAgain = true; showDone = false; if ( editMode == true ) showBack = true; } 
context: function generateControls(){	var	editMode				=	false;	var	showAcctsetEdit			=	false;	var	showRegFileEdit			=	false;	var	showISPFileEdit			=	false;	var showExit				=	true;	var	showHelp				=	true;	var	showBack				=	true;	var	showNext				=	true;	var	showConnectServer		=	false;	var	showConnectRegServer		=	false;	var	showConnectISP			=	false;	var	showConnectNow			=	false;	var showDownload			=	false;	var	showConnectLater		=	false;	var	showAgain				=	false;	var	showDone				=	false;	var	showRestart				=	false;	var showSetupShortcut		=	false;	var	showInternet			=	false;	var	showScreenToggle		=	false;	var	screenVisible			=	true;	var showScreenOptions		=	false;	netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" );	if ( parent && parent.parent && parent.parent.globals )	{		editMode = ( parent.parent.globals.document.vars.editMode.value.toLowerCase() == "yes" ) ? true : false;	}//	var formName = parent.content.location.toString();	var formName = "" + parent.content.location;	if ( formName != null && formName != "" && formName != "about:blank" )	{		if ( ( x = formName.lastIndexOf( "/" ) ) > 0 )			formName = formName.substring( x + 1, formName.length );		if ( editMode == true )		{			var section = null;			var variable = null;			var pageNum = findPageOffset( formName );			if ( pageNum >= 0 )			{				section = pages[ pageNum ][ 0 ].section;				variable = pages[ pageNum ][ 0 ].variable;				if ( section!=null && section!="" && variable!=null && variable!="" )				{					showScreenToggle = true;					var theFile = parent.parent.globals.getAcctSetupFilename( self );					var theFlag = parent.parent.globals.GetNameValuePair( theFile, section, variable );					theFlag = theFlag.toLowerCase();					if ( theFlag == "no" )						screenVisible = false;				}			}		}		if ( formName == "main.htm" )		{			showBack = false;			showNext = false;			if ( navigator.javaEnabled() == false )			{				showNext = false;				editMode = false;				showAcctsetEdit = false;				showISPFileEdit = false;				showRegFileEdit = false;				document.writeln( "<CENTER><STRONG>Java support is disabled!<P>\n" );				document.writeln( "Choose Options | Network Preferences and enable Java, then try again.</STRONG></CENTER>\n" );			}			else if ( !navigator.mimeTypes[ "application/x-netscape-autoconfigure-dialer" ] ) 			{				showNext = false;				editMode = false;				showAcctsetEdit = false;				showISPFileEdit = false;				showRegFileEdit = false;				document.writeln( "<CENTER><STRONG>The 'Account Setup Plugin' is not installed!<P>\n" );				document.writeln( "Please install the plugin, then run 'Account Setup' again.</STRONG></CENTER>\n" );			}			else if ( parent.parent.globals.document.setupPlugin == null )			{				showNext = false;				editMode = false;			}			if ( editMode == true )			{				showAcctsetEdit = true;				showScreenOptions = true;			}		}		else if ( editMode == true && formName == "useAcct.htm" )		{			showScreenOptions = true;		} 		else if ( editMode == true && formName == "servers.htm" )		{			showScreenOptions = false;		}		else if ( editMode == true && formName == "billing.htm" )		{			showScreenOptions = true;		}		else if ( formName == "accounts.htm" )		{			showNext = false;		}		else if ( formName == "compare.htm" )		{		}		else if ( formName == "connect1.htm" )		{			showNext = false;			showConnectRegServer = true;			if ( editMode == true )				showScreenOptions = true;		}		else if ( formName == "download.htm" )		{			showNext = false;			showConnectServer = true;			if ( editMode == true )				showScreenOptions = true;		}		else if ( formName == "connect2.htm" )		{			showNext = false;			showExit = false;			showConnectNow = true;			showConnectLater = true;		}		else if ( formName == "1step.htm" )		{			showNext = false;			showExit = false;			showHelp = false;			if ( editMode == true )				showBack = true;		}		//else if ( formName == "2stpwrap.htm" )		else if ( formName == "2step.htm" )		{			showNext = false;			showConnectISP = true;			if ( editMode == true )				showScreenOptions = true;		}		else if ( formName == "register.htm" )		{			showHelp = false;			showBack = false;			showNext = false;			if ( editMode == true )				showBack = true;		}		else if ( formName == "ok.htm" )		{			showScreenOptions = true;			showBack = false;			showExit = false;			showNext = false;			showInternet = true;			showDone = true;			if ( editMode == true )				showBack = true;		}		else if ( formName == "okreboot.htm" )		{			showScreenOptions = true;			showBack = false;			showNext = false;			showExit = false;			showDone = false;			showRestart = true;			if ( editMode == true )				showBack = true;		}		else if ( formName == "error.htm" )		{			showBack = true;			showExit = true;			showNext = false;			showAgain = true;			showDone = false;			if ( editMode == true )				showBack = true;		}		else if ( formName == "later.htm" )		{			showBack = false;			showExit = false;			showNext = false;			showDone = true;			if ( editMode == true )				showBack = true;		}		else if ( formName == "intro1.htm" )		{			showSetupShortcut = false;		}		else if ( formName == "settings.htm" )		{			showBack = true;			showNext = false;			editMode = false;		}		else if ( formName == "editregs.htm" )		{			showBack = true;			showNext = false;			editMode = false;		}		else if ( formName == "editisps.htm" )		{			showBack = true;			showNext = false;			editMode = false;		}		else if ( formName == "aboutbox.htm" )		{			showHelp = false;			showNext = false;			showBack = true;		}		else if ( formName == "namepw.htm" )		{			showScreenOptions = true;		}		else if ( formName == "asktty.htm" )		{			showScreenOptions = false;			showBack = true;			showNext = false;			editMode = false;		}		else if ( formName == "askserv.htm" )		{			showScreenOptions = false;			showBack = true;			showNext = false;			editMode = false;		}		else if ( formName == "asksvinf.htm" )		{			showScreenOptions = false;			showBack = true;			showNext = false;			editMode = false;		}		else if ( formName == "showphon.htm" )		{			showScreenOptions = false;			showBack = true;			showNext = false;			editMode = false;		}		else if ( formName == "editcc.htm" )		{			showBack = true;			showNext = false;			editMode = false;		}		else if ( formName == "addnci.htm" )		{			showBack = true;			showNext = false;			editMode = false;		}		else if ( formName == "addias.htm" )		{			showBack = true;			showNext = false;			editMode = false;		}		else if ( formName == "editfour.htm" )		{			showBack = true;			showNext = false;			editMode = false;		}		if ( document && document.layers && document.layers[ "controls" ] &&				document.layers[ "controls" ].document &&				document.layers[ "controls" ].document.layers &&				document.layers[ "controls" ].document.layers.length > 0 )		{			document.layers[ "controls" ].layers[ "help" ].visibility = ( ( showHelp == true ) ? "show" : "hide" );						document.layers[ "controls" ].layers[ "exit" ].visibility = ( ( showExit == true ) ? "show" : "hide" );						document.layers[ "controls" ].layers[ "back" ].visibility = ( ( showBack == true ) ? "show" : "hide" );						document.layers[ "controls" ].layers[ "next" ].visibility = ( ( showNext == true ) ? "show" : "hide" );						document.layers[ "controls" ].layers[ "connectnow" ].visibility = ( ( showConnectNow == true ) ? "show" : "hide" );			document.layers[ "controls" ].layers[ "download" ].visibility = ( ( showDownload == true ) ? "show" : "hide" ); 			document.layers[ "controls" ].layers[ "connectserver" ].visibility = ( ( showConnectServer == true ) ? "show" : "hide" );						document.layers[ "controls" ].layers[ "connectregserver" ].visibility = ( ( showConnectRegServer == true ) ? "show" : "hide" );						document.layers[ "controls" ].layers[ "connectisp" ].visibility = ( ( showConnectISP == true ) ? "show" : "hide" );			document.layers[ "controls" ].layers[ "connectagain" ].visibility = ( ( showAgain == true ) ? "show" : "hide" );						document.layers[ "controls" ].layers[ "done" ].visibility = ( ( showDone == true) ? "show" : "hide" );						document.layers[ "controls" ].layers[ "restart" ].visibility = ( ( showRestart == true ) ? "show" : "hide" );						document.layers[ "controls" ].layers[ "connectlater" ].visibility = ( ( showConnectLater == true ) ? "show" : "hide" );						document.layers[ "controls" ].layers[ "setup" ].visibility = ( ( showSetupShortcut == true ) ? "show" : "hide" );						//NEW - Generate the controls for the toolbar, if it exists			if ( ( !theToolBar ) || ( theToolBar == null ) || ( !theToolBar.location ) || ( theToolBar.closed ) )			{				//alert("opening toolbar");				theToolBar = openToolBar();			}			else			{				//alert("toolbar open, generating controls" + theToolBar);				generateToolBarControls();				}		}		else		{			setTimeout( "generateControls()", 1000 );		}				}	else	{		setTimeout( "generateControls()", 1000 );	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7cfe8bd06f73a7c9883d881bab3f3762e3c075e1/clayer2.js/buggy/cmd/dialup/as_html/clayer2.js