function TabbedPane(pane, tabs, args) {
	
	for (id in tabs) {
		Event.observe(id, 'click', function(e) {
			if (typeof(args.onClick) == 'function')
				args.onClick(e);
			
			for (id in tabs) $(id+"bis").removeClassName('current');
			//Event.element(e).addClassName('current');
			//elt = Event.element(e)+"bis";
			elt = Event.element(e).readAttribute('id');
			//$(elt+"bis").addClassName('current');
			$(elt+"bis").addClassName('current');
			//alert(elt);
			//alert(args);
			new Ajax.Updater(pane, tabs[Event.element(e).id], $H({
					asynchronous: true, 
					method: 'get'
				}).merge(args));
			Event.stop(e);
		});
	}
}