//////////////////////////////////////////////////////////////////////////// // // © PMP CONCEPT 2007 :: FONCTIONS COMMUNES // //////////////////////////////////////////////////////////////////////////// // fonction partagée de gestion des champs de saisie function inputEtat(obj, valide, classOK, classErreur) { if(obj && obj.parentNode) { if( typeof(classOK)=="undefined" ) classOK = ""; if( typeof(classErreur)=="undefined" ) classErreur = ""; obj.parentNode.className = valide==false ? classOK + " " + classErreur : classOK; } } function confirmVerif(obj, objref) { obj = typeof(obj)=="string" ? document.getElementById(obj) : obj; objref = typeof(objref)=="string" ? document.getElementById(objref) : objref; if(obj && objref && obj.value==objref.value) return true; return false; }