add: if (typeof(contentWindow.ValidateContents) == "function") if (!contentWindow.ValidateContents()) return;  
context: function onNext(event) {    if (!wizardMap[currentPageTag]) {        dump("Error, could not find entry for current page: " +             currentPageTag + "\n");        return;    }        // only run validation routine if it's there    var validate = wizardMap[currentPageTag].validate;    if (validate)        if (!validate(contentWindow, wizardContents)) return;    saveContents(contentWindow, wizardContents);        nextPage(contentWindow);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ed9460f15222a7c0162f6c567336cd7897e74067/AccountWizard.js/clean/mailnews/base/prefs/resources/content/AccountWizard.js