var ajaxObjects = new Array();

var prev_secenek_button_id;
    if (!prev_secenek_button_id){
        prev_secenek_button_id="urun_secenek_1";
    }


var prev_urun_icerik_button_id;    
    if (!prev_urun_icerik_button_id){
        prev_urun_icerik_button_id="urun_icerik_1";
    }
    
function urun_secenek_button(obj){    
    if(prev_secenek_button_id!=obj.id){
    if (obj.style.backgroundPosition=="50% 0%" || obj.style.backgroundPosition=="center top"){
        obj.style.backgroundPosition="50% 100%";
    }else{
        obj.style.backgroundPosition="50% 0%";  
    }
    }
    /*prev_secenek_button_id=obj.id;
    }*/
}


function urun_secenek(id){
    gelen_id="urun_secenek_"+id;
    if (prev_secenek_button_id!=gelen_id){
    //alert("tıklandı");
    document.getElementById("urun_flash").innerHTML="<div style='width:638px; height:403px; text-align:center; background-color:#000000;'><img src='images/loader.gif' style='margin-top:150px;'></div>";
    setTimeout(urun_degistir,2500);
    }
}


function urun_degistir(){
    document.getElementById("urun_flash").innerHTML="<script language='javascript'> 		AC_FL_RunContent(			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',			'width', '638',			'height', '403',			'src', 'ckbflash',			'quality', 'high',			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',			'align', 'middle',			'play', 'true',			'loop', 'true',			'scale', 'showall',			'wmode', 'transparent',			'devicefont', 'false',			'id', 'ckbflash',			'bgcolor', '#000000',			'name', 'ckbflash',			'menu', 'true',			'allowFullScreen', 'false',			'allowScriptAccess','sameDomain',			'movie', 'images/ckbflash',			'salign', ''			);</script><noscript>	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='638' height='403' id='ckbflash' align='middle'>	<param name='allowScriptAccess' value='sameDomain' />	<param name='allowFullScreen' value='false' />	<param name='movie' value='images/ckbflash.swf' /><param name='wmode' value='transparent' /><param name='quality' value='high' /><param name='bgcolor' value='#000000' />	<embed src='images/ckbflash.swf' quality='high' bgcolor='#000000' width='638' height='403' name='ckbflash' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' wmode='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />	</object></noscript>";
}



function urun_icerik(id){
    document.getElementById("urun_icerikler").innerHTML="<div style='width:100%; height:100%; text-align:center;'><img src='images/loader2.gif' style='margin-top:120px;'></div>";
    document.getElementById("urun_icerik_"+id).className="urun_icerik_button_secili";
    //alert(document.getElementById(prev_urun_icerik_button_id));
    document.getElementById(prev_urun_icerik_button_id).className="urun_icerik_button";
    prev_urun_icerik_button_id="urun_icerik_"+id;
    setTimeout(function(){urun_icerik_degistir(id)},2500);
}


