Form.error = {
		
	show : function(id, text)
	{
		if ($(id).innerHTML != '<div class="error">' + text + '</div>')
		{
			$(id).update(
				'<div class="error">' + text + '</div>'
			);
			new Effect.BlindDown(id);
		}
	},
	
	showAll : function(errors, texts)
	{
		var changed = {};
		
		$H(errors).each(
			function(el)
			{
				var text = 'error';
				
				eval('var textType = typeof texts.' + el[0] + '_' + el[1]);
				
				if (textType != 'undefined')
				{
					eval('var text = texts.' + el[0] + '_' + el[1]);
				}
				
				this.show(el[0] + '_error', text);
				
				eval('changed.' + el[0] + '_error = true');
				
			}.bind(this)
		)
		
		$$('.error').each(
			function(el)
			{
				var elUp = el.up(0);
				
				eval('var changedtype = typeof changed.' + elUp.id);
				
				if (changedtype == 'undefined')
				{
					el.remove();
				}
			}
		)
	},
	
	hideAll : function()
	{
		$$('.error').each(
			function(el)
			{
				el.remove();
			}
		)
	}
}
