function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function isnum(str)
{
	rset="";
	for(i=0;i<str.length;i++)
	{
		if(str.charAt(i)>="0" && str.charAt(i)<="9")
		{
		}
		else
		{
			return 0;
		}
	}
	return 1;
}


function checkuu()
{
  if(checkspace(document.loginfo.username.value)) {
	document.loginfo.username.focus();
        alert("会员名不能为空！");
	return false;
  }
  if(checkspace(document.loginfo.password.value)) {
	document.loginfo.password.focus();
        alert("密码不能为空！");
	return false;
  }
}

