function testPasswordCss(passwd)
{
		var description = new Array();
		description[0] = "Minimum strength not met";
		description[1] = "Weak";
		description[2] = "Improving";
		description[3] = "Strong";
		description[4] = "Strongest";
		description[5] = "";

		var intScore   = 0
		var strVerdict = 0
		
		// PASSWORD LENGTH
		if (passwd.length==0 || !passwd.length)                         // length 0
		{
			intScore = -1
		}
		else if (passwd.length>0 && passwd.length<5) // length between 1 and 4
		{
			intScore = (intScore+3)
		}
		else if (passwd.length>4 && passwd.length<8) // length between 5 and 7
		{
			intScore = (intScore+9)
		}
		else if (passwd.length>7 && passwd.length<12)// length between 8 and 15
		{
			intScore = (intScore+15)
		}
		else if (passwd.length>11)                    // length 16 or more
		{
			intScore = (intScore+18)
		}
		
		
		// LETTERS (Not exactly implemented as dictacted above because of my limited understanding of Regex)
		if (passwd.match(/[a-z]/))                              // [verified] at least one lower case letter
		{
			intScore = (intScore+1)
		}
		
		if (passwd.match(/[A-Z]/))                              // [verified] at least one upper case letter
		{
			intScore = (intScore+7)
		}
		
		// NUMBERS
		if (passwd.match(/\d+/))                                 // [verified] at least one number
		{
			intScore = (intScore+5)
		}
		
		if (passwd.match(/(.*[0-9].*[0-9].*[0-9])/))             // [verified] at least three numbers
		{
			intScore = (intScore+8)
		}
		
		// COMBOS
		if (passwd.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/))        // [verified] both upper and lower case
		{
			intScore = (intScore+10)
		}

        if (passwd.match(/([a-zA-Z])/) && passwd.match(/([0-9])/)) // [verified] both letters and numbers
        {
                intScore = (intScore+10)
        }

																  // [verified] letters, numbers, and special characters
		if (passwd.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/))
		{
			intScore = (intScore+10)
		}

	
//if you don't want to prevent submission of weak passwords you can comment out
//		   document.getElementById("formSubmit").disabled = true;
	
		if(intScore == -1)
		{
		   strVerdict = description[5];
		   document.getElementById("meterEmpty").style.width= "100%";
   		   document.getElementById("meterFull").style.width= "0";
   		   document.getElementById("submitButton").disabled = true;
		}
		else if(intScore > -1 && intScore < 16)
		{
		   strVerdict = description[0];
		   document.getElementById("meterEmpty").style.width= "100%";
   		   document.getElementById("meterFull").style.width= "0%";
   		   document.getElementById("submitButton").disabled = true;
		}
		else if (intScore > 15 && intScore < 25)
		{
		   strVerdict = description[1];
		   document.getElementById("meterEmpty").style.width= "100%";
   		   document.getElementById("meterFull").style.width= "25%";
   		   document.getElementById("submitButton").disabled = true;
		}
		else if (intScore > 24 && intScore < 35)
		{
		   strVerdict = description[2];
		  document.getElementById("meterEmpty").style.width= "100%";
   		  document.getElementById("meterFull").style.width= "50%";
   		  document.getElementById("submitButton").disabled = false;
		}
		else if (intScore > 34 && intScore < 45)
		{
		   strVerdict = description[3];
		   document.getElementById("meterEmpty").style.width= "100%";
   		   document.getElementById("meterFull").style.width= "75%";
   		   document.getElementById("submitButton").disabled = false;
		}
		else
		{
		   strVerdict = description[4];
		   document.getElementById("meterEmpty").style.width= "100%";
   		   document.getElementById("meterFull").style.width= "100%";
   		   document.getElementById("submitButton").disabled = false;
		}
	
	document.getElementById("Words").innerHTML= (strVerdict);
	
}
