function afficheId(baliseId) { if (document.getElementById && document.getElementById(baliseId) != null) { document.getElementById(baliseId).style.visibility='visible'; document.getElementById(baliseId).style.display='block'; } } function cacheId(baliseId) { if (document.getElementById && document.getElementById(baliseId) != null) { document.getElementById(baliseId).style.visibility='hidden'; document.getElementById(baliseId).style.display='none'; } } function verif_formulaire() { if(document.myForm.firstname.value == ""){ window.alert('Adınızı yazın'); document.myForm.firstname.focus(); return false; } if(document.myForm.lastname.value == ""){ window.alert('Soyadınızı yazın'); document.myForm.lastname.focus(); return false; } if(document.myForm.email.value == ""){ window.alert('E posta adresinizi yazın'); document.myForm.email.focus(); return false; } adresse = document.myForm.email.value; var place = adresse.indexOf("@",1); var point = adresse.indexOf(".",place+1); if ((place > -1)&&(adresse.length >2)&&(point > 1)) { } else { window.alert("Yazdığınız adres yanlıştır"); document.myForm.email.focus(); return false; } if(document.myForm.email2.value == ""){ window.alert('Arkadaşınızın e-posta adresini yazın'); document.myForm.email2.focus(); return false; } adresse2 = document.myForm.email2.value; var place2 = adresse2.indexOf("@",1); var point2 = adresse2.indexOf(".",place+1); if ((place2 > -1)&&(adresse2.length >2)&&(point2 > 1)) { formObj.submit();cacheId('reco'); document.getElementById('ajoutereco').removeAttribute("href"); document.getElementById('ajoutereco2').removeAttribute("href"); document.getElementById('reco').innerHtml=''; } else { window.alert("Yazdığınız adres yanlıştır"); document.myForm.email2.focus(); return false; } } function verif_formulaire_commantaire() { if(document.myFormComment.firstnameComment.value == ""){ window.alert('Lütfen adınızı yazınız'); document.myFormComment.firstnameComment.focus(); return false; } if(document.myFormComment.lastnameComment.value == ""){ window.alert('Lütfen soyadınızı yazınız'); document.myFormComment.lastnameComment.focus(); return false; } if(document.myFormComment.emailComment.value == ""){ window.alert('E-posta adresinizi yazınız'); document.myFormComment.emailComment.focus(); return false; } adresse = document.myFormComment.emailComment.value; var place = adresse.indexOf("@",1); var point = adresse.indexOf(".",place+1); if ((place > -1)&&(adresse.length >2)&&(point > 1)) { } else { window.alert("Girdiğiniz adres yanlıştır."); document.myFormComment.emailComment.focus(); return false; } if(document.myFormComment.commentComment.value == ""){ window.alert('Yorumunuz en az 100 karakter içermelidir.'); document.myFormComment.commentComment.focus(); return false; } if(document.myFormComment.commentComment.value.length < 100) { window.alert('Yorumunuz en az 100 karakter içermelidir.'); document.myFormComment.commentComment.focus(); return false; } if(document.myFormComment.langueComment.checked == false) { window.alert('Youmunuzu, lütfen, Türkçe yazınız.'); document.myFormComment.langueComment.focus(); return false; } else { formObjComment.submit();cacheId('addcomments');cacheId('ajouteruncom'); } }