function checkAlertForm(form)
{
	if (form.theName.value.match(/^\s*$/))
	{
		alert('Veuillez introduire votre nom.');
		form.theName.focus();
		return(false);
	}
	if (form.theEmail.value.match(/^\s*$/))
	{
		alert('Veuillez introduire votre adresse e-mail.');
		form.theEmail.focus();
		return(false);
	}
	if (!form.theEmail.value.match(/^[^\s\.]\S*@[^\s\.]\S*[^\s\.]\.[^\s\.][^\s\.]+$/))
	{
		alert('Veuillez introduire une adresse e-mail correspondant au format x@xx.xx');
		form.theEmail.focus();
		return(false);
	}
	return(true);
}
function checkMailForm(form)
{
	if (form.theName.value.match(/^\s*$/))
	{
		alert('Veuillez introduire votre nom.');
		form.theName.focus();
		return(false);
	}
	if (form.theEmail.value.match(/^\s*$/))
	{
		alert('Veuillez introduire votre adresse e-mail.');
		form.theEmail.focus();
		return(false);
	}
	if (!form.theEmail.value.match(/^[^\s\.]\S*@[^\s\.]\S*[^\s\.]\.[^\s\.][^\s\.]+$/))
	{
		alert('Veuillez introduire une adresse e-mail correspondant au format x@xx.xx');
		form.theEmail.focus();
		return(false);
	}
	if (form.theNameFriend.value.match(/^\s*$/))
	{
		alert('Veuillez introduire le nom de votre ami.');
		form.theNameFriend.focus();
		return(false);
	}
	if (form.theEmailFriend.value.match(/^\s*$/))
	{
		alert('Veuillez introduire l\'adresse e-mail de votre ami.');
		form.theEmailFriend.focus();
		return(false);
	}
	if (!form.theEmailFriend.value.match(/^[^\s\.]\S*@[^\s\.]\S*[^\s\.]\.[^\s\.][^\s\.]+$/))
	{
		alert('Veuillez introduire une adresse e-mail correspondant au format x@xx.xx pour votre ami.');
		form.theEmailFriend.focus();
		return(false);
	}
	if (form.theComment.value.match(/^\s*$/))
	{
		alert('Veuillez introduire votre commentaire.');
		form.theComment.focus();
		return(false);
	}
	return(true);
}
function checkFeedbackForm(form)
{
	if (form.theName.value.match(/^\s*$/))
	{
		alert('Veuillez introduire votre nom.');
		form.theName.focus();
		return(false);
	}
	if (form.theEmail.value.match(/^\s*$/))
	{
		alert('Veuillez introduire votre adresse e-mail.');
		form.theEmail.focus();
		return(false);
	}
	if (!form.theEmail.value.match(/^[^\s\.]\S*@[^\s\.]\S*[^\s\.]\.[^\s\.][^\s\.]+$/))
	{
		alert('Veuillez introduire une adresse e-mail correspondant au format x@xx.xx');
		form.theEmail.focus();
		return(false);
	}
	if (form.theComment.value.match(/^\s*$/))
	{
		alert('Veuillez introduire votre commentaire.');
		form.theComment.focus();
		return(false);
	}
	return(true);
}