function checkMail(sText)
	{
		var x = sText;
		var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
		if (filter.test(x)) return true;
		else return false;
	}
function mesajkontrol()
 {
	if  (document.form1.eposta.value=='')
		{
			alert("Lütfen E-Posta Adresinizi Giriniz");
			document.form1.eposta.focus();
		}
	else if (!checkMail(document.form1.eposta.value))
		{
			alert("Lütfen E-Posta Adresini Kontrol Ediniz");
			document.form1.eposta.focus();
		}
	else if (document.form1.eposta1.value=='')
		{
			alert("Lütfen E-Posta Adresinizi Giriniz");
			document.form1.eposta1.focus();
		}
	else if (!checkMail(document.form1.eposta1.value))
		{
			alert("Lütfen E-Posta Adresini Kontrol Ediniz");
			document.form1.eposta1.focus();
		}
	else if (document.form1.guvenlik.value=='')
		{
			alert("Lütfen Güvenlik Kodunu Giriniz");
			document.form1.guvenlik.focus();
		}
	else if (document.form1.guvenlik.value.length<6)
		{
			alert("Lütfen Güvenlik Kodunu Kontrol Ediniz");
			document.form1.guvenlik.focus();
		}
	else if (document.form1.eposta2.value.length>0 && !checkMail(document.form1.eposta2.value))
		{
			alert("Lütfen E-Posta Adresini Kontrol Ediniz");
			document.form1.eposta2.focus();
		}
	else if (document.form1.eposta3.value.length>0 && !checkMail(document.form1.eposta3.value))
		{
			alert("Lütfen E-Posta Adresini Kontrol Ediniz");
			document.form1.eposta3.focus();
		}
	else
		{
			document.form1.submit();			
		}
 }