function fonction_over(nom)
{
	nom.style.color="#FFFFFF";
	nom.style.backgroundColor="#495621";
	//cursor:hand;
}

function fonction_out(nom)
{
	nom.style.color="#000000";
	nom.style.backgroundColor="#eeeeee";
}

function fnControleChamps2(monForm)
{
	alert("bonjour" + monForm);
}

function  fnControleChamps(monForm)
{
	alert("bonjour");
	// traitement vérification des champs
	with (monForm)
	{
		for (i=0;i<elements.length;i++){
			sNom = elements[i].id;
			alert("*** " + sNom + "****");
			if (elements[i].value == "" && sNom!="no")
			{
				alert("**Le champ " + sNom + " n'a pas été renseigné !");
				elements[i].focus();
				return false;
			}
		}
	}
	return true;
}

function showPopup(popupURL, window, xsize, ysize, isResize, isScroll) 
{
	msgWindow=open(popupURL,window,'resizable='+isResize+',scrollbars='+isScroll+',width='+xsize+',height='+ysize+'');
	if (msgWindow.opener == null) msgWindow.opener = self;
}

function show(idDiv){
	document.getElementById(idDiv).style.display='block';
}
function shownone(idDiv){
	document.getElementById(idDiv).style.display='none';
}
function rollover(id, adresse)
{
	document.getElementById(id).src = adresse;
}

function fVerifPass(monForm, pass_verif, pass_insc){
	if (pass_verif.value != pass_insc.value)
	{
		alert("La vérification du mot de passe est incorrect.");
		//elements[pass_insc].focus();
		return false;
	}
	else{ return true; }
}

function fnValidForm(monForm, pass_verif, pass_insc)
{
	alert("bonjour");
	if (fnControleChamps(monForm)==true)
	{
		return fVerifPass(monForm, pass_verif, pass_insc);
	}
	else{ return false; }
}

function fDupliqueValeur(source,cible){
	cible.value = source.value
}

function rollover(id, adresse)
{
	/*alert("Vous devez cocher");*/
	/*document.images[nom].src=adresse;*/
	document.getElementById(id).src = adresse;
}

function pop_it(the_form) {
	my_form = eval(the_form)
	window.open("./wait.php", "popup", "height=20,width=400,menubar='no',toolbar='no',location='no',status='no',scrollbars='no'");
	my_form.target = "popup";
	my_form.submit();
}