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; } }