1function check_form_new() { 2 if (document.caddie.telephone.value == "") { 3 alert("Veuillez saisir votre num tél."); 4 document.caddie.telephone.focus(); 5 return false; 6 } 7 if (document.caddie.telephone.value.length < 10) { 8 alert("Veuillez saisir un numéro de téléphone correct."); 9 document.caddie.telephone.focus(); 10 return false; 11 } 12 if (document.caddie.email.value == "") { 13 alert("Veuillez saisir votre email."); 14 document.caddie.email.focus(); 15 return false; 16 } 17 if (!document.caddie.email.value.match("^.+@.+\\..+$")) { 18 alert("Veuillez saisir votre email valide."); 19 document.caddie.email.focus(); 20 return false; 21 } 22 if (document.caddie.nom.value == "") { 23 alert("Veuillez saisir votre nom."); 24 document.caddie.nom.focus(); 25 return false; 26 } 27 if (document.caddie.prenom.value == "") { 28 alert("Veuillez saisir votre prenom."); 29 document.caddie.prenom.focus(); 30 return false; 31 } else { 32 document.caddie.submit(); 33 return true; 34 } 35} 36 37function hideArea2() { 38 var thearea = document.getElementById('hide'); 39 var thelist = document.getElementsByName('meth'); 40 for (var i = 0; i < thelist.length; i++) { 41 if (thelist[i].checked) { 42 if (thelist[i].value == "1") { 43 thearea.style.display = ""; 44 45 } else { 46 thearea.style.display = "none"; 47 48 } 49 break; 50 } 51 } 52} 53 54function check_form_paiement() { 55 var thelistmeth = document.getElementsByName('meth'); 56 for (var i = 0; i < thelistmeth.length; i++) { 57 if (thelistmeth[i].checked) { 58 if (thelistmeth[i].value == "1") { 59 var payement = document.forms.caddie.elements["payement[]"]; 60 var paye = 0; 61 for (j = 0; j < payement.length; j++) { 62 if (payement[j].checked == true) { 63 paye = 1; 64 } 65 } 66 if (paye == 0) { 67 alert("Veuillez préciser le mode de paiement."); 68 return false; 69 } 70 } 71 } 72 } 73 document.caddie.submit(); 74 return true; 75} 76 77function control_contact() { 78 if (document.form1.nom.value == "") { 79 alert("Veuillez saisir votre nom."); 80 document.form1.nom.focus(); 81 return false; 82 } 83 if (document.form1.prenom.value == "") { 84 alert("Veuillez saisir votre prénom."); 85 document.form1.prenom.focus(); 86 return false; 87 } 88 if (document.form1.telephone.value == "") { 89 alert("Veuillez saisir votre num tél."); 90 document.form1.telephone.focus(); 91 return false; 92 } 93 if (document.form1.email.value == "") { 94 alert("Veuillez saisir votre email."); 95 document.form1.email.focus(); 96 return false; 97 } 98 if (!document.form1.email.value.match("^.+@.+\\..+$")) { 99 alert("Veuillez saisir votre email valide."); 100 document.form1.email.focus(); 101 return false; 102 } 103 if (document.form1.objet.value == "") { 104 alert("Veuillez saisir votre objet."); 105 document.form1.objet.focus(); 106 return false; 107 } 108 if (document.form1.commentaires.value == "") { 109 alert("Veuillez saisir votre commentaires."); 110 document.form1.commentaires.focus(); 111 return false; 112 } 113 document.form1.submit(); 114 return true; 115} 116 117function control_recrutement() { 118 if ((!document.forms.form1.civilite[0].checked) && (!document.forms.form1.civilite[1].checked) && (!document.forms.form1.civilite[2].checked)) { 119 alert("Veuillez saisir votre civilité."); 120 return false; 121 } 122 if (document.forms.form1.nom.value == "") { 123 alert("Veuillez saisir votre nom."); 124 document.forms.form1.nom.focus(); 125 return false; 126 } 127 if (document.forms.form1.prenom.value == "") { 128 alert("Veuillez saisir votre prenom.");
129 document.forms.form1.prenom.focus(); 130 return false; 131 } 132 if (document.forms.form1.email.value == "") { 133 alert("Veuillez saisir votre email."); 134 document.forms.form1.email.focus(); 135 return false; 136 } 137 if (!document.forms.form1.email.value.match("^.+@.+\\..+$")) { 138 alert("Veuillez saisir votre email valide."); 139 document.forms.form1.email.focus(); 140 return false; 141 } 142 if (document.forms.form1.adresse.value == "") { 143 alert("Veuillez saisir votre adresse."); 144 document.forms.form1.adresse.focus(); 145 return false; 146 } 147 if (document.forms.form1.cp.value == "") { 148 alert("Veuillez saisir votre cp."); 149 document.forms.form1.cp.focus(); 150 return false; 151 } 152 if (document.forms.form1.ville.value == "") { 153 alert("Veuillez saisir votre ville."); 154 document.forms.form1.ville.focus(); 155 return false; 156 } 157 if (document.forms.form1.tel1.value == "") { 158 alert("Veuillez saisir votre numéro du téléphone."); 159 document.forms.form1.tel1.focus(); 160 return false; 161 } 162 if (document.forms.form1.dn.value == "") { 163 alert("Veuillez saisir votre date de naissance."); 164 document.forms.form1.dn.focus(); 165 return false; 166 } 167 if ((!document.forms.form1.temps[0].checked) && (!document.forms.form1.temps[1].checked)) { 168 alert("Veuillez saisir votre temps."); 169 return false; 170 } 171 if (document.forms.form1.joint.value == "") { 172 alert("Veuillez choisir votre cv."); 173 document.forms.form1.joint.focus(); 174 return false; 175 } 176 if (document.forms.form1.joint1.value == "") { 177 alert("Veuillez choisir votre lettre de motivation."); 178 document.forms.form1.joint1.focus(); 179 return false; 180 } else { 181 document.form1.submit(); 182 return (true) 183 } 184} 185 186 187 188 189function check_form_new_auth() { 190 191 if (document.connexion.email_clt.value == "") { 192 alert("Veuillez saisir votre email."); 193 document.connexion.email_clt.focus(); 194 return false; 195 } 196 if (!document.connexion.email_clt.value.match("^.+@.+\\..+$")) { 197 alert("Veuillez saisir votre email valide."); 198 document.connexion.email_clt.focus(); 199 return false; 200 } 201 202 if (document.connexion.tel_clt.value == "") { 203 alert("Veuillez saisir votre num tél."); 204 document.connexion.tel_clt.focus(); 205 return false; 206 } 207 if (document.connexion.tel_clt.value.length < 10) { 208 alert("Veuillez saisir un numéro de téléphone correct."); 209 document.connexion.tel_clt.focus(); 210 return false; 211 } 212 213 else { 214 document.connexion.submit(); 215 return true; 216 } 217} 218 219 220function modifier_acces() 221{ 222 223 if (document.acces_client.mail_client.value == "") { 224 alert("Veuillez saisir votre email."); 225 document.acces_client.mail_client.focus(); 226 return false; 227 } 228 if (!document.acces_client.mail_client.value.match("^.+@.+\\..+$")) { 229 alert("Veuillez saisir votre email valide."); 230 document.acces_client.mail_client.focus(); 231 return false; 232 } 233 234 if (document.acces_client.telephone.value == "") { 235 alert("Veuillez saisir votre num tél."); 236 document.acces_client.telephone.focus(); 237 return false; 238 } 239 if (document.acces_client.telephone.value.length < 10) { 240 alert("Veuillez saisir un numéro de téléphone correct."); 241 document.acces_client.telephone.focus(); 242 return false; 243 } 244 245 else { 246 document.acces_client.submit(); 247 return true; 248 } 249 250} 251 252 253 254 255function modifier_information() 256{ 257 258 if (document.information_client.nom.value == "") { 259 alert("Veuillez saisir votre nom.");
260 document.information_client.nom.focus(); 261 return false; 262 } 263 if (document.information_client.prenom.value == "") { 264 alert("Veuillez saisir votre prenom."); 265 document.information_client.prenom.focus(); 266 return false; 267 } else { 268 document.information_client.submit(); 269 return true; 270 } 271 272 273}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.