English: )+([a-zA-Z0-9]{2,4})+$/; if (filter.test(x)) return true; else return false; } ancienUser = function (){ $('loadingAncien').style.display='block'; var param = Form.serialize('ancienClient'); param += "&lang=en" var url = '/ajax_user.php?do=ancien'; var myAjax = new Ajax.Request( url, { method: 'post', parameters: param, onComplete: showAncienUser }); } function showAncienUser(originalRequest){ $('loadingAncien').style.display='none'; if (originalRequest.responseText!="")$('errorAncien').innerHTML=originalRequest.responseText; else { //$('connexion').style.display='none'; $('recapitulatif').style.display='none'; banque(); } } validerAncien = function (){ login_email = $('login_email'); login_mdp = $('login_mdp'); cgv = $('cgv3'); if (login_email.value == "") { alert ("Please enter your email adress"); login_email.focus(); return false; } if (login_mdp.value == "") { alert ("Please enter your password"); login_mdp.focus(); return false; } //alert(cgv.checked); if(!cgv.checked){ alert("Please accept the general conditions of sale"); cgv.focus(); return false; } ancienUser(); } nouveauUser = function(){ $('loadingNouveau').style.display='block'; var param = Form.serialize('nouveauClient'); param += "&lang=en" var url = '/ajax_user.php?do=nouveau'; var myAjax = new Ajax.Request( url, { method: 'post', parameters: param, onComplete: showNouveauUser }); } function showNouveauUser(originalRequest){ $('loadingNouveau').style.display='none'; if (originalRequest.responseText!="") { $('errorNouveau').innerHTML=originalRequest.responseText; }else { $('connexion').style.display='none'; $('recapitulatif').style.display='none'; banque(); } } validerNouveau = function (){ nom = $('nom'); prenom = $('prenom'); adresse = $('adresse'); ville = $('ville'); pays = $('pays'); email = $('email'); mdp = $('mdp'); mdp2 = $('mdp2'); telephone = $('telephone'); cgv = $('cgv2'); if (prenom.value == "") { alert ("Please enter your firstname"); prenom.focus(); return false; } if (nom.value == "") { alert ("Please enter your name"); nom.focus(); return false; } if(email.value == ""){ alert("Please enter your email adress"); email.focus(); return false; } if(!
French: )+([a-zA-Z0-9]{2,4})+$/; if (filter.test(x)) return true; else return false; } ancienUser = function (){ $('loadingAncien').style.display='block'; var param = Form.serialize('ancienClient'); param += "&lang=fr" var url = '/ajax_user.php?do=ancien'; var myAjax = new Ajax.Request( url, { method: 'post', parameters: param, onComplete: showAncienUser }); } function showAncienUser(originalRequest){ $('loadingAncien').style.display='none'; if (originalRequest.responseText!="")$('errorAncien').innerHTML=originalRequest.responseText; else { //$('connexion').style.display='none'; $('recapitulatif').style.display='none'; banque(); } } validerAncien = function (){ login_email = $('login_email'); login_mdp = $('login_mdp'); cgv = $('cgv3'); if (login_email.value == "") { alert ("Veuillez saisir votre adresse email"); login_email.focus(); return false; } if (login_mdp.value == "") { alert ("Veuillez saisir votre mot de passe"); login_mdp.focus(); return false; } //alert(cgv.checked); if(!cgv.checked){ alert("Veuillez accepter les conditions générales de vente"); cgv.focus(); return false; } ancienUser(); } nouveauUser = function(){ $('loadingNouveau').style.display='block'; var param = Form.serialize('nouveauClient'); param += "&lang=fr" var url = '/ajax_user.php?do=nouveau'; var myAjax = new Ajax.Request( url, { method: 'post', parameters: param, onComplete: showNouveauUser }); } function showNouveauUser(originalRequest){ $('loadingNouveau').style.display='none'; if (originalRequest.responseText!="") { $('errorNouveau').innerHTML=originalRequest.responseText; }else { $('connexion').style.display='none'; $('recapitulatif').style.display='none'; banque(); } } validerNouveau = function (){ nom = $('nom'); prenom = $('prenom'); adresse = $('adresse'); ville = $('ville'); pays = $('pays'); email = $('email'); mdp = $('mdp'); mdp2 = $('mdp2'); telephone = $('telephone'); cgv = $('cgv2'); if (prenom.value == "") { alert ("Veuillez saisir votre prénom"); prenom.focus(); return false; } if (nom.value == "") { alert ("Veuillez saisir votre nom"); nom.focus(); return false; } if(email.value == ""){ alert("Veuillez saisir votre adresse email"); email.focus(); return false; } if(!