//<!--

// JavaScript Document

//// Gizli kisimlari göster/gizle
var oncekiBolum = "oz1";
	function gosterGizle(Bolum)	{
	if (Bolum.className == "gizle") {Bolum.className = "goster"; oncekiBolum.className = "gizle"; oncekiBolum = Bolum;};
}

//// Resimlerin Zoom islemleri
function btnZoom(resimNo) {
	//var resimAc = "resimGoster.htm?images/large/"+resimNo.id 
	var resimAc="pictureviewer.aspx?p="+ resimNo
	window.open(resimAc, "","resizable=0,HEIGHT=500,WIDTH=500");}


//-->
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=450,height=300,left = 0,top = 0');");
}
/*
			    function gec1()
                    {
                        if (document.getElementById('ccNo1').value.length==4)
                            {
	                            document.getElementById('ccNo2').focus();
                               }
                    }
                function gec2()
                    {
                        if (document.getElementById('ccNo2').value.length==4)
                            {
	                            document.getElementById('ccNo3').focus();
                          }   
                    }
                function gec3()
{
if (document.getElementById('ccNo3').value.length==4)
{
	document.getElementById('ccNo4').focus();
}
}

function onay()
{
	if (document.getElementById('chkOnay').checked)
	{
		document.getElementById('btnOde').disabled=false;
	}
		else
	{
		document.getElementById('btnOde').disabled=true;
	}
}
function PopCvv()
{
	newwindow2=window.open('','name','height=500,width=450');
	var tmp = newwindow2.document;
	tmp.write('<html><head><title>CVV2 Nedir?</title>');
tmp.write('	<link href="stil.css" type="text/css" rel="stylesheet">');
	tmp.write('</head><body><p>CVV2 Kredi kartınızın arkasında bulunmaktadır.<br>');
	tmp.write('Kartınızın arkasında birtakım rakamlar yer almaktadır.<br>');
	tmp.write('Bu rakam kümesinin sonunda bulunan 3 hane rakamdır.<br>');
	tmp.write('Bu bilgi Kredi kart numaranız başka birinde olsa dahi kullanmasını engellemektedir.<br>');
	tmp.write('Bu bilgi diğer kart okuyucu cihazlar tarafından okunamazlar.<br> ');
	tmp.write('Bu sayede sitemizde kredi kart bilgisi girilirken kartın da fiziksel olarak bulunması gerekmektedir.<br>');
	tmp.write('Eğer kartınızda bu kod yoksa lütfen bankanızla kontağa geçiniz.<br>');
	tmp.write('');
	tmp.write('</p>');
	tmp.write('<p><img src="./images/CCV.gif"/></p>');
	tmp.write('<p><a href="javascript:self.close()">Pencereyi kapat</a></p>');
	tmp.write('</body></html>');
	tmp.close();
}
*/

function FaturaSorgu(){
					var msg=""; var b;
					var fatAd= document.getElementById("txtFatAd");
					var FatAdres= document.getElementById("txtFatAdres");
					var FatTelefon= document.getElementById("txtFatTelefon");
					if ((fatAd.value.length==0)||(fatAd.value==null)) 
					{
						msg="Lütfen fatura adını kontrol ediniz.";
						b=true;
					}
					if ((FatAdres.value.length==0)||(FatAdres.value==null)) 
					{
						msg="Lütfen fatura adresini kontrol ediniz.";
						b=true;
					}
					if ((FatTelefon.value.length==0)||(FatTelefon.value==null)) 
					{
						msg="Lütfen fatura telefonunu kontrol ediniz.";
						b=true;
					}
				
					 if (b==true)
					 {
					  Form1.submit=false;
					  alert(msg)
					 }
					 else {   Form1.submit=true; }
					}
					function TeslimatSorgu(){}
					
							function popUp(URL) {day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=282,left=387,top=259');");}
	
	
	function blink(){blink_x = 1;blink_y = 1;ticToc();} 
			function ticToc(){ 
				if(blink_x==1){blink_x=0;blink_y++;document.getElementById("blink").style.visibility='visible';document.getElementById("blink2").style.visibility='visible';}else{blink_x=1;blink_y++;document.getElementById("blink").style.visibility='hidden';document.getElementById("blink2").style.visibility='hidden';} 
				if (blink_y < 50) {setTimeout('ticToc()', 100);} 
			} 
//-->