function Verif()
{
if (document.GrGb.nom.value == ""){alert("\nYou have to write your Family Name.\n\n" +
            "Indiquez votre Nom.")
document.GrGb.nom.focus();
return false;
}

if (window.RegExp){var reg = new RegExp("^[a-z]","gi");
 if (!reg.test(document.GrGb.nom.value)) {alert("Field \"Name\" is not valid\n\n" + "Un nom doit commencer par un caractète alphabétique\n\n" + "(Ne pas commencer par un espace, une lettre accentuée, un caractère spécial, etc...)")
document.GrGb.nom.select();
document.GrGb.nom.focus();
return(false);
 }
}

if (document.GrGb.email.value == ""){alert("\nYou have to write your e-mail.\n\n" + 
            "Indiquez votre adresse e-mail.")
document.GrGb.email.focus();
return false;
}

if (window.RegExp) {var reg = new RegExp("^[ \t]*[-a-z0-9_+%\.=]+@[-a-z0-9\.]+\.[a-z]+[ \t]*$","gi");
 if (!reg.test(document.GrGb.email.value)){alert("\nE-mail adress is not valid\n\n" + "Entrez correctement votre adresse.")
document.GrGb.email.select();
document.GrGb.email.focus();
return(false);
 }
}

else
return true;
}

function champsok() 
{
if (document.AVIS.nom.value.length == "0" ||document.AVIS.nom.value == "Name of your friend") {
alert("You have to write the name of your friend\nThank you");
document.AVIS.nom.select();
document.AVIS.nom.focus();
return false; 
}

if (window.RegExp){var reg = new RegExp("^[a-z]","gi");
 if (!reg.test(document.AVIS.nom.value)) {alert("Field \"Name\" is not valid\n\n" + "This field must begin with an alphanuméric character,\n\n" + "(Don't begin with a \"space\" , no empty field, etc...)")
document.AVIS.nom.select();
document.AVIS.nom.focus();
return(false);
 }
}

if (document.AVIS.email.value.length == "0" ||document.AVIS.email.value == "Email of your friend") {
alert("You have to write the E-mail of your friend\nThank you");
document.AVIS.email.select();
document.AVIS.email.focus();
return false; 
}

if (window.RegExp) {var reg = new RegExp("^[ \t]*[-a-zé0-9_+%\.=]+@[-a-z0-9\.]+\.[a-z]+[ \t]*$","gi");
 if (!reg.test(document.AVIS.email.value)){alert("\nField E-mail not valid\n\n" + "Please, write a valid E-mail")
document.AVIS.email.select();
document.AVIS.email.focus();
return(false);
 }
}

return true; 
}
