// JavaScript Document

// Maximum number of characters for article title on article list page
function checkLen(x,y)
{
if (y.length==x.maxLength)
	{
	var next=x.tabIndex
	if (next<document.getElementById("myForm").length)
		{
		document.getElementById("myForm").elements[next].focus()
		}
	}
}


// Pop-up confirmation message before deleting articles
function verify(){
	msg = "Artikel'i Silmek istediginizden emin misiniz!";
	//all we have to do is return the return value of the confirm() method
	return confirm(msg);
}

// Pop-up confirmation message before deleting categories
function verifyCtg(){
	msg = "Kategori'yi Silmek istediginizden emin misiniz!";
	//all we have to do is return the return value of the confirm() method
	return confirm(msg);
}

// Pop-up confirmation message before deleting Child categories
function verifycCtg(){
	msg = "Child Kategori'yi Silmek istediginizden emin misiniz!";
	//all we have to do is return the return value of the confirm() method
	return confirm(msg);
}

// Pop-up confirmation message before deleting Bebe categories
function verifybCtg(){
	msg = "Bebe Kategori'yi Silmek istediginizden emin misiniz!";
	//all we have to do is return the return value of the confirm() method
	return confirm(msg);
}

// Pop-up confirmation message before deleting users
function verifyUsr(){
	msg = "Üye'yi Silmek istediginizden emin misiniz!";
	//all we have to do is return the return value of the confirm() method
	return confirm(msg);
}

// Maximum entry characters for article description
<!--
var supportsKeysDesc = false
var maxLength
function textKeyDesc(f)
{
	supportsKeysDesc = true
	calcCharLeftDesc(f)
}
function calcCharLeftDesc(f)
{
	maxLength = 2000;
		if (f.write_address.value.length > maxLength){
		  f.write_address.value = f.write_address.value.substring(0,maxLength)
		charleft = 0
		} else {
	  charleft = maxLength - f.write_address.value.length
	}
		f.harfDesc.value = charleft
}
//-->

// Maximum entry characters for article full
<!--
var supportsKeysFull = false
var maxLength
function textKeyFull(f)
{
	supportsKeysFull = true
	calcCharLeftFull(f)
}
function calcCharLeftFull(f)
{
	maxLength = 10000;
		if (f.write_note.value.length > maxLength){
		  f.write_note.value = f.write_note.value.substring(0,maxLength)
		charleft = 0
		} else {
	  charleft = maxLength - f.write_note.value.length
	}
		f.harfFull.value = charleft
}
//-->
