function ErrorControl(message)
{
	this.Message = message;
}

ErrorControl.prototype = new GControl();

ErrorControl.prototype.initialize = function (map) {

	var div = document.createElement("div");
	div.className = "ControlError";
	div.style.position = "absolute";
	div.style.width = "175px";
	div.innerHTML = this.Message;
	
	map.getContainer().appendChild(div);
	
	return div;
}

ErrorControl.prototype.getDefaultPosition = function() { return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(5, 30)); }

ErrorControl.prototype.printable = function() { return false; }

ErrorControl.prototype.selectable = function() { return false; }