//-------------------------------------------------------------------------------------------------
//	Fonctions de vérifications
//-------------------------------------------------------------------------------------------------
function verifEmail(champEmail)
{
	if (champEmail.search(/^\w+(-\w+|\.\w+|\_\w+)*\@\w+(-\w+|\.\w+|\_\w+)*\.\w+$/) != -1)	return true;
	else											return false; 
}
function verifint(champInt)
{
	retour	= true ;
	if(champInt.length>0)
	{
		if( champInt.search(/\D/i,0) > -1 )	retour	= false;
		else					retour	= true;
	}
	return(retour);
}
function verifnumeric(champNumerique)
{
	retour	= true ;
	if(champNumerique.length>0)
	{
		if( champNumerique.search(/^\d+([.,]{1}\d+){0,1}$/i,0) != -1 )	retour	= true;
		else								retour	= false;
	}
	return(retour);
}
function verifTelephone(numeroDeTelephone)
{
	retour	= true ;
	if(numeroDeTelephone.length>0)
	{
		if( numeroDeTelephone.search(/^\d{10}$/i,0) != -1 )	retour	= true;
		else									retour	= false;
	}
	return(retour);
}
function verifNonVide(champTexte)
{
	retour	= true ;
	champTexte	= champTexte.replace(/ /ig,"");
	if(champTexte.length>0)	retour	= true;
	else			retour	= false;
	return(retour);
}
function verifMotDePasse(tabMotDePasse)
{
	motDePasse		= document.Infos.elements[tabMotDePasse[0]].value;
	motDePasseConfirm	= document.Infos.elements[tabMotDePasse[1]].value;
	if( motDePasse != motDePasseConfirm  )	return false ;
	else					return true;
}
function star(TP)
{
    if (TP=='' || document.formulaire.type_demande.value == TP)
        document.write('<span class="text2"><span class="titre5">*</span></span>');
}
