rem: parent.parent.globals.debug( "download go" ); 
context: function go( msg ){	parent.parent.globals.debug( "download go" );		netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" );	// * skip if we're in edit mode	if ( parent.parent.globals.document.vars.editMode.value != "yes" )	{		// * if "RegServer" specified in ACCTSET.INI, use it		var theFile = parent.parent.globals.getAcctSetupFilename( self );		var intlFlag = parent.parent.globals.GetNameValuePair( theFile, "Mode Selection", "IntlMode" );		intlFlag = intlFlag.toLowerCase();		var theRegFile = parent.parent.globals.GetNameValuePair( theFile, "New Acct Mode", "RegServer" );				if ( theRegFile != null && theRegFile != "" )		{			parent.parent.globals.document.vars.regServer.value = theRegFile;		}		else		{			// * otherwise, if multiple .IAS files exist, get list selection and determine appropriate .IAS file			var pathName = parent.parent.globals.getConfigFolder( self );			var theList = parent.parent.globals.document.setupPlugin.GetFolderContents( pathName,".IAS" );			if ( theList != null )			{				if ( theList.length > 1 )				{					if ( document.forms[ 0 ].regServerList.selectedIndex < 0 )					{						alert( "Please select an Internet account server." );						return false;					}										for ( var x = 0; x < theList.length; x++ )						{						var file = parent.parent.globals.getConfigFolder( self ) + theList[ x ];						var name = parent.parent.globals.document.setupPlugin.GetNameValuePair( file, "Dial-In Configuration", "SiteName" );							if ( name == document.forms[ 0 ].regServerList.options[ document.forms[ 0 ].regServerList.selectedIndex ].text )						{							parent.parent.globals.document.vars.regServer.value = theList[ x ];							break;						}					}										if ( parent.parent.globals.document.vars.regServer.value == "" )					{						alert( "Internal problem locating appropriate registration server file." );						return false;					}				}				else if ( theList.length == 1 )				{					parent.parent.globals.document.vars.regServer.value = theList[ 0 ];				}				else				{					alert( "Internal problem locating a registration server file." );					return false;				}			}			else			{				alert( "Internal problem locating appropriate registration server file." );				return false;			}		}		return true;	}	else	{		return false;	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1a8e9fd7f315c0369934c9c722ea6d15b9251a55/download.js/clean/cmd/dialup/as_html/download.js