#include <intuition/intuition.h>

extern struct IntuitionBase *IntuitionBase;

struct Window *GetWindow(Left, Top, Width, Height, Flags, Title)
LONG                     Left, Top, Width, Height;
ULONG                                              Flags;
UBYTE *Title;
{
   struct NewWindow nw;
   struct Window *OpenWindow();

   nw.LeftEdge    = Left;
   nw.TopEdge     = Top;
   nw.Width       = Width;
   nw.Height      = Height;
   nw.DetailPen   = nw.BlockPen = -1;
   nw.IDCMPFlags  = NULL;
   nw.Flags       = Flags;
   nw.FirstGadget = NULL;
   nw.CheckMark   = NULL;
   nw.Title       = Title;
   nw.Screen      = NULL;
   nw.BitMap      = NULL;
	nw.MinWidth		= nw.MinHeight	= nw.MaxWidth = nw.MaxHeight = -1;
   nw.Type        = WBENCHSCREEN;

	return(OpenWindow(&nw));
}

void RemWindow(Window)
struct Window *Window;
{
   void CloseWindow();

   if (Window) CloseWindow(Window);
}
