1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| function verif()
{
submit = true;
praticien = document.getElementById('PRA_NOM');
bilan = document.getElementById('RAP_BILAN');
produit1 = document.getElementById('PROD1');
produit2 = document.getElementById('PROD2');
motif = document.getElementById('RAP_MOTIF');
motifautre = document.getElementById('RAP_MOTIFAUTRE');
if(praticien.value == 'praticien')
{
surligne(praticien, true)
submit = false;
}
if(bilan.value.length < 2)
{
surligne(bilan, true)
submit = false;
}
if(produit1.value == 'Produit 1')
{
surligne(produit1, true)
submit = false;
}
if(produit2.value == 'Produit 2')
{
surligne(produit2, true)
submit = false;
}
if(motif.value == 'AUT')
{
if(motifautre.value.length < 2)
{
surligne(motifautre, true)
submit = false;
}
}
return submit;
} |