function passwordStrength (password) {
                var point = 24; // = 120/5 (there is max 5 points)
            	var score = 0;

            	//if password bigger than 6 give 1 point
            	if (password.length > 3) score++;

            	//if password has both lower and uppercase characters give 1 point
            	if ( ( password.match(/[a-z]/) ) && ( password.match(/[A-Z]/) ) ) score++;

            	//if password has at least one number give 1 point
            	if (password.match(/\d+/)) score++;

            	//if password has at least one special caracther give 1 point
            	if ( password.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/) )	score++;

            	//if password bigger than 12 give another 1 point
            	if (password.length > 4) score++;
            	
            		//if password bigger than 12 give another 1 point
            	if (password.length > 5) score++;

                var box = document.getElementById("passwordStrength").getElementsByTagName("DIV");
                box[0].style.left = (point*score)+"px";
            }