
var sfDriebitFormBehaviour = new Class({
	_form: null,
	
	initialize: function(form) {
		this._form = form;
		this._form.getElements('input').each(function(input) {
			input.addClass(input.getProperty('type'));
		});
		this._form.getElements('.error_list').each(function(error_list) {
			error_list.getParents('li').addClass('error');
		});
	}
});

document.addEvent('domready', function() {
	$$('form').each(function(form) {
		var form_behaviour = new sfDriebitFormBehaviour(form); 
	});
});