function fckDonustur(sDonusecekTextArea)
{
	var oTA				= document.getElementById(sDonusecekTextArea);
	if (oTA.fckDurumu != true)
	{
		var oFCKeditor = new FCKeditor(sDonusecekTextArea);
		oFCKeditor.BasePath = "";
		oFCKeditor.ReplaceTextarea();
		oTA.fckDurumu = true;
	}
}

function bolumEkleDuzenle(bId)
{
}

function urunDetayDuzenle(uId)
{
	$("#urunDetayDuzenlemeFormu").html("<table style=\"width:100%; height:100%\"><tr><td style=\"text-align:center\"><img src=\"images\\durum.ajax.yukleniyor.facebook.gif\" /></td></tr></table>");
	$("#urunDetayDuzenlemeFormu").dialog
	(
		{
			width:630,
			height: 380,
			modal : true,
			title : "Ürün detaylarını düzenle",
			buttons:
			{
				"Kapat" : function()
				{
					$(this).dialog("close");
				},
				"Kaydet" : function()
				{
					if(confirm("Bilgiler kaydedilecek.\Emin misiniz?"))
					{
						var oUFormu = $("#urunDetayDuzenlemeFormu").find("form").get(0);
						oUFormu.submit();
					}
				}
			},
			close : function()
			{
				$(this).dialog("destroy");
			}
		}
	).load
	(
		"default.asp",
		{
			sI:"urunDetayEkleDuzenle",
			uId:uId,
			ajax:1
		},
		function(sResponseText, sTextStatus, oXMLHttpRequest)
		{
			if (sTextStatus == "success")
			{
				$("#tabs").tabs();
				fckDonustur('tauAciklamaTR');
				fckDonustur('tauAciklamaEN');
				fckDonustur('tauAciklamaDE');
			}
			else
			{
				$("#urunDetayDuzenlemeFormu").text("Yüklenirken hata oluştu.");
			}
		}
	);
	return false;
}
