// JavaScript Document
$(function () {
    $("body").append('<div id="ajaxLoad" class="ui-widget-overlay" style="display:none"><div id="progressbar">正在载入</div></div>');
    var bodyWidth = $("body").width();
    var bodyHeight = $("body").height();
    $("#ajaxLoad").css({
        width:bodyWidth + 'px',
        height:bodyHeight + 'px',
        z_index: 1001
    });
    $("#ajaxLoad").bgiframe();
	var message = $("#massageBox");
	if(message.find("strong").html()){
		message.show();	
	}
	$("#ajaxLoad").ajaxStart(function () {$(this).show();$("#progressbar").show();});
	$("#ajaxLoad").ajaxStop(function () {$(this).hide();$("#progressbar").hide();});
	$("#identifyingCode").click(function(){
		$(this).find("img").attr("src","/pic/identifyingCode?rand="+new Date().getTime());										 
		return false;									 
	});
	/*
	*返回密码强度
	*/
	function Evaluate(word)
    {
    	return word.replace(/^(?:([a-z])|([A-Z])|([0-9])|(.)){5,}|(.)+$/g, "$1$2$3$4$5").length;
    } 
});

