function passLevel(pass, graph){
	var level = 0;	
	if((pass.length >= 5) && (pass.length <= 7)){level += 10;}
	else if(pass.length > 7){level += 25;}
	if(pass.match(/[a-z]+/)){level += 10;}
	if(pass.match(/[A-Z]+/)){level += 20;}
	if(pass.match(/\d+/)){level += 20;}
	if(pass.match(/\W+/)){level += 25;}
	document.getElementById(graph).style.width = level+'%';
}
