
function show(o) {

	var timenow = new Date().getTime();
	o.src = "/baoming/checkcode/random.jsp?d=" + timenow;
}


/*function submitFormMail() {

	
	if (document.stu_login.memorypassword.value.match(/^\s*$/g)) {
		alert("����������!");
		return;
	}
	if (document.getElementById("checkyzm").value.match(/^\s*$/g)) {
		alert("��������֤��!");
		return;
	}
	var url = "/baoming/checkcode/num.jsp?num="
			+ document.getElementById("checkyzm").value;

	var newxmlhttp = new net.ContentLoader(url, checkCodeMail, "", "get", null,
			null);
}*/
function checkCodeMail() {
	var gtext = this.req.responseText;
	if (gtext.indexOf("validate_successful") != -1) {
		document.stu_login.method = "post";
		document.stu_login.action = "/baoming/login/loginRedirectMail.action";
		document.stu_login.submit();
	} else {
		alert("验证码输入错误，请重新输入!");
		document.stu_login.memorypassword.value = "";
		document.getElementById("checkyzm").value = "";
		show(document.getElementById('random'));
	}
}