function DragAndDropButton(buttonDescription, parent, type)
{
	this.description = buttonDescription;
   	this.dndpanel = parent;
   	this.top;
   	this.left;
   	this.width;
   	this.height;
   	this.type = type;
	
	DragAndDropButton.prototype.createNewButton = function()
	{
		var newdiv  = window.parent.ContentFrame.document.getElementById(this.description);
		newdiv.style.zIndex = 1000;
		this.top = parseInt(getStyle(this.description, "top"))
		this.left = parseInt(getStyle(this.description, "left"))
		this.width = parseInt(getStyle(this.description, "width"))
		this.height = parseInt(getStyle(this.description, "height"))
		newdiv.parent = this.dndpanel.getDiv();
		newdiv.style.cursor = "default";
		newdiv.dndpanel = this.dndpanel;
		if(this.type == "reset")
			newdiv.onclick = window.parent.reset;
		else if(this.type == "done")
			newdiv.onclick = window.parent.answerDND;
	}
	
	DragAndDropButton.prototype.getWidth = function()
	{
		return this.width
	}
	
	DragAndDropButton.prototype.getHeight = function()
	{
		return this.height
	}
	
	DragAndDropButton.prototype.getDescription = function()
	{
		return this.description
	}
	
	DragAndDropButton.prototype.getTop = function()
	{
		return this.top
	}	
	
	DragAndDropButton.prototype.getLeft = function()
	{
		return this.left
	}
	
	DragAndDropButton.prototype.getDiv = function()
	{
		return this.div
	}	

	this.createNewButton();
}