Event.observe(window, "load", function(e) 
{
	if($('form_alerts'))
	{
		FormValidate.buildValidators('form_alerts');
		
		$('form_alerts').observe('submit', function(e) 
		{
			if(!FormValidate.validate('form_alerts', true, null))
				Event.stop(e);
			
		}.bindAsEventListener(this));
	}
	
});