function valid = checkmastruct(maStruct)
% CHECKMASTRUCT checks for standard mastruct types
%
% Currently supported: GenePix, Imagene, SPOT

% Copyright 2003-2004 The MathWorks, Inc.
% $Revision: 1.1.12.1 $   $Date: 2004/12/24 20:44:54 $
valid =  isfield(maStruct,'Header')&& isfield(maStruct.Header,'Type') && ...
        (~isempty(strfind(maStruct.Header.Type,'GenePix')) ...
        || ~isempty(strfind(maStruct.Header.Type,'SPOT'))...
        || ~isempty(strfind(maStruct.Header.Type,'ImaGene')));