function[plotwindow_id] = get_plotwindow_id(fig)
if (getversion >= 8.4)
plotwindow_id = num2str(fig.Number);
else
plotwindow_id = num2str(fig);
end