var Forms = new Class({
	'initialize': function(form){
		form.notify = this.notify;
		form.clear = this.clear;
		form.initialized = true;
		return form;
	},
	'notify': function(message,type){
		var output = '';
		if (!type) type = 'info';
		if ($type(message) == 'string'){
			output = '<li class="'+type+'">'+message+'</li>';
		} else if($type(message) == 'array'){
			message.each(function(message){output += '<li class="'+type+'">'+message+'</li>';});
		}
		this.getElements('.notifications').set('html',output);
	},
	'clear': function(){
		this.getElements('input,select,textarea').each(function(element){
			if (element.get('type').toUpperCase() != 'HIDDEN') element.set('value','');
		})
	}
});