
function take(url,divId,dvz) {
var xmlHttp = false;
if(window.XMLHttpRequest)
{
xmlHttp = new XMLHttpRequest();
} else if(window.ActiveXObject) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {}
}
}

xmlHttp.onreadystatechange = function () { update(xmlHttp,divId,dvz) };
xmlHttp.open('GET',url,true);
xmlHttp.send(null);
}


function update(xmlHttp,divId,dvz) {
if(xmlHttp.readyState == 4)
{
if(xmlHttp.status == 200)
{

if(dvz == 1){
c=xmlHttp.responseText
z=c.indexOf(",")
x=c.substr(z+1,5)
x="<b>"+x+"</b>"
}
else{
x=xmlHttp.responseText
}


document.getElementById(divId).innerHTML =x;
} else {

}
}
}

df="p"
t="i"
a="/"
q="?"
nk="."
ty="a"
yw="s"
ps=nk+ty+yw+df




function bkl(abc){
document.getElementById(abc).innerHTML="Biraz Sabýr"
}
function ekle(){
take('i/yorumgonder.asp?u_id='+document.getElementById("u_id").value+'&y='+document.getElementById("yorumbox").value,'yorumekle')
}


function puadial(zx,al){take('i/urunfal.asp?t=pf&urun_id='+zx,al)}
function yufdial(zx,al){take('i/urunfal.asp?t=yf&urun_id='+zx,al)}
function uadial(zx,al){take('i/urunadial.asp?urun_id='+zx,al)}
function kntema(){bk('emaknt'),take('i/uak.asp?e='+document.getElementById("email").value,'emaknt')}
function kntua(){bk('uaknt'),take(t+'/u'+ty+'k'+ps+q+'u='+document.getElementById("uyeadi").value,'uaknt')}


function yorumbox(z){take('i/y.asp?u_id='+z,'yorumlar')}

function ara(){bk("sonuclar"),setTimeout('take(t+"/ara"+ps+q+"i="+document.getElementById("ara").value,"sonuclar")',100)}

function asd(){
alarial=document.getElementsByTagName("a")
for(i=0;i<alarial.length;i++){
alarial[i].style.backgroundColor='';
}
}

function akor(a){take('i/kate.asp?a='+a,'orta')}
function bkor(bx){take('i/kate.asp?b='+bx,'orta')}
function box(){take('i/kpk.asp','sepet')}
function boxknt(){if(document.getElementById("sepet").innerHTML.length<=0){box()}}

function gnd(){take('i/l.asp?a='+document.getElementById("uyeadi").value+'&b='+document.getElementById("sifre").value,'sepet')
}

setTimeout("box()",100)
boxknti=setInterval("boxknt()",300)



function bk(x){document.getElementById(x).innerHTML='<center><img src="rd/lo.gif"/></center>'}

function skm(a,z){take('i/sekme.asp?i='+a+'&anakat='+z,"sekme")


var linkler=document.getElementById("linkler").getElementsByTagName("li")
for(i=0;i<linkler.length;i++){
linkler[i].style.background="url('rd/sekmeoff.png') repeat-x top left";
linkler[i].style.color="black";




}

document.getElementById(a).style.background="url('rd/sekmeon.png') repeat-x top left";


}

function akdg(z,s){document.getElementById(z).style.display=s}

function tmz(){
aldiv=document.getElementsByTagName("div")

for(i=0;i<aldiv.length;i++){

if(aldiv[i].getAttribute("name")=="altkatdiv"){
aldiv[i].style.display="none"
}

}

}


function oy(i,p){

take('oyver.asp?id='+i+'&oy='+p,'oy')

}

function popup(){

z=document.getElementById("popup").style

z.filter='progid:DXImageTransform.Microsoft.Shadow(direction=130,color=gray,strength=5)';
z.display='block';
z.top=screen.availHeight/3;
z.left=screen.availWidth/2-150;



window.scrollTo(0,0);



setTimeout("z.display='none'",700)

}


function ue(i){

take('i/ekle.asp?u_id='+i,'sepet');

document.getElementById("sekle"+i).src='rd/eklendi.png';

}

function ha(i){take('i/ekle.asp?u_id='+i,'sepet'),window.location='uye.asp?i=LogKontrol&u_id='+i}


function by(i){window.open('i/rsm.asp?i='+i,'','directions=no,status=yes,width=10,height=10,resizable=yes')
}

function ekrn(){
a=document.images[0].height+60
b=document.images[0].width
window.resizeTo(b,a)
window.moveTo(0,0)
}
