function setColor(el)
{
	if (el.style) el.style.backgroundColor = "#FFFFCC"; // sarı
}


function unsetColor(el)
{
	if (el.style) el.style.backgroundColor = "#ffffff"; // beyaz
}

function eftformCheck()
	{
	
	if ((document.bilgiformu.havaleeft.value ==  "")) 
 		{	alert("Lütfen Havale mi EFT mi yaptığınızı belirtiniz.");
		setColor(document.bilgiformu.havaleeft);
 		document.bilgiformu.havaleeft.focus();
 		return false; }else{unsetColor(document.bilgiformu.havaleeft);}

	if ((document.bilgiformu.banka.value ==  "")) 
 		{	alert("Lütfen Havale/EFT'yi gönderdiğiniz bankayı seçiniz.");
		setColor(document.bilgiformu.banka);
 		document.bilgiformu.banka.focus();
 		return false; }else{unsetColor(document.bilgiformu.banka);}
		
			if ((document.bilgiformu.havaleGonderen.value ==  "")) 
 		{	alert("Lütfen Havale/EFT'yi gönderen kişinin adını yazınız.");
		setColor(document.bilgiformu.havaleGonderen);
 		document.bilgiformu.havaleGonderen.focus();
 		return false; }else{unsetColor(document.bilgiformu.havaleGonderen);}

			if ((document.bilgiformu.tutar.value ==  "")) 
 		{	alert("Lütfen Havale/EFT yaptığınız tutarı yazınız.");
		setColor(document.bilgiformu.tutar);
 		document.bilgiformu.tutar.focus();
 		return false; }else{unsetColor(document.bilgiformu.tutar);}

		
return true;
} 



function ebultenformCheck()
	{
	

	if (document.bultenformu.memail.value == '')
	  {
	    alert("Lütfen e-posta adresinizi yazınız.");
		setColor(document.bultenformu.memail);
		document.bultenformu.memail.focus();
	    return false;
	  }else{unsetColor(document.bultenformu.memail);}

	if (window.RegExp)
	  {
	    var r1 = new RegExp("^[a-zA-Z0-9\-\.\_]+@([a-zA-Z0-9\-\_]+\.)+[a-zA-Z0-9]+$");
	    if (r1.test(document.bultenformu.memail.value) == false)
	    {
	      alert ("E-posta adresinizde hata var.");
		  setColor(document.bultenformu.memail);
		  document.bultenformu.memail.focus();

	      return false;
	    }else{unsetColor(document.bultenformu.memail);}
	  }


	return true;

} 

function uyeolmadanformCheck()
	{
	
	if ((document.uyeolmadanformu.adi.value ==  "")||(document.uyeolmadanformu.adi.value.length < 2)) 
 		{	alert("Lütfen adınızı yazınız.");
		setColor(document.uyeolmadanformu.adi);
 		document.uyeolmadanformu.adi.focus();
 		return false; }else{unsetColor(document.uyeolmadanformu.adi);}


	if ((document.uyeolmadanformu.soyadi.value ==  "")||(document.uyeolmadanformu.soyadi.value.length < 2)) 
 		{	alert("Lütfen soyadınızı yazınız.");
		setColor(document.uyeolmadanformu.soyadi);
 		document.uyeolmadanformu.soyadi.focus();
 		return false; }else{unsetColor(document.uyeolmadanformu.soyadi);}


	if (document.uyeolmadanformu.email.value == '')
	  {
	    alert("Lütfen e-posta adresinizi yazınız.");
		setColor(document.uyeolmadanformu.email);
		document.uyeolmadanformu.email.focus();
	    return false;
	  }else{unsetColor(document.uyeolmadanformu.email);}

	if (window.RegExp)
	  {
	    var r1 = new RegExp("^[a-zA-Z0-9\-\.\_]+@([a-zA-Z0-9\-\_]+\.)+[a-zA-Z0-9]+$");
	    if (r1.test(document.uyeolmadanformu.email.value) == false)
	    {
	      alert ("E-posta adresinizde hata var.");
		  setColor(document.uyeolmadanformu.email);
		  document.uyeolmadanformu.email.focus();

	      return false;
	    }else{unsetColor(document.uyeolmadanformu.email);}
	  }

	return true;

} 

