
function validation_demande(thisForm)
{
    if (thisForm.nom.value == '' && thisForm.prenom.value == '' && thisForm.adresse.value == '' && thisForm.codepostal.value == '' && thisForm.ville.value == '' && thisForm.email.value == '')
    {
        alert('Vous devez renseigner le formulaire avant la validation !');
        thisForm.nom.focus();
        return false;
    }
    
    if (thisForm.email.value == '')
    {
        if (thisForm.civilite.value == '' || thisForm.nom.value == '' || thisForm.prenom.value == '' || thisForm.adresse.value == '' || thisForm.codepostal.value == '' || thisForm.ville.value == '' )
        {
            alert('Vous devez renseigner les informations suivantes : civilité, nom, prénom, adresse, code postal et ville !');
            thisForm.civilite.focus();
            return false;
        }
    }
    
    if (!(thisForm.email.value == ''))
    {
        if (thisForm.civilite.value == '' || thisForm.nom.value == '' || thisForm.prenom.value == '')
        {
            alert('Vous devez renseigner les informations suivantes : civilité, nom, prénom !');
            thisForm.civilite.focus();
            return false;
        }
    }
    
    if (!(thisForm.nom.value == ''))
    {
        if (thisForm.nom.value.indexOf('@') != -1)
        {
            alert('L\'adresse e-mail ne doit pas être saisie dans la zone NOM mais dans la zone EMAIL !');
            thisForm.nom.focus();
            return false;
        }
    }
    
    if (!(thisForm.prenom.value == ''))
    {
        if (thisForm.prenom.value.indexOf('@') != -1)
        {
            alert('L\'adresse e-mail ne doit pas être saisie dans la zone PRENOM mais dans la zone EMAIL !');
            thisForm.prenom.focus();
            return false;
        }
    }
    
    if (!(thisForm.adresse.value == ''))
    {
        if (thisForm.adresse.value.indexOf('@') != -1)
        {
            alert('L\'adresse e-mail ne doit pas être saisie dans la zone ADRESSE mais dans la zone EMAIL !');
            thisForm.adresse.focus();
            return false;
        }
    }
    
    if (!(thisForm.codepostal.value == ''))
    {
        if (thisForm.codepostal.value.indexOf('@') != -1)
        {
            alert('L\'adresse e-mail ne doit pas être saisie dans la zone CODE POSTAL mais dans la zone EMAIL !');
            thisForm.codepostal.focus();
            return false;
        }
    }
    
    if (!(thisForm.ville.value == ''))
    {
        if (thisForm.ville.value.indexOf('@') != -1)
        {
            alert('L\'adresse e-mail ne doit pas être saisie dans la zone VILLE mais dans la zone EMAIL !');
            thisForm.ville.focus();
            return false;
        }
    }
    
    
    
    return true;
}


