var checkFormSite = {
	checkInput:function(objAjax, arrayIdChamps){
		var erreur = false;
			for(i=0 ; i<arrayIdChamps.length ; i++){
				var champsCourant = document.getElementById(arrayIdChamps[i]);
				if(champsCourant.parentNode.style.display != "none"){
					if(champsCourant.value == "" || (champsCourant.type != "text" && champsCourant.checked === false)){
						champsCourant.style.border = "1px solid #FF0000";
						erreur = true;
					}else champsCourant.style.border = "1px solid #A0A0A0";
				}
			}
		if(!erreur) initAjaxSite.ajaxRequestForm({form:objAjax.formId, fichier:objAjax.fichier, idSubmit:objAjax.bouton});
	},
	replaceInput:function(id, valeur, arrayChampsHide, arrayChampsShow){
		if(document.getElementById(id).value == valeur){
			for(i=0 ; i<arrayChampsHide.length ; i++){
				document.getElementById(arrayChampsHide[i]).style.display ="none";
			}
			for(i=0 ; i<arrayChampsShow.length ; i++){
				document.getElementById(arrayChampsShow[i]).style.display ="inline";				
			}
		}else{
				for(i=0 ; i<arrayChampsHide.length ; i++){
					document.getElementById(arrayChampsHide[i]).style.display ="inline";
				}
				for(i=0 ; i<arrayChampsShow.length ; i++){
					document.getElementById(arrayChampsShow[i]).style.display ="none";				
				}
			}
	}
	
}