function urun_icerik_degistir(id){
    //alert(id+ " - "+ document.getElementById("urun_icerikler"));
    if (id==1){
    document.getElementById("urun_icerikler").innerHTML="<div style='width:132px; margin-left:22px;'>        <div style='width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>89 Parça Set</div>        <div style='margin-top:4px;'>            <div style='width:100px; float:left; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Yemek Grubu</div>            <div style='float:left; margin-left:12px;'><img src='images/ikon_ckb.png'/></div>            <div style='clear: both;'></div>        </div>        <div style='margin-top:4px;'>            <div style='width:100px; float:left; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Tatlı Grubu</div>            <div style='float:left; margin-left:12px;'><img src='images/ikon_ckb.png'/></div>            <div style='clear: both;'></div>        </div>        <div style='margin-top:4px;'>            <div style='width:100px; float:left; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Servis Set</div>            <div style='float:left; margin-left:12px;'><img src='images/ikon_ckb.png'/></div>            <div style='clear: both;'></div>        </div>            <div style='margin-top:14px; width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Sunum</div>        <div style='margin-top:8px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet yemek kaşık</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet yemek bıçak</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet yemek çatal</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet tatlı kaşık</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet tatlı bıçak</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet tatlı çatal</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet çay kaşık</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>5 adet servis set</div>        </div>";
    }else if(id==2){
        document.getElementById("urun_icerikler").innerHTML="<div style='width:132px; margin-left:22px;'>        <div style='width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>84 Parça Set</div>        <div style='margin-top:4px;'>            <div style='width:100px; float:left; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Yemek Grubu</div>            <div style='float:left; margin-left:12px;'><img src='images/ikon_ckb.png'/></div>            <div style='clear: both;'></div>        </div>        <div style='margin-top:4px;'>            <div style='width:100px; float:left; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Tatlı Grubu</div>            <div style='float:left; margin-left:12px;'><img src='images/ikon_ckb.png'/></div>            <div style='clear: both;'></div>        </div><div style='margin-top:14px; width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Sunum</div>        <div style='margin-top:8px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet yemek kaşık</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet yemek bıçak</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet yemek çatal</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet tatlı kaşık</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet tatlı bıçak</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet tatlı çatal</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>12 adet çay kaşık</div></div>";
    }else if(id==3){
        document.getElementById("urun_icerikler").innerHTML="<div style='width:132px; margin-left:22px;'>        <div style='width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>42 Parça Set</div>        <div style='margin-top:4px;'>            <div style='width:100px; float:left; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Yemek Grubu</div>            <div style='float:left; margin-left:12px;'><img src='images/ikon_ckb.png'/></div>            <div style='clear: both;'></div>        </div>        <div style='margin-top:4px;'>            <div style='width:100px; float:left; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Tatlı Grubu</div>            <div style='float:left; margin-left:12px;'><img src='images/ikon_ckb.png'/></div>            <div style='clear: both;'></div>        </div><div style='margin-top:14px; width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Sunum</div>        <div style='margin-top:8px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet yemek kaşık</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet yemek bıçak</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet yemek çatal</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet tatlı kaşık</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet tatlı bıçak</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet tatlı çatal</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet çay kaşık</div></div>";
    }else if(id==4){
        document.getElementById("urun_icerikler").innerHTML="<div style='width:132px; margin-left:22px;'>        <div style='width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>24 Parça Set</div> <div style='margin-top:4px;'>            <div style='width:100px; float:left; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Tatlı Grubu</div>            <div style='float:left; margin-left:12px;'><img src='images/ikon_ckb.png'/></div>            <div style='clear: both;'></div>        </div><div style='margin-top:14px; width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Sunum</div><div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet tatlı kaşık</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet tatlı bıçak</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet tatlı çatal</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet çay kaşık</div></div>";
        
    }else if(id==5){
        document.getElementById("urun_icerikler").innerHTML="<div style='width:132px; margin-left:22px;'>        <div style='width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>18 Parça Set</div>        <div style='margin-top:4px;'>            <div style='width:100px; float:left; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Yemek Grubu</div>            <div style='float:left; margin-left:12px;'><img src='images/ikon_ckb.png'/></div>            <div style='clear: both;'></div></div><div style='margin-top:14px; width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Sunum</div>        <div style='margin-top:8px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet yemek kaşık</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet yemek bıçak</div>        <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>6 adet yemek çatal</div></div>";  
    }else if(id==6){
            document.getElementById("urun_icerikler").innerHTML="<div style='width:132px; margin-left:22px;'>        <div style='width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>5 Parça Set</div>         <div style='margin-top:4px;'>            <div style='width:100px; float:left; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Servis Set</div>            <div style='float:left; margin-left:12px;'><img src='images/ikon_ckb.png'/></div>            <div style='clear: both;'></div>        </div>            <div style='margin-top:14px; width:132px; font-family:verdana; font-size:14px; color:#ffffff; line-height:34px;'>Sunum</div>  <div style='margin-top:5px; width:132px; font-family:verdana; font-size:12px; color:#ededed;'>5 adet servis set</div>        </div>";        
    }
    
}



