var $ = function(id){return document.getElementById(id);}
function checkInput(theform)
{
	if($("UserID").value.length<5){
		alert('请您输入用户名！');
		$("UserID").focus();
		return false;
	}
	if ($("UserPass").value.length<5 ){
		alert('请您输入用户密码！');
		$("UserPass").focus();
		return false;
    }
	if ($("ValidCode").value.length<1 ){
		alert('请您输入验证码！');
		$("ValidCode").focus();
		return false;
    }
}
function check2(theform)
{
	if($("text").value.length<1 ){
		alert('请输入留言内容！');
		$("text").focus();
		return false;
	}
	if($("text").value.length>1024 ){
		alert('您输入留言内容超过500个汉字！');
		$("text").focus();
		return false;
	}
}	
