var i = 10; var j = -2000; function envoiCatcher65498754(id,ip) { var emailCatcher = document.getElementById('txt_email_catcher').value; var reg = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/; if (reg.test(emailCatcher)==false) { window.alert("Votre email est invalide"); } else { var dateDuJour = new Date(); var tag = dateDuJour.getMilliseconds(); tag += dateDuJour.getUTCMinutes(); var url = "/scripts/envoiMailCatcher.php"; url += "?tag="+tag; url += "&email="+emailCatcher; url += "&nbCode=2"; url += "&id="+id; url += "&ip="+ip; var activexEnvoiMailCatcher; if (document.all) { activexEnvoiMailCatcher = new ActiveXObject("Microsoft.XMLHTTP"); } else { activexEnvoiMailCatcher = new XMLHttpRequest(); try { netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead'); } catch (e) { } } activexEnvoiMailCatcher.open("GET",url,true); activexEnvoiMailCatcher.onreadystatechange = function () { if (activexEnvoiMailCatcher.readyState == 4) //Réponse reçue { var doc = activexEnvoiMailCatcher.responseText; if (doc == "ok") { window.alert("Vos codes viennent de vous \u00EAtre envoy\u00E9s sur votre email"); rangerPopUpDhtmlGUC(); } else if (doc == "deja") { window.alert("Email d\u00E9j\u00E0 utilis\u00E9"); } else if (doc == "erreurEmail") { window.alert("Email incorrect"); } else { window.alert("Erreur"); } } else { } } activexEnvoiMailCatcher.send(null); x = delete activexEnvoiMailCatcher; } } function nettoyageEmailCatcherGUC(idCase) { if (document.getElementById(idCase).value == "@") { document.getElementById(idCase).value = ""; } } function affichagePopUpDhtmlGUC(id) { var comment = "
\"\"\"Fermer\"
2 CODES GRATUITS
\"\"
\"\"
\"\"
\"\"
\"\"
\"\"\"\"\"\"\"\"\"\"
"; expression = document.getElementById('montextePopUpDhtmlGUC'); expression.innerHTML = comment; document.getElementById('montextePopUpDhtmlGUC').style.position = "absolute"; document.getElementById('montextePopUpDhtmlGUC').style.left = j; document.getElementById('montextePopUpDhtmlGUC').style.top = i; document.getElementById('montextePopUpDhtmlGUC').style.zindex = 100000; setTimeout("deplacementPopUpDhtmlGUC()",50); } function deplacementPopUpDhtmlGUC() { document.getElementById('montextePopUpDhtmlGUC').style.left = j; document.getElementById('montextePopUpDhtmlGUC').style.top = i; j = j + 50; if (j < 51) { setTimeout("deplacementPopUpDhtmlGUC()",50); } } function rangerPopUpDhtmlGUC() { j = -2000; document.getElementById('montextePopUpDhtmlGUC').style.left = j; document.getElementById('montextePopUpDhtmlGUC').style.top = i; } var body = document.getElementsByTagName("body")[0]; var div = document.createElement("div"); div.id = "montextePopUpDhtmlGUC"; body.appendChild(div); affichagePopUpDhtmlGUC(6);