// Ver: 4.1
function over(str)
{
	if(str.style.backgroundColor!="#32e432")
		str.style.backgroundColor='#88f988';
}

function out(str,satir)
{
	if(str.style.backgroundColor!="#32e432")
	{
		if(satir%2)
			{str.style.backgroundColor='#a1e89f';}
		else
			{str.style.backgroundColor='#78d876';}
	}
}
function sec(obj,satir)
{
if(obj.checked)
	document.getElementById("str"+satir).style.backgroundColor='#32e432';
else
{
	if(satir%2)
		document.getElementById("str"+satir).style.backgroundColor='#a1e89f';
	else
		document.getElementById("str"+satir).style.backgroundColor='#78d876';
}
}
function secilenleri_sepete_at()
{
	for(i=0;i<frm_liste.elements.length;i++)
	{
		if(frm_liste.elements(i).name.indexOf("stok_kod")>0)
		{
			if(frm_liste.elements(i).checked==true)
			{
				stok_kod=frm_liste.elements(i).value;
				alert(stok_kod)
			}
			
		}
	}
}

function fadet(urun_id)
{
	siparis_adet=document.getElementById("siparis_adet"+urun_id)
}



FadeObjects = new Object();
FadeTimers = new Object();

function Fade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){
        setTimeout("Fade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }

    clearTimeout(FadeTimers[object.sourceIndex]);

    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        FadeObjects[object.sourceIndex]=object;
        FadeTimers[object.sourceIndex]=setTimeout("Fade(FadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

function siparisver(spr)
{
  window.open('siparisver.asp?spr='+spr,'','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width=670,height=510,resizable=0');
}
function hepsini_sec(){ 
    var d=document, CurMode; 
    var ChkId="hepsini_sec"; 
     
    var ChkArr=d.getElementsByTagName("input")
    var CurMode=d.getElementById(ChkId).checked;
    for (var i=0;i<ChkArr.length;i++){ 
        if(ChkArr[i].type=="checkbox")ChkArr[i].checked=CurMode; 
    } 
} 

function detay_ac(id)
{
  window.open('urundetay.asp?id='+id,'','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width=800,height=568,resizable=1');
}

