function tryFree(inscription, prenom, sinscrire, annuler){ var html = '
' + ' ' + '
' + '
' + ' ' + '
'; new $.flavr({ title : inscription, closeOverlay : true, closeEsc : true, iconPath : '/web/js/flavr/images/icons/', icon : 'star.png', dialog : 'form', titleSubmit : sinscrire, titleCancel : annuler, form : { name: 'formInscription', content: html, action: 'inscription.do', onsubmit: 'return validateForm()', method: 'post'} }); } function payOneTpe(){ var html = '
' + ' ' + '
'; new $.flavr({ title : 'Merci d\'indiquer votre email', closeOverlay : true, closeEsc : true, iconPath : '/web/js/flavr/images/icons/', icon : 'star.png', dialog : 'form', titleSubmit : 'Valider', titleCancel : 'Annuler', form : { name: 'form1TPE', content: html, action: 'http://biz.sacheque.1.1tpe.net', onsubmit: 'return validateFormEmail()', method: 'get'} }); } function insAff(){ var html = '
' + ' ' + '
' + '
' + ' ' + '
'; new $.flavr({ title : 'Inscription', closeOverlay : true, closeEsc : true, iconPath : '/web/js/flavr/images/icons/', icon : 'star.png', dialog : 'form', titleSubmit : 'S\'inscrire', titleCancel : 'Annuler', form : { name: 'formInscription', content: html, action: 'affiliate.do?a=insAff', onsubmit: 'return validateForm()', method: 'post'} }); } function validateFormEmail() { if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form1TPE.data.value)){ }else{ new $.flavr("Merci d'entrer un email valide"); return (false); } } function validateForm() { if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(formInscription.lemail.value)){ }else{ new $.flavr("Merci d'entrer un email valide"); return (false); } var x = document.forms["formInscription"]["leprenom"].value; if (x == "") { new $.flavr("Merci d'entrer votre PRÉNOM"); return false; } }