function urun_menu_getir(id){
    document.getElementById("urun_menu_alan").innerHTML="<img src='images/loader3.gif' style='margin:130px 428px 165px 427px;'>";
    setTimeout(function(){urun_detay_degistir(id)},2000);
}


function urun_detay_degistir(id){
    if(id==1){
     kaynak="Kullanım ve Bakım Hakkında";
    }else if(id==2){
     kaynak="Kullanıcı Yorumları";
    }else if(id==3){
     kaynak="Ürün Görselleri";
    }else if(id==4){
     kaynak="Kampanyalar";
    }else if(id==5){
     kaynak="Satış Noktaları (Başka Pencerede Açılacak)";
    }
        
    document.getElementById("urun_menu_alan").innerHTML="<div style='margin:16px 5px 5px 5px;'>"+kaynak+"</div>";
    
}


function urun_aciklama_degistir(tur){
    document.getElementById("urun_tur").innerHTML=tur;
}


function git(p,t){
    /*if(t==1){
        window.open(p,'','resizable=yes,status=1,toolbar=1');
    }else{*/
        top.location.href=p;
    //}
}


    function video_kapat(){
        document.getElementById("popbg").style.display="none";
        document.getElementById("popvideo").style.display="none";
        document.getElementById("popvideo_video").innerHTML="";
    }
	
    function videoac(yc){
        //alert(yc);
        document.getElementById("popvideo_video").innerHTML="<iframe width='420' height='345' src='http://www.youtube.com/embed/"+yc+"' frameborder='0' allowfullscreen></iframe>";
        document.getElementById("popbg").style.display="block";
        document.getElementById("popvideo").style.display="block";
    }
    
    
      function urun_hover(obj){
            //alert(obj.style.padding);
            if(obj.style.padding=="0px"){
                //alert("a : "+obj.style.padding);
                obj.style.padding="9px";
                obj.style.marginLeft="-10px";
                obj.style.marginTop="-10px";
                obj.style.zIndex=100;
                obj.style.border="2px solid #ffffff";
            }else{
                //alert("b : "+obj.style.padding);
                obj.style.padding="0px";
                obj.style.marginLeft="0px";
                obj.style.marginTop="0px";
                obj.style.zIndex=1;
                obj.style.border="1px solid #ffffff";
                
            }
        }
        
function email_kaydedildi(ajaxIndex){
    if(ajaxObjects[ajaxIndex].response=='ok'){
        document.getElementById("emailarea").innerHTML="<img src='images/ok16x16.gif'> E-Posta adresiniz başarıyla kaydedildi.";
    }else{
        document.getElementById("emailarea").innerHTML="<img src='images/nok16x16.gif'> E-Posta adresiniz başarıyla kaydedildi.";
    }
}
        

function email_kaydet(){
    var email=document.getElementById("email").value;
    document.getElementById("emailarea").innerHTML="<img src='images/loader16x16.gif'> E-Posta adresiniz kaydediliyor.";
    
    //setTimeout(email_kaydedildi,2500);
    
    if(email){
        
    /*var email_validate = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\ ".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA -Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
    
    if (email_validate.test(email)){*/
        
        
	var ajaxIndex = ajaxObjects.length;
    ajaxObjects[ajaxIndex] = new sack();
	ajaxObjects[ajaxIndex].requestFile = "email_kaydet.php";
	ajaxObjects[ajaxIndex].setVar('e',email);
	ajaxObjects[ajaxIndex].onCompletion = function(){ email_kaydedildi(ajaxIndex); };
	ajaxObjects[ajaxIndex].runAJAX();
    
    /*}else{
        document.getElementById("emailarea").innerHTML="<img src='images/nok16x16.gif'> Lütfen geçerli bir e-posta adresi belirtiniz.";
    }*/
    }		
}


