rem: } 
add: updateProfileName( document.getElementById("ProfileName") ); } 
context: function getProfileDir(folder, showPopup){  if(showPopup)    folder = chooseFolder("Choose Profile Directory");  //dump("folder = " + folder + "\n");  if(folder != undefined && folder ) {    var folderText = document.getElementById("ProfileDir");    oldText = document.getElementById("deffoldername");    removeChildren(oldText);    // covert the file URL to a native file path.    // only need to do this if we called chooseFolder()    // otherwise, it's already a native file path.       // this can happen when the user goes back and next after    // selecting a folder    if (showPopup) {	    try {    		var spec = Components.classes["component://netscape/filespec"].createInstance();		    spec = spec.QueryInterface(Components.interfaces.nsIFileSpec);    		spec.URLString = folder;		    folder = spec.nativePath;	    }	    catch (ex) {    		dump("failed to convert URL to native path\n");	    }    }    folderText.setAttribute("value",folder);    if(!detect) {      var useDefault = document.createElement("titledbutton");      useDefault.setAttribute("value",bundle.GetStringFromName("useDefaultFolder"));      useDefault.setAttribute("class","dialog push");      useDefault.setAttribute("id","useDefaultButton");      useDefault.setAttribute("onclick","UseDefaultFolder();");      document.getElementById("folderbuttons").appendChild(useDefault);      detect = true;    }  }  //resize the parent window, because the native file path  //may require a window resize.  //comment this out for now, see bug #15825  //parent.sizeToContent();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/26a43e50b4db07ef3fdc7c7254cb82c471331786/newProfile1_2.js/buggy/profile/resources/content/newProfile1_2.js