;+
; PROJECT
;           SOLARB EIS
;
; NAME
;           EIS_SAA_DIALOG
;
; PURPOSE
;           eis_mk_plan gui class definition
;
; NOTES
;           Return 0 for SAA NOT found
;
; CATEGORY
;           EIS timeline planning
;
; WRITTEN
;           John A Rainne, 14-Jan-2007, RAL
;
; VERSION
;           v0.1 JAR 8-Jan-2007
;               Included a dialog to ask for new time if SAA detected.
;-
;************************************************************************
FUNCTION eis_saa_dialog , new_start , tlbID

line1	 = 'Warning: Study inserted within 5mins of an SAA event!'
line2	 = 'New time-tagged entry may interrupt the previous entry!'
new_time = anytim2utc(new_start,/stime)
text_str = 'Start time should be at least:'
line3	 = STRJOIN([text_str,new_time],' ',/SINGLE)
line4	 = 'Use this time?'
mText	 = [line1,'','',line3,'',line4]
question = DIALOG_MESSAGE(mText, /QUESTION , DIALOG_PARENT = tlbID , /CANCEL)


RETURN , question


END
