add:  dump("check if this account exists\n"); var pageData = parent.GetPageData(); var hostName = servername.value; var serverType = parent.getCurrentServerType(pageData); var userName = parent.getCurrentUserName(pageData);  var accountExists = false; var accountManager = Components.classes["component: try { var server = accountManager.FindServer(userName,hostName,serverType); if (server) { accountExists = true; } } catch (ex) { accountExists = false; } if (accountExists) { var alertText = Bundle.GetStringFromName("accountExists"); window.alert(alertText); return false; }  
context: function validate() {  var servername = document.getElementById("hostname");  var smtpserver = document.getElementById("smtphostname");  if ((servername && servername.value =="") ||      (smtpserver && smtpserver.value == "")) {    var alertText = Bundle.GetStringFromName("enterValidHostname");    window.alert(alertText);    return false;  }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1430ebc7c692cfff35834aaa0dc56e3891f109ae/aw-server.js/buggy/mailnews/base/prefs/resources/content/aw-server.js