//JS form validation
			

			function formValidation(f) {
				var choix = f.choix.value;
				var prenom = f.prenom.value;
				var nom = f.nom.value;								
				var courriel = f.courriel.value;
				var courriel2 = f.courriel2.value;
				var tel = f.tel.value;
				var msg = f.msg.value;				
				var file1 = f.File1.value;
				var file2 = f.File2.value;
				var file3 = f.File3.value;
				
				// Initialize a flag and errorMsg.
				var flag = "vert";
				var errorMsg = "Please correct the following errors:\n\n";
				
				//  Validate the fields.
				if(choix == "") {
					flag = "rouge";
					errorMsg += "* No valid choice was selected. \n";
				}				
				if(!validerNomComplet(prenom)) {
					flag = "rouge";
					errorMsg += "* The first name data field is not valid.\n";
				}
				if(!validerNomComplet(nom)) {
					flag = "rouge";
					errorMsg += "* The last name data field is not valid.\n";
				}
				if(!validerCourriel(courriel)) {
					flag = "rouge";
					errorMsg += "* The e-mail data field is not valid.\n";
				}
				if(courriel2 != courriel) {
					flag = "rouge";
					errorMsg += "* The two e-mail data fields are not identical.\n";
				}
				if(msg == "") {
					flag = "rouge";
					errorMsg += "* The message field is empty.\n";
				}
				if((file1 != "" && file2 != "" && file1 == file2) ||
				   (file1 != "" && file3 != "" && file1 == file3) ||
				   (file2 != "" && file3 != "" && file2 == file3))
				{
					flag = "rouge";
					errorMsg += "* 2 or more photos inserted are identical.\n";
				}
			
				// Check flag If red we stop the post and ask to check errors.
				if(flag == "vert") {
					return true;
				}
				else {
					alert(errorMsg);
					return false;
				}
			}
