function simwinhand(n)
global HANDLES

hideallbtns

if n == 1
   showall(HANDLES.wininpdef.comm)
   for i=1:2
      set(HANDLES.wininpdef.edt(i),'visible','on')
   end
end

if n == 2
   showall(HANDLES.wininpdef.comm)
   showall(HANDLES.wininpdef.exp)
   for i=1:3
      set(HANDLES.wininpdef.edt(i),'visible','on')
   end
end

if n == 3
   showall(HANDLES.wininpdef.comm)
      for i=1:2
      set(HANDLES.wininpdef.edt(i),'visible','on')
   end
end

if n == 4
   
   showall(HANDLES.wininpdef.oth)
   set(HANDLES.wininpdef.comm(1),'visible','on')
   set(HANDLES.wininpdef.comm(4),'visible','on')
   set(HANDLES.wininpdef.comm(5),'visible','on')
   for i=1:1
      set(HANDLES.wininpdef.edt(i),'visible','on')
   end
end

   