function formCheck()
	{
	
	if ((document.uyelikformu.adi.value ==  "")||(document.uyelikformu.adi.value.length < 2)) 
 		{	alert("Lütfen adınızı yazınız.");
		setColor(document.uyelikformu.adi);
 		document.uyelikformu.adi.focus();
 		return false; }else{unsetColor(document.uyelikformu.adi);}


	if ((document.uyelikformu.soyadi.value ==  "")||(document.uyelikformu.soyadi.value.length < 2)) 
 		{	alert("Lütfen soyadınızı yazınız.");
		setColor(document.uyelikformu.soyadi);
 		document.uyelikformu.soyadi.focus();
 		return false; }else{unsetColor(document.uyelikformu.soyadi);}


	if (document.uyelikformu.yeni_email.value == '')
	  {
	    alert("Lütfen e-posta adresinizi yazınız.");
		setColor(document.uyelikformu.yeni_email);
		document.uyelikformu.yeni_email.focus();
	    return false;
	  }else{unsetColor(document.uyelikformu.yeni_email);}

	if (window.RegExp)
	  {
	    var r1 = new RegExp("^[a-zA-Z0-9\-\.\_]+@([a-zA-Z0-9\-\_]+\.)+[a-zA-Z0-9]+$");
	    if (r1.test(document.uyelikformu.yeni_email.value) == false)
	    {
	      alert ("E-posta adresinizde hata var.");
		  setColor(document.uyelikformu.yeni_email);
		  document.uyelikformu.yeni_email.focus();

	      return false;
	    }else{unsetColor(document.uyelikformu.yeni_email);}
	  }

    if ((document.uyelikformu.sifrem.value ==  "sifrem")||(document.uyelikformu.sifrem.value.length < 6)) 
 		{	alert("Lütfen şifrenizi yazınız.");
		setColor(document.uyelikformu.sifrem);
 		document.uyelikformu.sifrem.focus();
 		return false; }else{unsetColor(document.uyelikformu.sifrem);}
 

    if ((document.uyelikformu.sifremkontrol.value != document.uyelikformu.sifrem.value)) 
 		{	alert("Yazdığınız şifreler birbirinden farklı..");
		setColor(document.uyelikformu.sifremkontrol);
 		document.uyelikformu.sifremkontrol.focus();
 		return false; }else{unsetColor(document.uyelikformu.sifremkontrol);}

	if ((document.uyelikformu.cinsiyet.value ==  "")) 
 		{	alert("Lütfen cinsiyetinizi belirtiniz.");
		setColor(document.uyelikformu.cinsiyet);
 		document.uyelikformu.cinsiyet.focus();
 		return false; }else{unsetColor(document.uyelikformu.cinsiyet);}


	return true;

} 

function tavsiyeformuCheck()
	{
	
if ((document.tavsiyeformu.isim.value ==  "")) 
 		{	alert("Lütfen adınızı yazınız.");
		setColor(document.tavsiyeformu.isim);
 		document.tavsiyeformu.isim.focus();
 		return false; }else{unsetColor(document.tavsiyeformu.isim);}

		
			if ((document.tavsiyeformu.posta.value ==  "")) 
 		{	alert("Lütfen e-posta adresinizi yazınız.");
		setColor(document.tavsiyeformu.posta);
 		document.tavsiyeformu.posta.focus();
 		return false; }else{unsetColor(document.tavsiyeformu.posta);}
		
		if (window.RegExp)
	  {
	    var r1 = new RegExp("^[a-zA-Z0-9\-\.\_]+@([a-zA-Z0-9\-\_]+\.)+[a-zA-Z0-9]+$");
	    if (r1.test(document.tavsiyeformu.posta.value) == false)
	    {
	      alert ("E-posta adresinizde hata var.");
		  setColor(document.tavsiyeformu.posta);
		  document.tavsiyeformu.posta.focus();

	      return false;
	    }else{unsetColor(document.tavsiyeformu.posta);}
	  }

		
		if ((document.tavsiyeformu.isim2.value ==  "")) 
 		{	alert("Lütfen tavsiye ettiğiniz kişinin adını yazınız.");
		setColor(document.tavsiyeformu.isim2);
 		document.tavsiyeformu.isim2.focus();
 		return false; }else{unsetColor(document.tavsiyeformu.isim2);}
		

				if ((document.tavsiyeformu.postakime.value ==  "")) 
 		{	alert("Lütfen tavsiye ettiğiniz kişinin e-posta adresinizi yazınız.");
		setColor(document.tavsiyeformu.postakime);
 		document.tavsiyeformu.postakime.focus();
 		return false; }else{unsetColor(document.tavsiyeformu.postakime);}	
		


if (window.RegExp)
	  {
	    var r1 = new RegExp("^[a-zA-Z0-9\-\.\_]+@([a-zA-Z0-9\-\_]+\.)+[a-zA-Z0-9]+$");
	    if (r1.test(document.tavsiyeformu.postakime.value) == false)
	    {
	      alert ("Tavsiye ettiğiniz kişinin e-posta adresinde hata var.");
		  setColor(document.tavsiyeformu.postakime);
		  document.tavsiyeformu.postakime.focus();

	      return false;
	    }else{unsetColor(document.tavsiyeformu.postakime);}
	  }


return true;
} 

