function ccimgchange()
{
 document.getElementById("ccimg").src = 'getcode.asp?a=' + Math.random();
}


function userlogincheck()
{
  if(window.document.form1.username.value=="")
  {
     alert("请输入用户名!");
	 window.document.form1.username.focus();
	 return false;
  }
  if(window.document.form1.pwd.value=="")
  {
     alert("请输入密码!");
	 window.document.form1.pwd.focus();
	 return false;
  }
 if(window.document.form1.checkcode.value=="")
  {
     alert("请输入四位数字的验证码!");
	 window.document.form1.checkcode.focus();
	 return false;
  }
  return true;
}