/** 刷新验证码 */
function flashValidateCode(){
	var randomStr = random();
	$("#codeImage").get(0).src = "validateCode.action?randomStr=" + randomStr;
}

/** 产生一个随数 */
function random(){
	return Math.round(Math.random() * 10000);
}

/** 正确的消息提示 */
function rightNote(side, msg){
	$(side).addClass("onSuccess").html(msg);
}

/** 错误的消息提示 */
function errorNote(side, msg){
	$(side).addClass("onError").html(msg);
}