function email_gonderildi(ajaxIndex){
    if(ajaxObjects[ajaxIndex].response=='ok'){
        document.getElementById("hatamesaji").innerHTML="<span style='color:#ffffff;'>Mesajınız gönderilmiştir. Teşekkür ederiz.</span>";
    }else{
        document.getElementById("hatamesaji").innerHTML="<span style='color:#ffffff;'>Mesajınız gönderilemedi. Lütfen daha sonra tekrar deneyiniz.</span>";
    }
}


function bosmu(Field) {
if ((Field.value.length==0) || (Field.value==null)) {
    return true;
} else { 
    return false; 
}
} 



function mesaj_gonder(){
    
    var hata=0;
    
    adsoyadobj=document.getElementById("adsoyad");
    emailobj=document.getElementById("email");
    telobj=document.getElementById("tel");
    mesajobj=document.getElementById("mesaj");
    msgbox=document.getElementById("hatamesaji");
    
   
    
    if(bosmu(adsoyadobj)){
        adsoyadobj.style.border="2px solid red";
        hata=1;
    }else{
        adsoyadobj.style.border="2px solid #666666";
    }

    if(bosmu(emailobj)){
        emailobj.style.border="2px solid red";
        hata=1;
    }else{
        emailobj.style.border="2px solid #666666";
    }
    
    if(bosmu(telobj)){
        telobj.style.border="2px solid red";
        hata=1;
    }else{
        telobj.style.border="2px solid #666666";
    }
    
    if(bosmu(mesajobj)){
        mesajobj.style.border="2px solid red";
        hata=1;
    }else{
        mesajobj.style.border="2px solid #666666";
    }
    
    
    if(hata==1){
        msgbox.innerHTML="<span style='color:red;'>Lütfen Formu Eksiksiz Doldurunuz.</span>";
    }else{
        msgbox.innerHTML="";
        //alert("hata yok");
        	var ajaxIndex = ajaxObjects.length;
            ajaxObjects[ajaxIndex] = new sack();
            ajaxObjects[ajaxIndex].requestFile = "email_gonder.php";
            ajaxObjects[ajaxIndex].setVar('adsoyad',adsoyadobj.value);
            ajaxObjects[ajaxIndex].setVar('email',emailobj.value);
            ajaxObjects[ajaxIndex].setVar('tel',telobj.value);
            ajaxObjects[ajaxIndex].setVar('mesaj',mesajobj.value);
            ajaxObjects[ajaxIndex].onCompletion = function(){ email_gonderildi(ajaxIndex); };
            ajaxObjects[ajaxIndex].runAJAX();
    }
    
}

function getirildi(ajaxIndex){
    //alert(ajaxObjects[ajaxIndex].response);
    document.getElementById("bayiler_liste").innerHTML=ajaxObjects[ajaxIndex].response;
}

function bayiler(il_id,ulke_id){
    //alert(id+" - "+k);
    //document.getElementById("iladi").innerHTML="&nbsp;&nbsp;&raquo;&nbsp;&nbsp;"+sehirler[id];
    var ajaxIndex = ajaxObjects.length;
	ajaxObjects[ajaxIndex] = new sack();
	ajaxObjects[ajaxIndex].requestFile = "bayi_getir.php";	// Saving product in this file
	ajaxObjects[ajaxIndex].setVar('ilid',il_id);
    ajaxObjects[ajaxIndex].setVar('ulkeid',ulke_id);
	ajaxObjects[ajaxIndex].onCompletion = function(){getirildi(ajaxIndex);};	// Specify function that will be executed after file has been found
	ajaxObjects[ajaxIndex].runAJAX();		// Execute AJAX function
}

var prevkampanya="kampanya1";
function kampanya(k){
    document.getElementById(prevkampanya).className="";
    document.getElementById(k).className="active";
    prevkampanya=k;
    
    var showmovie = document.getElementById("showmovie");
    var yukleniyor = document.getElementById("yukleniyor");
    yukleniyor.style.visibility="visible";
    showmovie.style.visibility="hidden";
    
    showmovie.innerHTML="<object id='mov' codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0' classid='CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000' width='270' height='385'><param name='movie' value='swf/kampanyalar/"+k+".swf'/><param name='quality' value='high'/><param name='scale' value='exactfit'/><param name='menu' value='true'/><embed name='mov' src='swf/kampanyalar/"+k+".swf' width='270' height='385' quality='high' swliveconnect='false' scale='exactfit' menu='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></object>";
    
    refresh = setInterval("refreshProgress()",50);
    
}

