<!--
$(document).ready(function()
{	$('form').submit(function()
	{	var $msg='';
	
		$('input.required',this).each(function()
		{	$val = $(this).val()
			if($val=='')
			{	$(this).css('border','solid 2px #FF3333');
				$msg += '\n- '+$(this).attr('title');
			}
			else
			{	$(this).css('border','');
			}
		});
		
		$('textarea.required',this).each(function()
		{	$val = $(this).val()
			if($val=='')
			{	$(this).css('border','solid 2px #FF3333');
				$msg += '\n- '+$(this).attr('title');
			}
			else
			{	$(this).css('border','');
			}
		});
		
		$('select.required',this).each(function()
		{	$val = $(this).val()
			if($val=='')
			{	$(this).css('border','solid 2px #FF3333');
				$msg += '\n- '+$(this).attr('title');
			}
			else
			{	$(this).css('border','');
			}
		});
		
		if($msg!='')
		{	alert('There are errors with this form\n'+$msg);
			return false;
		}
	});
});
-->