add:         if (gCurrentAccountData && gCurrentAccountData.wizardAutoGenerateUniqueHostname) { var serverType = parent.getCurrentServerType(pageData); var userName = parent.getCurrentUserName(pageData); var hostName = parent.getCurrentHostname(pageData); var hostNamePref = hostName; var i = 1; while (parent.AccountExists(userName, hostName, serverType)) {   hostName = hostNamePref + "-" + i; i++; } setPageData(pageData, "server", "hostname", hostName); }  
context: function acctNamePageValidate() {  var accountname = document.getElementById("prettyName").value;  if (!accountname || accountname =="") {      var alertText = gPrefsBundle.getString("enterAccountName");      window.alert(alertText);      return false;  }  var pageData = parent.GetPageData();  setPageData(pageData, "accname", "prettyName", accountname);  return true;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/bd38269ddabb225ef99be9fbbc5d4532cf5efbf7/aw-accname.js/buggy/mailnews/base/prefs/resources/content/aw-accname.js