function refreshProgress(){
var yuzde = document.getElementById("yuzde");
var showmovie = document.getElementById("showmovie");
var yukleniyor = document.getElementById("yukleniyor");
var movie = getFlashMovieObject("mov");	

if(movie){
	if(movie.PercentLoaded()>=100){
	   yukleniyor.style.visibility="hidden";
       showmovie.style.visibility="visible";
       yuzde.innerHTML="% " + movie.PercentLoaded();
       clearInterval(refresh);
       }else{
       yuzde.innerHTML="% " + movie.PercentLoaded();
       }
}
}


function getFlashMovieObject(movieName){
  if (window.document[movieName]){
      return window.document[movieName];
  }
  
  if (navigator.appName.indexOf("Microsoft Internet")==-1){
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);

  } 
}




function court(c){
    document.getElementById("courtframe").src="inc_court_"+c+".php";
}





function ik_dosya_silindi(){
    document.getElementById("ik_upload_alani").innerHTML="<div class='ik_upload_butonu'>Dosya Silindi - Tekrar Yüklemek İçin Tıklayınız</div>";
    uploadfunc();
}

function ik_resim_silindi(){
    document.getElementById("resim").value="";
    document.getElementById("ik_upload_alani").innerHTML="<div class='ik_upload_butonu'>Resim Silindi - Tekrar Yüklemek İçin Tıklayınız</div>";
    uploadfunc();
}



function ik_dosyasil(d1,d2){
    document.getElementById("ik_upload_alani").innerHTML="<span class='ik_yukleniyor'>"+d1+"&nbsp;&nbsp;&nbsp;Siliniyor...</span>";
    var ajaxIndex = ajaxObjects.length;
	ajaxObjects[ajaxIndex] = new sack();
	ajaxObjects[ajaxIndex].requestFile = "ik_dosyasil.php";	// Saving product in this file
	ajaxObjects[ajaxIndex].setVar('d',d2);
	ajaxObjects[ajaxIndex].onCompletion = function(){setTimeout(function(){ik_dosya_silindi()},3000);};
	ajaxObjects[ajaxIndex].runAJAX();
}


function ik_resimsil(d1,d2){
    document.getElementById("ik_upload_alani").innerHTML="<span class='ik_yukleniyor'>"+d1+"&nbsp;&nbsp;&nbsp;Siliniyor...</span>";
    var ajaxIndex = ajaxObjects.length;
	ajaxObjects[ajaxIndex] = new sack();
	ajaxObjects[ajaxIndex].requestFile = "ik_resimsil.php";	// Saving product in this file
	ajaxObjects[ajaxIndex].setVar('d',d2);
	ajaxObjects[ajaxIndex].onCompletion = function(){setTimeout(function(){ik_resim_silindi()},3000);};
	ajaxObjects[ajaxIndex].runAJAX();
}


/*function ik_mesajyaz(msj){
        document.getElementById("ik_upload_alani").innerHTML=msj+" <span>Gönder</span>";
    }*/
    

    
 function ik_gonder(d){
    var ajaxIndex = ajaxObjects.length;
	ajaxObjects[ajaxIndex] = new sack();
	ajaxObjects[ajaxIndex].requestFile = "ik_bilgi_gonder.php";
	ajaxObjects[ajaxIndex].setVar('d',d);
	ajaxObjects[ajaxIndex].onCompletion = function(){setTimeout(function(){document.getElementById("tesekkur").innerHTML="Gönderilmiştir. Teşekkür Ederiz.";},300);};
	ajaxObjects[ajaxIndex].runAJAX();
 }
