rem: data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Services","IMAP_Server"); parent.parent.globals.debug("ISP imapHost: " + data); parent.parent.globals.document.vars.IMAP.value = data; 
add: data = globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Services","IMAP_Server"); globals.debug("ISP imapHost: " + data); globals.document.vars.IMAP.value = data; 
context: function saveData(){	netscape.security.PrivilegeManager.enablePrivilege("AccountSetup");	// make sure all data objects/element exists and valid; otherwise, reload.	if ((document.forms[0].providerlist == "undefined") || (document.forms[0].providerlist == "[object InputArray]"))	{		parent.controls.reloadDocument();		return;		}	var theFile = parent.parent.globals.getAcctSetupFilename(self);	var intlFlag = parent.parent.globals.GetNameValuePair(theFile,"Mode Selection","IntlMode");	if (intlFlag != null && intlFlag != "")	{		intlFlag = intlFlag.toLowerCase();		}	var theProviderName = "";	var theProviderFilename = "";	if (document.forms[0].providerlist.selectedIndex >=0)	{		theProviderName = document.forms[0].providerlist.options[document.forms[0].providerlist.selectedIndex].text;		theProviderFilename = document.forms[0].providerlist.options[document.forms[0].providerlist.selectedIndex].value;		if (theProviderFilename == "")	{			theProviderName = "";			}		}	parent.parent.globals.document.vars.providername.value = theProviderName;	parent.parent.globals.document.vars.providerFilename.value = theProviderFilename;	// clear fields before reading in data from .NCI file		parent.parent.globals.document.vars.accountAreaCode.value = "";	parent.parent.globals.document.vars.accountPhoneNumber.value = "";	parent.parent.globals.document.vars.domainName.value = "";	parent.parent.globals.document.vars.primaryDNS.value = "";	parent.parent.globals.document.vars.secondaryDNS.value = "";	parent.parent.globals.document.vars.ipAddress.value = "";	parent.parent.globals.document.vars.SMTP.value = "";	parent.parent.globals.document.vars.mailServer.value = "";	parent.parent.globals.document.vars.mailProtocol.value = "";	parent.parent.globals.document.vars.NNTP.value = "";	parent.parent.globals.document.vars.publishURL.value = "";	parent.parent.globals.document.vars.publishPassword.value = "";	parent.parent.globals.document.vars.viewURL.value = "";	parent.parent.globals.document.vars.scriptEnabled.value = "";	parent.parent.globals.document.vars.scriptFile.value = "";	parent.parent.globals.document.vars.lckFilename.value = "";	var data="";	if (theProviderFilename != "")	{				// read default values from selected .NCI file		data = "" + parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Dial-In Configuration","Phone");		if (data != null && data != "")	{			parent.parent.globals.document.vars.accountAreaCode.value = "";			parent.parent.globals.document.vars.accountPhoneNumber.value = data;			if (intlFlag != "yes")	{				var x = data.indexOf("(");				if (x>=0)	{					var y = data.indexOf(")");					if (y>x)	{						var areaCode = data.substring(x+1,y);						data = data.substring(y+1,data.length);						if (data.charAt(0) == ' ')	{							data = data.substring(1,data.length);							}						parent.parent.globals.document.vars.accountAreaCode.value = areaCode;						parent.parent.globals.document.vars.accountPhoneNumber.value = data;						}					}				}			}		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"IP","DomainName");		parent.parent.globals.debug("ISP DomainName: " + data);		parent.parent.globals.document.vars.domainName.value = data;		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"IP","DNSAddress");		parent.parent.globals.debug("ISP DNSAddress: " + data);		parent.parent.globals.document.vars.primaryDNS.value = data;		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"IP","DNSAddress2");		parent.parent.globals.debug("ISP DNSAddress2: " + data);		parent.parent.globals.document.vars.secondaryDNS.value = data;		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"IP","IPAddress");		parent.parent.globals.debug("ISP IPAddress: " + data);		parent.parent.globals.document.vars.ipAddress.value = data;		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Services","SMTP_Server");		parent.parent.globals.debug("ISP smtpHost: " + data);		parent.parent.globals.document.vars.SMTP.value = data;		parent.parent.globals.document.vars.mailServer.value = "";/*		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Services","POP_Server");		parent.parent.globals.debug("ISP popHost: " + data);		parent.parent.globals.document.vars.POP.value = data;		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Services","IMAP_Server");		parent.parent.globals.debug("ISP imapHost: " + data);		parent.parent.globals.document.vars.IMAP.value = data;*/		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Services","Default_Mail_Protocol");		parent.parent.globals.debug("ISP Default_Mail_Protocol: " + data);		parent.parent.globals.document.vars.mailProtocol.value = data;		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Services","NNTP_Server");		parent.parent.globals.debug("ISP nntpHost: " + data);		parent.parent.globals.document.vars.NNTP.value = data;/*		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Services","NUM_LDAP_Servers");		if (data != null && data != "")	{			var numLDAPHosts = parseInt(data);			if (numLDAPHosts>0)	{				var LDAPdata = "";				for (var x=1; x<=numLDAPHosts; x++)	{					var theLDAPstring = "LDAP_Server_" + x;					data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Services",theLDAPstring);					if (data != null && data != "")	{						parent.parent.globals.debug("ISP LDAP_Server_" + x + ": " + data);						LDAPdata += data + "\r";						}					}				parent.parent.globals.document.vars.LDAP.value = LDAPdata;				}			}*/		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Publishing","Publish_URL");		parent.parent.globals.debug("ISP Publish_URL: " + data);		parent.parent.globals.document.vars.publishURL.value = data;		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Publishing","Publish_Password");		parent.parent.globals.debug("ISP Publish_Password: " + data);		parent.parent.globals.document.vars.publishPassword.value = data;		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Publishing","View_URL");		parent.parent.globals.debug("ISP View_URL: " + data);		parent.parent.globals.document.vars.viewURL.value = data;			// scripting support			var theScriptFile = "";		var theScriptEnabledFlag = "FALSE";		data = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Script","ScriptEnabled");		if (data != null && data != "")	{			data = data.toLowerCase();			}		if (data == "yes")	{			theScriptFile = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Script","ScriptFileName");			if (theScriptFile != null && theScriptFile != "")	{				theScriptEnabledFlag = "TRUE";				theScriptFile = parent.parent.globals.getConfigFolder(self) + theScriptFile;				parent.parent.globals.debug("ISP ScriptFileName: " + theScriptFile);				}			}		parent.parent.globals.document.vars.scriptEnabled.value = theScriptEnabledFlag;		parent.parent.globals.document.vars.scriptFile.value = theScriptFile;			// profile lockfile support				parent.parent.globals.document.vars.lckFilename.value = parent.parent.globals.document.setupPlugin.GetNameValuePair(theProviderFilename,"Configuration","ConfigurationFileName");		}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c1e87f4b87240bba3381745b6608f8ff6f1e0e71/useAcct.js/buggy/cmd/dialup/as_html/useAcct.js