function print_cond_cal(cruiseid,fh)
% PRINT_COND_CAL - print output figures from cond_cal.m
% 

%
% 
% VERSION: 
%	$Revision: 1.7 $
%	$Date: 2008/02/18 19:42:46 $
%	$Id: print_cond_cal.m,v 1.7 2008/02/18 19:42:46 duncombe Exp duncombe $
%
% CHANGELOG: 
%	2007/12/17 - CMDR
%	* read cruise id from the file in the current directory
%  2008/01/02 CMDR
%	* print a vector of figure handles
%	* vectorize and loop the code
%

%%%%%%%%%%% CMDR read cruiseid if we can
if nargin==0, cruiseid=getcruiseid; end;
if isempty(cruiseid), cruiseid=getcruiseid; end;
%%%%%%%%%%%

%%%%%%%%%% CMDR set up a default in case we are called without input args
if ~exist('fh'), fh=[]; end;
if isempty(fh), fh=[1:11,13-18,20]; end;
%%%%%%%%%% 

% Where to save the figures?
%%%%%%%%%%% CMDR
% c_path=['C:\CTD_calibration\',cruiseid,'\figures\'];
p=pwd; dir_del=p(1);
c_path=['figures' dir_del ];

% First Page:
%
% First Row
for i = 1:length(fh),
	figure(fh(i));
	% if i~=2, pause; end; % to edit the figure
	eval(['print -depsc ',c_path,'cond_c_fig' num2str(i)]);
end;
	
% Close the figures after saving the necessary ones
% close(fh);

return;

