public boolean validateChecksum(Object d, short checksum) {
		short newChecksum = 0;
		String data = d.toString();
		byte[] dataBytes = data.getBytes();
		
		for (int i = 0; i < dataBytes.length; i++) {
			newChecksum += (short) dataBytes[i];
		}
		while ( newChecksum / 0xff != 0) {
			newChecksum = (short) (newChecksum & 0xff + newChecksum >> 8);
		}
		
		if ((newChecksum & 0xff) + (checksum & 0xff) == 0xff) {
			return true;
		} else {
			return false;
		}
	}