function temizle()
		{ 
		document.getElementById('frm_by').reset();
		document.frm_by.ad.focus(); 
		document.frm_by.ad.id="text-kutu";
		document.frm_by.eposta.id="text-kutu";
		document.frm_by.guvenlik.id="text-kutu";
		document.frm_by.tel.id="text-kutu";
		document.frm_by.mesaj.id="aciklama";
		}

function kontrol() {
	var eksik=''
	
	if (document.frm_by.guvenlik.value=="")
		{
		eksik=eksik + ', Güvenlik kodu '
		document.frm_by.guvenlik.id="error";
		document.frm_by.mesaj.id="aciklama";
		if ((!(document.frm_by.eposta.value.indexOf('@',0)<1)) && (document.frm_by.ad.value.length>=3)) document.frm_by.guvenlik.focus();
		}
		else if (document.frm_by.guvenlik.value.toUpperCase()!=document.frm_by.g_kod.value)
		{
		eksik=eksik + ', Güvenlik kodu geçersiz!'
		document.frm_by.guvenlik.id="error";
		document.frm_by.mesaj.id="aciklama";
		if ((!(document.frm_by.eposta.value.indexOf('@',0)<1)) && (document.frm_by.ad.value.length>=3)) document.frm_by.guvenlik.focus();
		}
		else {document.frm_by.guvenlik.id="text-kutu";}
	
	if (document.frm_by.tel.value.length<=7)
		{
		eksik=eksik + 'tel'
		document.frm_by.tel.id="error";		
		document.frm_by.tel.focus();
		}
		else
		{document.frm_by.tel.id="text-kutu";}
	
	if (document.frm_by.ad.value.length<=3)
		{
		eksik=eksik + 'Adý'
		document.frm_by.ad.id="error";		
		document.frm_by.ad.focus();
		}
		else
		{document.frm_by.ad.id="text-kutu";}
		
		
	
	if (document.frm_by.eposta.value=="")
		{
		eksik=eksik + ', E-mail'
		document.frm_by.eposta.id="error";
		if (document.frm_by.ad.value.length>=3) document.frm_by.eposta.focus();
		}
		
	else if (document.frm_by.eposta.value.indexOf('@',0)<1)
		{
		eksik=eksik + ', E-posta adresi geçersiz'
		document.frm_by.eposta.focus();
		document.frm_by.eposta.id="error";
		document.frm_by.mesaj.id="aciklama";
		if (document.frm_by.ad.value.length>=3) document.frm_by.eposta.focus();
		}
		else {document.frm_by.eposta.id="text-kutu";}
		
	
		
	
	
   if (eksik.length<1)
   
   	{
		document.frm_by.submit();
	}

}