' + years
startarr=str2arr(start_select,'-')
sdays=select_menu(mdays,startarr(0))
smonths=select_menu(mmonths,startarr(1))
syears=select_menu(myears,string((fix((str2arr(startarr(2),' '))(0))) mod 1900)+1900)
; ------------------------------------
; ------- stop day menu ----------------
endarr=str2arr(stop_select,'-')
edays=select_menu(mdays,endarr(0))
emonths=select_menu(mmonths,endarr(1))
eyears=select_menu(myears,string((fix((str2arr(endarr(2),' '))(0))) mod 1900)+1900)
; ---------------------------------------
thead=(["Time:",""])(keyword_set(nohead))
dhead=(["Date:",""])(keyword_set(nohead))
start_menu=[dhead, $
'',sdays,' ', $
'',smonths,' ', $
'',syears,' ']
if not keyword_set(notime) then start_menu= $
[thead, $
'',mhour,' ',': ', $
'',mmin,' ', start_menu]
if data_chk(varname,/string) then $
start_menu=str_replace(start_menu,"start_",varname+"_")
stop_menu =[dhead, $
'',edays,' ', $
'',emonths,' ', $
'',eyears,' ']
if not keyword_set(notime) then stop_menu= [thead, $
'',mhour,' ',': ', $
'',mmin,' ', stop_menu]
nostop=keyword_set(nostop) or keyword_set(varname)
if n_elements(varname) eq 0 then varname="Start"
body=[strcapitalize(varname),start_menu]
if not keyword_set(nostop) then body=[body, "Stop",stop_menu]
retval=[header,body]
return, retval
end