function popupcentree(page,largeur,hauteur,options) { var top=(screen.height-hauteur)/2; var left=(screen.width-largeur)/2; if(options=="") options="menubar=no,scrollbars=yes,statusbar=no"; if(page.indexOf("_multi",0) != -1) window.open(page,'JeuMulti','top='+top+',left='+left+',width='+largeur+',height='+hauteur+','+options); else window.open(page,'','top='+top+',left='+left+',width='+largeur+',height='+hauteur+','+options); } function retour_salle() { window.location="../../../html/salle_multi.php"; } function accueil() { if(top.opener) { top.opener.accueil2() top.close() } else { window.open("/html/index.php","Jeux","scrollbars=yes,toolbar=yes,location=yes,status=yes,menubar=yes,resizable=yes,width=700,height=540") } } function accueil2() { document.location="/html/index.php" } function retour(libelle,sid) { var ori=0 var longueur=805 var largeur=550 var ouvert="" var charge=1 var urlouv="/html/"+libelle+".php?"+sid if(top.window.opener) { if(top.window.opener.href) { ouvert=""+top.window.opener.href if(ouvert=="") ori=0; else ori=1 } if(top.window.opener.location) { ouvert=""+top.window.opener.location if(ouvert=="") ori=0; else ori=1 } } if(ori==0) { window.open(urlouv,"JeuxQDJ"); top.close() } else if(ori==1) { if(top.window.opener.href) top.window.opener.href=urlouv else if(top.window.opener.location) top.window.opener.location=urlouv top.close() } } function retour_site(url) { var ori=0 var longueur=805 var largeur=550 var ouvert="" var charge=1 var email=0 if(top.window.opener) { if(top.window.opener.href) { ouvert=""+top.window.opener.href ori=1 if(ouvert=="") email=1 } if(top.window.opener.location) { ouvert=""+top.window.opener.location ori=1 if(ouvert=="") email=1 } } if(ori==0) { var w=window.open(url,"Jeux","scrollbars=yes,toolbar=yes,location=yes,status=yes,menubar=yes,resizable=yes") } else if(ori==1) { if(top.window.opener.href) top.window.opener.href=url else if(top.window.opener.location) top.window.opener.location=url } if(email==0) top.close() } function accueiljeu(sid) { var urlj="accueil_jeu.php?"+sid; var url=""+document.location; document.location=urlj; } function jeu_casino(sid) { larg="800";longueur="600"; popupcentree("frameaccueil_casino.php?"+sid,larg,longueur,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function jeux(sid) { document.location="/html/index.php?"+sid } function cadeaux(sid) { document.location="/html/cadeaux.php?"+sid; } function motdepasse(sid) { popupcentree("/html/mot_passe.php?"+sid,800,350,"scrollbars=auto,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function gagnants(sid) { popupcentree("/html/gagnants.php?"+sid,800,600,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function compte(sid) { popupcentree("/html/subs.php?"+sid+"&type=compte",800,500,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function reglement(sid) { popupcentree("/html/reglement.php?"+sid,800,600,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function regle(sid) { popupcentree("regle.php?"+sid,800,500,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function regle_cinecache(sid) { popupcentree("regle.php?"+sid,800,371,"scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no") } function cheques(sid) { popupcentree("/html/subs.php?"+sid+"&type=cheques1",800,600,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function scores(sid) { popupcentree("best.php?"+sid,800,600,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function retraits(sid) { popupcentree("/html/subs.php?"+sid+"&type=retraits",800,500,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function gold(sid) { popupcentree("/html/gold.php",800,380,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function crediter(sid) { popupcentree("/html/subs.php?"+sid+"&type=paiement",800,600,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function inscription(sid) { document.location="/html/inscription.php?"+sid } function sub() { d=document.formu erreur=false p=d.pseudo.value if(p=="" || d.pass.value=="") { alert("Tu dois saisir ton nom de joueur et ton mot de passe") erreur=true } if (!erreur) { if(p.indexOf("'")!=-1 || p.indexOf(" ")!=-1 || p.indexOf("/")!=-1 || p.indexOf("?")!=-1 || p.indexOf("*")!=-1 || p.indexOf(":")!=-1) { alert("Uniquement des lettres et des chiffres dans le nom de joueur, STP") erreur=true } } if (!erreur) d.submit(); } function sub2() { d=document.formu2 erreur=false p=d.pseudo.value if(p=="" || d.pass.value=="") { alert("Tu dois saisir ton nom de joueur et ton mot de passe") erreur=true } if (!erreur) { if(p.indexOf("'")!=-1 || p.indexOf(" ")!=-1 || p.indexOf("/")!=-1 || p.indexOf("?")!=-1 || p.indexOf("*")!=-1 || p.indexOf(":")!=-1) { alert("Uniquement des lettres et des chiffres dans le nom de joueur, STP") erreur=true } } if (!erreur) d.submit(); } function sub_cheques1() { d=document.formu repondu=false for(i=0;i<8;i++) if (d.cheques[i].checked==true) { repondu=true } if(!repondu) alert("Tu n'as pas selectionné de chèques !!") else d.submit() } function sub_inscription_dot() { d=document.formu erreur=false if(d.nom.value=="" || d.prenom.value=="" || d.adr1.value=="" || d.cp.value=="" || d.ville.value=="") { alert("Tu dois remplir toutes les zones avant de valider") erreur=true } if (!erreur) d.submit() } function profil(sid) { popupcentree("/html/frameprofil.php?"+sid,800,500,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=no") } function lots(sid) { popupcentree("lots.php?"+sid,800,500,"scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes") } function infojava() { var w=window.open("http://java.sun.com/webapps/getjava/BrowserRedirect?locale=fr&host=www.java.com:80","Java","scrollbars=yes,toolbar=yes,location=yes,status=yes,menubar=yes,resizable=yes,width=800,height=600") } function is_pseudo(pseudo) { var chaine="0123456789abcdefghijklmnopqrstuvwxyz-_."; for(var i=0; i