function checkForm( doc_this ){
	var error='';
	
	if ( trim( doc_this.Name.value ).length < 1 )
		error = error + "Nom non saisi\n";
	if ( trim( doc_this.FirstName.value ).length < 1 )
		error = error + "Prénom non saisi\n";
	if ( trim( doc_this.Email.value ).length < 1 )
		error = error + "E-mail non saisi\n";
	if ( wrongemail(doc_this.Email.value) )
		error = error + "E-mail incorrect\n";
	if ( trim( doc_this.Adress.value ).length < 1 )
		error = error + "Adresse non saisie\n";
	if ( trim( doc_this.Zip.value ).length < 1 )
		error = error + "Code Postal non saisi\n";
	if ( trim( doc_this.Town.value ).length < 1 )
		error = error + "Ville non saisie\n";
	
	if (error != '')
	{
		alert(error);
		return false;
	}
	else
	{
		return true;
	}
}

function wrongemail(email) { 
	
	if (email == '') return false;
	
	var atpl = email.indexOf("@",0)
		
	if (atpl < 1 ) return true;
	if (atpl == email.length - 1) return true;
	if (email.indexOf(".",atpl) < atpl + 2) return true;
	
	return false;
}

function trim (myString)
{
    return myString.replace(/^\s+/g,'').replace(/\s+$/g,'')
} 