function sondakika(href, target)
{
	var winl = (screen.width - 500) / 2;
	var wint = (screen.height - 600) / 2;
	window.open(href, target, 'width=500, height=600, top=' + wint + ',left=' + winl + ', toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function arkadasinagonder(href, target)
{
	var winl = (screen.width - 430) / 2;
	var wint = (screen.height - 255) / 2;
	window.open(href, target, 'width=430, height=255, top=' + wint + ',left=' + winl + ', toolbar=0, location=0, directories=0, status=0, menuBar=0, scrollBars=0, resizable=0');
	return false;
}
function tv(href, target)
{
	var winl = (screen.width - 468) / 2;
	var wint = (screen.height - 413) / 2;
	window.open(href, target, 'width=468, height=413, top=' + wint + ',left=' + winl + ', toolbar=0, location=0, directories=0, status=0, menuBar=0, scrollBars=0, resizable=0');
	return false;
}
function radyopopup(href, target)
{
	var winl = (screen.width - 468) / 2;
	var wint = (screen.height - 255) / 2;
	window.open(href, target, 'width=468, height=255, top=' + wint + ',left=' + winl + ', toolbar=0, location=0, directories=0, status=0, menuBar=0, scrollBars=0, resizable=0');
	return false;
}
function Pencere(href, target)
{
	var winl = (screen.width - 496) / 2;
	var wint = (screen.height - 400) / 2;
	window.open(href, target, 'width=496, height=400, top=' + wint + ',left=' + winl + ', toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function rehber(href, target)
{
	var winl = (screen.width - 286) / 2;
	var wint = (screen.height - 209) / 2;
	window.open(href, target, 'width=286, height=209, top=' + wint + ',left=' + winl + ', toolbar=0, location=0, directories=0, status=0, menuBar=0, scrollBars=0, resizable=0');
	return false;
}
function yorumformkontrol()
{
	if (document.yorumkontrol.baslik.value == "")
		{
			alert("Baslik Alani Bos Geçilemez");
			document.yorumkontrol.baslik.focus();
			return false;
		}
	
	if (document.yorumkontrol.yorum.value == "")
		{
			alert("Yorum Alani Bos Geçilemez");
			document.yorumkontrol.yorum.focus();
			return false;
		}
}
function uyegiriskontrol()
{
	if (document.uyegiris.kuladi.value == "")
		{
			alert("Üye Adinizi Giriniz !");
			document.uyegiris.kuladi.focus();
			return false;
		}
	
	if (document.uyegiris.sifre.value == "")
		{
			alert("Sifrenizi Giriniz !");
			document.uyegiris.sifre.focus();
			return false;
		}
}

function aramafrmkontrol()
{
	if (document.aramafrm.aranacak.value.length <3)
	{
			alert("En Az 3 Karakter Girmelisiniz !");
			document.aramafrm.aranacak.focus();
			return false;	}
}

function aramafrmkontrol1()
{
	if (document.aramafrm1.aranacak.value.length <3)
	{
			alert("En Az 3 Karakter Girmelisiniz !");
			document.aramafrm1.aranacak.focus();
			return false;	}
}

function emailkontrol(elm)
{
	if (elm.value.indexOf("@") <= 0 || elm.value.indexOf(".") <= 0 || elm.value.indexOf("@.") > 0 || elm.value.indexOf(".@") > 0)
		return true;
	else
		return false;
}

function HaberYolla()
{
	if (document.haberyolla.kime.value == "")
		{
			alert("Kime Göndereceginizi Giriniz !");
			document.haberyolla.kime.focus();
			return false;
		}
	
	if (document.haberyolla.konu.value == "")
		{
			alert("Konu Giriniz !");
			document.haberyolla.konu.focus();
			return false;
		}
		
	if (document.haberyolla.mesaj.value == "")
		{
			alert("Mesaj Giriniz !");
			document.haberyolla.mesaj.focus();
			return false;
		}
	
	if (emailkontrol(document.haberyolla.kime))
		{
			alert("Geçerli Bir E-Mail Adresi Giriniz");
			document.haberyolla.kime.focus();
			return false;
		}
}
function onlyNumber()
{
	if (event.keyCode < 48 || event.keyCode> 57) 
		event.returnValue = false;
}

function autoTab(original,destination)
{
	if (original.getAttribute && original.value.length == original.getAttribute("maxlength"))
		destination.focus()
}

function UyelikKontrol()
{
	if (document.Uyelik.adsoyad.value == "")
		{
			alert("Ad Soyad Alani Bos Geçilemez");
			document.Uyelik.adsoyad.focus();
			return false;
		}
	
	if (document.Uyelik.email.value == "")
		{
			alert("E-Mail Alani Bos Geçilemez");
			document.Uyelik.email.focus();
			return false;
		}
		
	if (emailkontrol(document.Uyelik.email))
		{
			alert("Geçerli Bir E-Mail Adresi Giriniz");
			document.Uyelik.email.focus();
			return false;
		}
		
	if (document.Uyelik.dtarih_gun.value == "")
		{
			alert("Dogum Tarihi Gün Alani Bos Geçilemez");
			document.Uyelik.dtarih_gun.focus();
			return false;
		}
		
	if (document.Uyelik.dtarih_ay.value == "")
		{
			alert("Dogum Tarihi Ay Alani Bos Geçilemez");
			document.Uyelik.dtarih_ay.focus();
			return false;
		}
		
	if (document.Uyelik.dtarih_yil.value == "")
		{
			alert("Dogum Tarihi Yil Alani Bos Geçilemez");
			document.Uyelik.dtarih_yil.focus();
			return false;
		}
	
	
	if (document.Uyelik.kadi.value == "")
		{
			alert("Kullanici Adi Bos Geçilemez");
			document.Uyelik.kadi.focus();
			return false;
		}
	
	if (document.Uyelik.sifre.value == "")
		{
			alert("Sifre Alani Bos Geçilemez");
			document.Uyelik.sifre.focus();
			return false;
		}
	
	if (document.Uyelik.tsifre.value == "")
		{
			alert("Sifre Tekrar Alani Bos Geçilemez");
			document.Uyelik.tsifre.focus();
			return false;
		}
	
	if (document.Uyelik.sifre.value != document.Uyelik.tsifre.value)
		{
			alert("Sifreleriniz Birbirine Uymuyor");
			document.Uyelik.sifre.value="";
			document.Uyelik.tsifre.value="";
			document.Uyelik.sifre.focus();
			return false;
		}
		
	if (document.Uyelik.guvenlik.value=="")
		{
			alert("Güvenlik Kodu Alani Bos Geçilemez");
			document.Uyelik.guvenlik.focus();
			return false;
		}
	
	if (document.Uyelik.guvenlik.value != document.Uyelik.tguvenlik.value)
		{
			alert("Güvenlik Kodunuzu Yanlis Girdiniz");
			document.Uyelik.guvenlik.focus();
			return false;
		}
}

function UyelikGKontrol()
{
	if (document.UyelikG.adsoyad.value == "")
		{
			alert("Ad Soyad Alani Bos Geçilemez");
			document.UyelikG.adsoyad.focus();
			return false;
		}
	
	if (document.UyelikG.email.value == "")
		{
			alert("E-Mail Alani Bos Geçilemez");
			document.UyelikG.email.focus();
			return false;
		}
		
	if (emailkontrol(document.UyelikG.email))
		{
			alert("Geçerli Bir E-Mail Adresi Giriniz");
			document.UyelikG.email.focus();
			return false;
		}
		
	if (document.UyelikG.dtarih_gun.value == "")
		{
			alert("Dogum Tarihi Gün Alani Bos Geçilemez");
			document.UyelikG.dtarih_gun.focus();
			return false;
		}
		
	if (document.UyelikG.dtarih_ay.value == "")
		{
			alert("Dogum Tarihi Ay Alani Bos Geçilemez");
			document.UyelikG.dtarih_ay.focus();
			return false;
		}
		
	if (document.UyelikG.dtarih_yil.value == "")
		{
			alert("Dogum Tarihi Yil Alani Bos Geçilemez");
			document.UyelikG.dtarih_yil.focus();
			return false;
		}
	
		
	
	
	if (document.UyelikG.sifre.value!= "" && document.UyelikG.sifre.value != document.UyelikG.tsifre.value)
		{
			alert("Sifreleriniz Birbirine Uymuyor");
			document.UyelikG.sifre.value="";
			document.UyelikG.tsifre.value="";
			document.UyelikG.sifre.focus();
			return false;
		}
		
}