function writedivMail(texte){document.getElementById('emailbox').innerHTML=texte}function verifMail(email){if(email!=''){if(texte=file('include/verifmail.php?email='+escape(email))){if(texte==1)writedivMail('<span class="couleurRouge"><strong>'+email+' :</strong> cet e-mail est deja pris</span>');else if(texte==2)writedivMail('<span class="couleurVert"><strong>'+email+' :</strong> cet e-mail est libre</span>');else writedivMail(texte)}}}function file(fichier){if(window.XMLHttpRequest)xhr_object=new XMLHttpRequest();else if(window.ActiveXObject)xhr_object=new ActiveXObject("Microsoft.XMLHTTP");else return(false);xhr_object.open("GET",fichier,false);xhr_object.send(null);if(xhr_object.readyState==4)return(xhr_object.responseText);else return(false)}
