function [isvalid] = validateID(id)
%VALIDATEID Returns 1 if id is a valid ID and 0 otherwise. An ID is valid
%if it is a 7 digit number (and the first digit can't be 0).
  if length(id) ~= 1
    isvalid = 0;
  elseif ~isnumeric(id)
    isvalid = 0;
  elseif id < 1000000 || id > 9999999
    isvalid = 0;
  elseif mod(id,1) ~= 0
    isvalid = 0;
	else
		isvalid = 1;
	end
end

