function DM_drawduneline(handles)

global data

if ~isempty(data.duneline)
    msgbox('Duneline already exists. Delete duneline before continuing','Duneline already exists!')
else
    data.duneline = impoly(handles.nodune,'Closed',0);
    data.handles.duneline = data.duneline;
end