function isValidEmailAddress(s) {
        var temp = s.replace(/\s/g, "")
        return (temp.match(/^[\w\.\-]+\x40[\w\.\-]+\.\w{2,3}$/)) &&
                        temp.charAt(0) != "." && !(temp.match(/\.\./))
}

function changeBtnClick()
{
 txt = "Envoi en cours...";
 document.getElementById('btnValidation').innerHTML = txt;
}


function module_contact_verif(f)
{

              var errors = [];

                if (!isValidEmailAddress(f.EMAILC.value))
                        errors.push("Votre adresse email est invalide.");

                if (f.MESSAGE.value == "")
                        errors.push("Vous n'avez pas entré de message.");


                if (errors.length > 0) {
                        alert(errors.join("\n"))
                        return false;
                }

                return true;

}

function  module_contact_submit(f)
{
         
		 if(module_contact_verif(f))
             {
              f.submit();
              changeBtnClick();
             }else   return false;
}

function NoSpace()
{
        return ((event.keyCode != 32))
}


