function PanelLogin(){var d=document.createElement("div");d.id="pLogin";var e=document.createElement("form");e.name="pLogin";e.action="#";e.onsubmit=function(){var c=new PAFClient();c.setURL("ajax.php");c.setMethod("POST");c.setRetryOnFail(false);c.setTimeoutTime(PAFClient.prototype.NO_TIMEOUT);c.executerCommande("login",formToArray(document.forms[0]),function(a){var b=a.getJSON();if(b.resultat=="false"){alert(b.message);return}else{this.objAppChat.connexionSucces(document.forms[0].elements[0].value)}}.bind(this));return false}.bind(this);var f=document.createElement("h1");f.innerHTML="Login";e.appendChild(f);var p=document.createElement("p");p.innerHTML="Nom d'utilisateur";e.appendChild(p);var g=document.createElement("input");g.type="text";g.name="username";e.appendChild(g);e.appendChild(document.createElement("br"));e.appendChild(document.createElement("br"));var g=document.createElement("input");g.type="button";g.value="Connexion";g.name="btnSubmit";g.onclick=e.onsubmit;e.appendChild(g);d.appendChild(e);this.objPanel=d}PanelLogin.prototype={'objPanel':null,'objAppChat':null,'setAppChatObj':function(a){this.objAppChat=a}};PanelLogin.extend(Panel);