// JavaScript Document

//Verification des champs vides lors de la saisie du formulaire de connexion
 function testconnexion(theform)
{
 if (theform.mdp.value=="")
  {
    alert("Saisissez un mot de passe\".");
    theform.mdp.focus();
    return (false);
  }
 
 else return(true);

}
/////////////////////////////////////////////////////////////////////
 function testparcelledisponible(theform)
{
 if (theform.datep.value=="")
  {
    alert("Saisissez une date\".");
    theform.datep.focus();
    return (false);
  }
 if (theform.sitep.value=="")
  {
    alert("Saisissez le site\".");
    theform.sitep.focus();
    return (false);
  }
   if (theform.nombrep.value=="")
  {
    alert("Saisissez le nombre de parcelle\".");
    theform.nombrep.focus();
    return (false);
  }
  
 else return(true);
}
/////////////////////////////////////////
 function testcontact(theform)
{
 if (theform.identite.value=="")
  {
    alert("Saisissez une identité\".");
    theform.identite.focus();
    return (false);
  }
 if (theform.mail.value=="")
  {
    alert("Saisissez le mail\".");
    theform.mail.focus();
    return (false);
  }
   if (theform.telephone.value=="")
  {
    alert("Saisissez le telephone\".");
    theform.telephone.focus();
    return (false);
  }
   if (theform.objet.value=="")
  {
    alert("Saisissez l'objet\".");
    theform.objet.focus();
    return (false);
  }
   if (theform.texte.value=="")
  {
    alert("Saisissez le message\".");
    theform.texte.focus();
    return (false);
  }
   
 else return(true);
}
/////////////////////////////////////////////////////
 function testattestation(theform)
{
 if (theform.site.value=="")
  {
    alert("Saisissez un site\".");
    theform.site.focus();
    return (false);
  }
  if (theform.dossier.value=="")
  {
    alert("Saisissez un dossier\".");
    theform.dossier.focus();
    return (false);
  }
 else return(true);

}
///////////////////////////////
 function testactualite(theform)
{
 if (theform.titreactualite.value=="")
  {
    alert("Saisissez un titre\".");
    theform.titreactualite.focus();
    return (false);
  }
  if (theform.texteactualite.value=="")
  {
    alert("Saisissez un texte\".");
    theform.texteactualite.focus();
    return (false);
  }
 else return(true);
}
/////////////////////////////////////////////////
 function testcommunique(theform)
{
 if (theform.titreactualite.value=="")
  {
    alert("Saisissez un titre\".");
    theform.titreactualite.focus();
    return (false);
  }
  if (theform.texteactualite.value=="")
  {
    alert("Saisissez un texte\".");
    theform.texteactualite.focus();
    return (false);
  }
 else return(true);
}
function testacquisition(theform)
{
 if (theform.nomprenoma.value=="")
  {
    alert("Saisissez le nom et prenom\".");
    theform.nomprenoma.focus();
    return (false);
  }
  if (theform.adressea.value=="")
  {
    alert("Saisissez une adresse\".");
    theform.adressea.focus();
    return (false);
  }
   if (theform.telephonea.value=="")
  {
    alert("Saisissez un telephone\".");
    theform.telephonea.focus();
    return (false);
  }
     if (theform.fichier.value=="")
  {
    alert("Charger la CIB ou passeport ou statut\".");
    theform.fichier.focus();
    return (false);
  }
       if (theform.superficiea.value=="")
  {
    alert("saisissez la superficie souhaitée\".");
    theform.superficiea.focus();
    return (false);
  }

     if (theform.destinationa.checked==false)
  {
    alert("Saisissez la destination\".");
    theform.destinationa.focus();
    return (false);
  }
 else return(true);
}
}
