var examPass = new function(){
	var iss = { 
		loadClass:["c1","c2","c3"], 
		text:["较弱","中","高"],
		textClass:["R t1","R t2","R t3"]
	};
	this.isSecurity = function(str){
		str = $.trim(str);
		var strLen = str.length;
		var lv = -1;
		if(strLen>1)
			$("#passNav").show();
		if (str.match(/[a-z]/ig)){lv++;} 
		if (str.match(/[0-9]/ig)){lv++;} 
		if (str.match(/(.[^a-z0-9])/ig)){lv++;} 
		if (str.length < 6 && lv > 0){lv--;}
		if(strLen<1)
			$("#passNav").hide();
		switch(lv) {
			case 0:
				this.level(0);
				break;
			case 1:
				this.level(1);
				break;
			case 2:
				this.level(2);
				break;
			default:
				$("#passNav").hide();
		}
	};
	this.hide = function(){
		$("#passNav").hide();
	}
	this.level = function(v){
		$("#passContext").attr("class",iss.textClass[v]).html(iss.text[v]);
		$("#passLoad").attr("class",iss.loadClass[v]);
	};
};