function FaturaformCheck()
	{
	
	if ((document.adresformu.fadi.value ==  "")||(document.adresformu.fadi.value.length < 2)) 
 		{	alert("Lütfen fatura bilgilerinde adınızı yazınız.");
		setColor(document.adresformu.fadi);
 		document.adresformu.fadi.focus();
 		return false; }else{unsetColor(document.adresformu.fadi);}

  if ((document.adresformu.ftel.value == ''))
	  {
	    alert("Lütfen fatura bilgilerinde telefon numarası yazınız.");
		setColor(document.adresformu.ftel);
		document.adresformu.ftel.focus();
	    return false;
	  }else{unsetColor(document.adresformu.ftel);}
	  
	  if (window.RegExp)
	  {
	  var r1 = new RegExp("^[0-9]");
	    if (r1.test(document.adresformu.ftel.value) == false)
	    {
	      alert ("Fatura bilgilerindeki telefon numarasında hata var.");
		  setColor(document.adresformu.ftel);
		  document.adresformu.ftel.focus();

	      return false;
	    }else{unsetColor(document.adresformu.ftel);}
	  }
	  
 	if ((document.adresformu.fadres.value ==  "")||(document.adresformu.fadres.value.length < 2)) 
 		{	alert("Lütfen fatura bilgilerinde adresi yazınız.");
		setColor(document.adresformu.fadres);
 		document.adresformu.fadres.focus();
 		return false; }else{unsetColor(document.adresformu.fadres);}


	if ((document.adresformu.fsehir.value == ''))
	  {
	    alert("Lütfen fatura bilgilerinde şehri seçiniz.");
		setColor(document.adresformu.fsehir);
		document.adresformu.fsehir.focus();
	    return false;
	  }else{unsetColor(document.adresformu.fsehir);}
	   
	
	  
 if ((document.adresformu.fyvergino.value == ''))
	  {
	    alert("Lütfen TC kimlik numarasını veya vergi numarasını yazınız.");
		setColor(document.adresformu.fyvergino);
		document.adresformu.fyvergino.focus();
	    return false;
	  }else{unsetColor(document.adresformu.fyvergino);}
	  
	

     if ((document.adresformu.sadi.value ==  "")||(document.adresformu.sadi.value.length < 2)) 
 		{	alert("Lütfen teslimat adresi bilgilerinde adınızı yazınız.");
		setColor(document.adresformu.sadi);
 		document.adresformu.sadi.focus();
 		return false; }else{unsetColor(document.adresformu.sadi);}
		
		  if ((document.adresformu.stel.value == ''))
	  {
	    alert("Lütfen teslimat adresi bilgilerinde telefon numarası yazınız.");
		setColor(document.adresformu.stel);
		document.adresformu.stel.focus();
	    return false;
	  }else{unsetColor(document.adresformu.stel);}
	  
	  

	if (window.RegExp)
	  {
	  var r1 = new RegExp("^[0-9]");
	    if (r1.test(document.adresformu.stel.value) == false)
	    {
	      alert ("Teslimat adresine ait telefon numarasında hata var.");
		  setColor(document.adresformu.stel);
		  document.adresformu.stel.focus();

	      return false;
	    }else{unsetColor(document.adresformu.stel);}
	  }


	if ((document.adresformu.sadres.value ==  "")||(document.adresformu.sadres.value.length < 2)) 
 		{	alert("Lütfen teslimat adresi bilgilerinde adresi yazınız.");
		setColor(document.adresformu.sadres);
 		document.adresformu.sadres.focus();
 		return false; }else{unsetColor(document.adresformu.sadres);}


	if ((document.adresformu.ssehir.value == ''))
	  {
	    alert("Lütfen teslimat adresi bilgilerinde şehri seçiniz.");
		setColor(document.adresformu.ssehir);
		document.adresformu.ssehir.focus();
	    return false;
	  }else{unsetColor(document.adresformu.ssehir);}

	return true;

} 
