function Verif_contact()
    {
    if (document.forms["fcontact"].fnom.value=="" )
        {
        alert("Vous devez préciser votre nom.");
        return false;
        }
    if (document.forms["fcontact"].femail.value=="")
        {
        alert("Vous devez préciser votre E-mail.");
        return false;
        }
        
        
    var a=document.forms["fcontact"].femail.value;
    var test="" + a;
    if (test!="")
        {
        var suite=1;
        for(var k = 0; k < test.length;k++)
            {
            var c = test.substring(k,k+1);
            if(suite == 1 && c == "@")    {  suite=0;   }
            if (suite == 0 && c == "." && k<(test.length-1))  {   suite = 2; }
            }
        if (suite != 2)
            {
            alert("L adresse Email doit être de la forme xxxx@xxx.xx");
            return false;
            }
        }
    if (document.forms["fcontact"].fobjet.value=="")
        {
        alert("Vous devez préciser l'objet de votre message.");
        return false;
        }
    if (document.forms["fcontact"].fmessage.value=="")
        {
        alert("Vous devez préciser votre message.");
        return false;
        }
    return true;
    }



function Focus_in(id)
    {

    
   
    
    if (document.forms["fcontact"].fnom.value =="")
        document.forms["fcontact"].fnom.value = "Nom *";
    if (document.forms["fcontact"].fprenom.value =="")
        document.forms["fcontact"].fprenom.value = "Prénom";

    if (document.forms["fcontact"].fnom.value =="")
        document.forms["fcontact"].fnom.value = "Société";

    if (document.forms["fcontact"].fadresse.value =="")
        document.forms["fcontact"].fadresse.value = "Adresse";

    if (document.forms["fcontact"].fcp.value =="")
        document.forms["fcontact"].fcp.value = "Code postal";
    if (document.forms["fcontact"].fville.value =="")
        document.forms["fcontact"].fville.value = "Ville";
    if (document.forms["fcontact"].ftelephone.value =="")
        document.forms["fcontact"].ftelephone.value = "Téléphone";
    if (document.forms["fcontact"].ffax.value =="")
        document.forms["fcontact"].ffax.value = "Fax";

    if (document.forms["fcontact"].femail.value =="")
        document.forms["fcontact"].femail.value = "E-mail *";
    if (document.forms["fcontact"].fmessage.value =="")
        document.forms["fcontact"].fmessage.value = "Votre message *";
    
    
    if (id=="fnom" && document.forms["fcontact"].fnom.value == "Nom *")
        { document.forms["fcontact"].fnom.value = ""; }   
    
    if (id=="fprenom" && document.forms["fcontact"].fprenom.value == "Prénom")
        { document.forms["fcontact"].fprenom.value = "";             }

    if (id=="fsociete" && document.forms["fcontact"].fsociete.value == "Société")
        { document.forms["fcontact"].fsociete.value = "";             }
     
    if (id=="fadresse" && document.forms["fcontact"].fadresse.value == "Adresse")
        {document.forms["fcontact"].fadresse.value = "";             }
    
    if (id=="fville" && document.forms["fcontact"].fville.value == "Ville")
        { document.forms["fcontact"].fville.value = "";             }
    
    if (id=="fcp" && document.forms["fcontact"].fcp.value == "Code postal")
        { document.forms["fcontact"].fcp.value = "";             }
        
    if (id=="ftelephone" && document.forms["fcontact"].ftelephone.value == "Téléphone")
        { document.forms["fcontact"].ftelephone.value = "";             }
    
    if (id=="ffax" && document.forms["fcontact"].ffax.value == "Fax")
        { document.forms["fcontact"].ffax.value = "";             }
    
    if (id=="femail" && document.forms["fcontact"].femail.value == "E-mail *")
        { document.forms["fcontact"].femail.value = "";             }
    
    if (id=="fmessage" && document.forms["fcontact"].fmessage.value == "Votre message *")
        { document.forms["fcontact"].fmessage.value = "";             }
        
    
    }
    
