function do_validation()
{
	if ($('name'))
	{
		if ($F('name').blank())
		{
			alert('Please fill the "Name" field!');
			$('name').focus();
			return;
		}
		if (!validEmail($F('email')))
		{
			alert('The e-mail address you entered is not a valid address!');
			$('email').focus();
			return;
		}
	}
	else
	{
		if ($F('first_name').blank())
		{
			alert('Please fill the "First Name" field!');
			$('first_name').focus();
			return;
		}
		if ($F('last_name').blank())
		{
			alert('Please fill the "Last Name" field!');
			$('last_name').focus();
			return;
		}
		if (!validEmail($F('email')))
		{
			alert('The e-mail address you entered is not a valid address!');
			$('email').focus();
			return;
		}
		if ($F('email') !== $F('email_confirmed'))
		{
			alert('The confirmed e-mail address is not the same with confirmed e-mail address!');
			return;
		}
	}
		$('the_form').submit()
}