public boolean checkPwd(String username, String pwd) {
		SQLCommand cmd=new SQLCommand();
		String realpwd=cmd.queryScalar("select a_pass from admins where a_user='"+username+"'");
		if(pwd.equals(realpwd))
			return true;
		else
			return false;
	}