function flashYaz(adres,w,h,bg,tran,isim){
	document.writeln('<object id="'+isim+'" width="'+w+'" height="'+h+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0">');
	document.writeln('<param name="movie" value="'+adres+'"><param name="wmode" value="'+tran+'"><param name="bgcolor" value="'+bg+'">');
	document.writeln('<embed name="'+isim+'" src="'+adres+'" width="'+w+'" height="'+h+'" wmode="' + tran + '" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>');
	document.writeln('</object>');
}

function IsNumeric(sText){
	var ValidChars = "0123456789.";
	var IsNumber=true;
	var Char;

	for (i = 0; i < sText.length && IsNumber == true; i++){ 
		Char = sText.charAt(i); 
		if (ValidChars.indexOf(Char) == -1){
			IsNumber = false;
		}
	}
	return IsNumber;
}

function sepeteGonder(id){
	if(IsNumeric(id)==true){
		var adres = "sepete_ekle.asp?id=" + id;
		var adet = document.getElementById("adet_" + id).value;
		if(IsNumeric(adet)==false || adet==""){
			adet="1";
		}
		location.href = adres + "&adet=" + adet + "&adres=" + escape(document.URL);
	}
}

function satirRenk(obj,renk,colorRenk){
	obj.bgColor=renk;
	obj.style.color=colorRenk;
}