var f; var alertes; function verificationsFormulaireStandard() { if( ! checkEmail(f.chpEmail.value) ) alertes.push('your e-mail address'); if( ! checkTextInput(f.chpPass.value, 5) ) alertes.push('your password (at least 5 caracters)'); else { if( ! checkAlphaNumerique(f.chpPass.value) ) { alertes.push('your password (only numbers and letters upper and lower case)'); } if( f.chpPass.value!=f.chpConfirm.value ) { alertes.push('your password and its confirmation should be similar'); } } if( ! checkTextInput(f.chpNom.value) ) alertes.push('your last name'); if( ! checkTextInput(f.chpPrenom.value) ) alertes.push('your first name'); if( ! checkTextInput(f.chpAdresse.value, 10) ) alertes.push('your address (at least 10 caracters)'); if( ! checkTextInput(f.chpCP.value) ) alertes.push('your zip code'); if( ! checkTextInput(f.chpVille.value) ) alertes.push('your city'); if( ! checkTextInput(f.chpPays.value) ) alertes.push('your country'); if( f.chpTel.value.length>0 && ! checkPhoneNumber(f.chpTel.value) ) alertes.push('your telephone number (only numbers and spaces)'); if( f.chpFax.value.length>0 && ! checkPhoneNumber(f.chpFax.value) ) alertes.push('your fax number (only numbers and spaces)'); } function verificationFormulairePresse() { f = document.forms[0]; alertes = new Array(); verificationsFormulaireStandard(); if( ! checkTextInput(f.chpNumCarte.value) ) alertes.push('your press card number'); if( ! checkTextInput(f.chpNomPubli.value) ) alertes.push('the name of your publication'); if( alertes.length>0 ) { var message = 'Please fill in and check the following fields:'+"\n"; for(var i=0;i-1) f.submit(); else verificationEmailUnique( f.chpEmail.value, f.chpPass.value ); } } function verificationFormulaireGroupe() { f = document.forms[0]; alertes = new Array(); verificationsFormulaireStandard(); if( alertes.length>0 ) { var message = 'Please fill in and check the following fields:'+"\n"; for(var i=0;i-1) f.submit(); else verificationEmailUnique( f.chpEmail.value ); } } function verificationFormulaireScolaire() { f = document.forms[0]; alertes = new Array(); verificationsFormulaireStandard(); // on doit avoir selectionne au moins un etablissement a visiter var i; var currentFormElement; var currentFormElementName; var atLeastOneItemIsChecked = false; for (i=0;i0 ) { var message = 'Please fill in and check the following fields:'+"\n"; for(var i=0;i-1) f.submit(); else verificationEmailUnique( f.chpEmail.value ); } } function verificationFormulaireIdentification() { f = document.forms[0]; alertes = new Array(); if( ! checkEmail(f.chpAccesEmail.value) ) alertes.push('votre adresse email'); if( ! checkTextInput(f.chpAccesPass.value) ) alertes.push('votre mot de passe'); if( alertes.length>0 ) { var message = 'Please fill in and check the following fields:'+"\n"; for(var i=0;i