rem: if ((counter >= 3) && !TestWhiteSpaces) TestCounter2 = true; else TestCounter2 = false; 
add: if ((counter >= 3) && !(TestWhiteSpaces)) TestCounter2 = true; 
context: function CheckPasswordSecurity(password) {	var TestNumberOfChars = false;	var TestUppercaseChars = false;	var TestLowercaseChars = false;	var TestDigits = false;	var TestSpecialChars = false;	var TestCounter = false;	var TestCounter2 = false;	var TestWhiteSpaces = false;	var counter = 0;	/* Check if length of password is greather then 8 */	if (password.length >= 8) TestNumberOfChars = true;	else TestNumberOfChars = false;	/* Check for minimum of 2 uppercase Letters */	if (password.match(/[A-Z].*[A-Z]/)) TestUppercaseChars = true;	else TestUppercaseChars = false;	/* Check for minimum of 2 lowercase letters */	if (password.match(/[a-z].*[a-z]/)) TestLowercaseChars = true;	else TestLowercaseChars = false;	/* Check for minimum of 2 digits */	if (password.match(/[0-9].*[0-9]/)) TestDigits = true;	else TestDigits = false;	/* Check for minimum of 2 special chars */	var specCharCounter = 0;	if (password.length > 0) {		characters = password.split("");		for (var i = 0; i < characters.length; i++) {			singleChar = characters[i];			if (singleChar.match(/[^a-zA-Z0-9]/)) specCharCounter++;		}		if (specCharCounter >= 2) TestSpecialChars = true;		else TestSpecialChars = false;	}	/* Check for whitespaces and ESC-Sequences */	if (password.match(/\s/)) TestWhiteSpaces = true;	else TestWhiteSpaces = false;	/* Check for minimum of 2 true ifs */	if (TestUppercaseChars) counter++;	if (TestLowercaseChars) counter++;	if (TestDigits) counter++;	if (TestSpecialChars) counter++;	if ((counter >= 2) && !TestWhiteSpaces) TestCounter = true;	else TestCounter = false;	if ((counter >= 3) && !TestWhiteSpaces) TestCounter2 = true;	else TestCounter2 = false;	var zaehler = 0;	if (TestCounter) zaehler++;	if (TestCounter2) zaehler++;	if (TestNumberOfChars) zaehler++;	document.images.seclevel.src = 'design/images/password_bar'+ zaehler +'.jpg';}
meta: 4958	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4958/03c3bb60c99cf0ceaffafa8bc5fac1ccd35e56f5/scripts.js/clean/scripts.js