function verifSelection() {


if (document.mail_form.champ1.value == "") {
alert("Veuillez indiquer votre nom")
return false
} 

if (document.mail_form.champ2.value == "") {
alert("Veuillez indiquer votre prenom")
return false
} 





if (document.mail_form.zone_email1.value == "") {
alert("Veuillez indiquer votre e-mail")
return false
}

invalidChars = " /:,;'"

for (i=0; i < invalidChars.length; i++) {	// does it contain any invalid characters?
badChar = invalidChars.charAt(i)

if (document.mail_form.zone_email1.value.indexOf(badChar,0) > -1) {
alert("Votre adresse e-mail contient des caracteres invalides. Veuillez verifier.")
document.mail_form.zone_email1.focus()
return false
}
}

atPos = document.mail_form.zone_email1.value.indexOf("@",1)			// there must be one "@" symbol
if (atPos == -1) {
alert('Votre adresse e-mail ne contient pas le signe "@". Veuillez verifier.')
document.mail_form.zone_email1.focus()
return false
}

if (document.mail_form.zone_email1.value.indexOf("@",atPos+1) != -1) {	// and only one "@" symbol
alert('Il ne doit y avoir qu\'un signe "@". Veuillez verifier.')
document.mail_form.zone_email1.focus()
return false
}

periodPos = document.mail_form.zone_email1.value.indexOf(".",atPos)

if (periodPos == -1) {					// and at least one "." after the "@"
alert('Vous avez oublie le point "." apres le signe "@". Veuillez verifier.')
document.mail_form.zone_email1.focus()
return false
}

if (periodPos+3 > document.mail_form.zone_email1.value.length)	{		// must be at least 2 characters after the 
alert('Il doit y avoir au moins deux caracteres apres le signe ".". Veuillez verifier.')
document.mail_form.zone_email1.focus()
return false
}


if (document.mail_form.champ3.value == "") {
alert("Veuillez indiquer l'objet de votre demande")
return false
} 



if (document.mail_form.zone_texte1.value == "") {
alert("Veuillez preciser votre message")
return false
} 

} // Fin de la fonction

