$(function(){
	$(".write-n").blur(function(){
		var $this = $(this);
		var $value = $this.val();
		if ($value != "" && $value != null) {
			var isToggle = $this.attr('class').indexOf('noPass')>-1?true:false;
			if (isToggle) {
				$this.next().remove();
				$this.removeClass('noPass')
			}
			$this.after('<span class="passImg"><img src="img/pass.png"/></span>')
		} else{
			$this.next().remove();
			$this.addClass('noPass')
			$this.after('<span class="noPassImg-bounce"><img src="img/refuse.png"/>不能为空</span>')
		}
	})
})
function addReceive(){
	$("#receiverInfo").removeClass('hide');
}
function closeBounce(){
	$(".bounces").addClass('hide');
}
function sure(){
	var $newPwd = $("#newPwd").val();
	var $pwda = $("#pwd-a").val();
	if($pwda != $newPwd) {
		$("#pwd-a").next().remove();
		$("#pwd-a").addClass('noPass')
		$("#pwd-a").after('<span class="noPassImg-bounce"><img src="img/refuse.png"/>输入不一致</span>')
	}
}
