// JavaScript Document
function CheckLog(theForm){
	if (theForm.username.value == "")
	{alert("请输入登录名字");
	theForm.username.focus();
	return false;
	}
	if (theForm.password.value == "")
	{alert("请输入密码");
	theForm.password.focus();
	return false;
	}
	if((theForm.verifycode.value=="")|| !(theForm.verifycode.value.length==4))
		{
		alert("请输入四位验证码");   
        theForm.verifycode.focus();   
        return  false; 
		}
	theForm.submit();
}

function isNull(a,b){
	if(b.value=="")
	{alert("请输入关键字");
	b.focus();
	return false;}
	}

