function validateForm(formID) {

	var requiredFieldsPassed = true;
	
	$$('#' + formID + ' input.required').each( function(el) { 
	
		if (!el.getAttribute('originalBackgroundColor'))
				el.setAttribute('originalBackgroundColor', el.getStyle('background-color'));
				
		if (!el.value) {
	
			var tween = new Fx.Tween(el, 'background-color', { 'link':'chain', 'duration':500, transition: Fx.Transitions.Circ.easeOut }).start('#ff0000').start('#ffa7aa');
	
			requiredFieldsPassed = false;
			
		} else {
		
			if (el.getAttribute('originalBackgroundColor') != el.getStyle('background-color'))
				var tween = new Fx.Tween(el, 'background-color', { 'link':'chain', 'duration':300, transition: Fx.Transitions.Circ.easeOut }).start('#ffffaa').start(el.getAttribute('originalBackgroundColor'));
		}
	});
	
	return requiredFieldsPassed;
}