var dragRegionBoxes = new Array(); var testCount = 0; // Constructor for DarwinListbox class. function DarwinListbox(window, id, locationX, locationY, width, height, background, bordercolor, highlightcolor, allowMultipleSelect, allowDrag, allowDrop, allowRearrange) { // Remember some arguments for later. this.window = window; this.id = id; this.body = ''; this.contents = new Array(); this.highlightcolor = highlightcolor; this.mousedown = false; this.allowMultipleSelect = allowMultipleSelect; this.allowDrag = allowDrag; this.allowDrop = allowDrop; this.locationX = locationX; this.locationY = locationY; this.sizeX = width; this.sizeY = height; this.width = width; this.height = height; this.bordercolor = bordercolor; // If this is droppable, add it to the list of droppable regions. if (allowDrop) dragRegionBoxes[dragRegionBoxes.length] = this; this.allowRearrange = allowRearrange; // Output a CSS-P style sheet for this document. var d = window.document; d.writeln('