if (e == '' || p == '') { 
var account = qaSetup.retrieveAccount("qa-settings-createaccount-frame"); var uname = account.name; var passwd = account.password;   if (uname == '' || passwd == '') { 
    validateAccount : function() {			// we're creating a new account, so get the uname and passwd 			// from the account created page:			var page = document.getElementById('qa-setup-createaccount-iframe').						contentDocument;			if (!page) {				alert("create account page is missing");				return false;			}			if (page.wrappedJSObject == null)				page.wrappedJSObject = page;			if (page.forms[0] && page.forms[0].wrappedJSObject == null)				page.forms[0].wrappedJSObject = page.forms[0];						if (page.location == litmus.baseURL+'extension.cgi?createAccount=1'			    && qaSetup.didSubmitForm==0) {				page.forms[0].wrappedJSObject.submit();				qaSetup.didSubmitForm = 1;				setTimeout("qaSetup.validateAccount()", 5000);				return false;			}			if (qaSetup.didSubmitForm == 1 && ! page.forms || 			   ! page.forms[0].wrappedJSObject || 			   ! page.forms[0].wrappedJSObject.email && 			   ! page.forms[0].wrappedJSObject.email.value)  			   		{qaSetup.didSubmitForm = 2;			   		setTimeout("qaSetup.validateAccount()", 4000);			   		return false;}			var e = '';			var p = '';			if (page.forms && page.forms[0].wrappedJSObject && 			    page.forms[0].wrappedJSObject.email && 				page.forms[0].wrappedJSObject.email.value) 				{ e=page.forms[0].wrappedJSObject.email.value }			if (page.forms && page.forms[0].wrappedJSObject && 			    page.forms[0].wrappedJSObject.password && 				page.forms[0].wrappedJSObject.password.value) 				{ p=page.forms[0].wrappedJSObject.password.value }        // e is account, p is password				var uname = e;		var passwd = p;		        if (e == '' || p == '') {            alert("No username or password has been registered.");            return false;    //we need better error handling.        }        qaPref.litmus.setPassword(uname, passwd);        accountCreate.updateFunction();                        // TODO: ideally we would validate against litmus, but...		return true;	},
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/a3a9a2c311afc9d76e4e6bfc036e5897fa988bc1/accountcreate.js/clean/testing/extensions/community/chrome/content/accountcreate.js