rem: while ((fName != null) && pathMentioned(fName)) { fName = prompt("Please enter file name only. This file will be saved by default to " + top.globals.getConfigFolder(top.globals), sgName); }   while ((fName != null) && ((fName.substring(fName.length-4, fName.length)  != ".IAS") && (fName.substring(fName.length-4, fName.length)  != ".ias"))) 
add: while ((fName != null) && (((fName.substring(fName.length-4, fName.length)  != ".IAS") && (fName.substring(fName.length-4, fName.length)  != ".ias")) || pathMentioned(fName))) 
context: function askIASFileNameAndSave(){	var sName 	= 	getGlobal("SiteName");	var save 	= 	null;		netscape.security.PrivilegeManager.enablePrivilege( "AccountSetup" );	//flush data from currenly open tab into globals	if (parent.tabs && parent.tabs.tabbody && parent.tabs.tabbody.saveData)	{		parent.tabs.tabbody.saveData();	}	//first check if there is a sitename, if not, prompt for one	if ((sName == null) || (sName == ""))	{		var pName = prompt("Please enter a name for this configuration (this will be shown to the end user):", "");		if ((pName != null) && (pName != ""))		{			setGlobal("SiteName", pName);			setGlobal("Description", pName);			sName = pName;		}		else		{			save = false;		}		}		//now, if there is a sitename, suggest an IAS fileName, prompt for confirmation	//debug( "about to suggest..." );	while (save == null)	{		//debug( "in that while loop..." );		if ((sName != null) && (sName != ""))		{			var sgName = getGlobal("IASFileName");					if ((sgName == null) || (sgName == "") || (sgName == "_new_"))				sgName = suggestIASFileName(null);						var fName = prompt("Enter the file name for this configuration (must end with .IAS)", sgName);						//IAS files are to be saved only in the config folder. 			while ((fName != null) && pathMentioned(fName))						{				fName = prompt("Please enter file name only. This file will be saved by default to " + top.globals.getConfigFolder(top.globals), sgName);			}			//if they entered an improper suffix, prompt again, and again			while ((fName != null) && ((fName.substring(fName.length-4, fName.length)  != ".IAS") && (fName.substring(fName.length-4, fName.length)  != ".ias")))			{				sgName = suggestIASFileName(fName);				fName = prompt("Enter the fileName for this configuration (must end with .IAS)", sgName);			}						// if the name exists, prompt to replace						if ((fName != null) && (checkIfIASFileExists(fName)))			{				var conf = confirm("The file: " + fName + " already exists.  Replace?");				if (conf)				{ 					save = true;				}				else					save = null;			}			else if(fName != null)			{				//fileName doesn't exist - we can save				save = true;			}			else			{				//user canceled - name = null				save = false;					}		}	}			//now save the file if the user didn't cancel	if (save == true)	{		//save the file		writeToFile(fName);		top.globals.document.setupPlugin.FlushCache();		alert("This file is saved as " + top.globals.getConfigFolder(top.globals) + fName);		refreshConfigFrame(fName);		return fName;	}	else	{		//alert("Could not save this configuration because you did not provide a Name");		return null;	}}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c40f37cf9e9dd8baf528600025aea4d1f4da53e7/iasglob.js/buggy/cmd/dialup/tools/cg/docs/ias/iasglob.js