rem: function validateEmail() { 
add: function validateEmail() { 
context: function validateEmail() {   var emailElement = document.getElementById("email");  var email = emailElement.value;  var emailArray = email.split('@');  if (gCurrentDomain) {    // check if user entered an @ sign even though we have a domain    if (emailArray.length >= 2) {      email = emailArray[0];      emailElement.value = email;    }        if (!email.length || containsIllegalChar(email)) {      var alertText = gPrefsBundle.getString("enterValidEmailPrefix");      window.alert(alertText);      return false;    }  }  else {    if (emailArray.length != 2 ||        !emailArray[0].length ||        !emailArray[1].length ||         containsIllegalChar(emailArray[0]) ||        containsIllegalChar(emailArray[1])) {      alertText = gPrefsBundle.getString("enterValidEmail");      window.alert(alertText);      return false;    }  }      return true;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/1e0e99191d9d4f4f04fb4061b0ba91f347b8986f/aw-identity.js/buggy/mailnews/base/prefs/resources/content/aw-identity.js