docs: function(label, funct, doc)
  	{
  		doc = (doc != null) ? doc : document;
  		
  		var button = doc.createElement('button');
  		mxUtils.write(button, label);
  
  		mxEvent.addListener(button, 'click', function(evt)
  		{
  			funct(evt);
  		});
  		
  		return button;
  	}