function denetle(text) {
if (document.SForm.word.value == null || document.SForm.word.value == "")
{
alert(text)
document.SForm.word.focus();
return false;
}
return;
}

function denetle2(text) {
if (document.SForm2.word.value == null || document.SForm2.word.value == "")
{
alert(text)
document.SForm2.word.focus();
return false;
}
return;
}

function harf_sec(textEl, text) {

	if (document.selection) {

		var time;
		textEl.focus();
		sel = document.selection.createRange();
		time = sel.text.lenght;
		sel.text = text;

		if (text.length == 0) {
			sel.moveStart('character', text.length);
			sel.moveEnd('character', text.length);
		} else {
			sel.moveStart('character', -text.length + time);
		}

		sel.select();

	} else if (textEl.selectionStart || textEl.selectionStart == '0') {

		var beginn = textEl.selectionStart;
		var end = textEl.selectionEnd;
		textEl.value = textEl.value.substring(0,beginn) + text + textEl.value.substring(end, textEl.value.length);
		textEl.selectionStart = beginn + text.length;
		textEl.selectionEnd = beginn + text.length;
		textEl.focus();

	} else {

		textEl.value += text;

	}

}

function dinle(dizin,kelime,ses) {
	window.open(dizin+"/dinle-"+kelime+"-"+ses+".html","ses_dinle2","toolbar=no,scrollbars=no,status=no,resizable=no,menubar=no,width=285,height=275");
}

function SelTab(name){
	if(name == "tab1"){
		document.getElementById("tab1").className = "tab_selected";
		document.getElementById("tab2").className = "tab";
		document.getElementById("tab3").className = "tab";
		document.getElementById("yeni_arayuz").className = "arasel";
		document.getElementById("eski_arayuz").className = "araunsel";
		document.getElementById("arama").className = "araunsel";
	} else if(name == "tab3"){
		document.getElementById("tab2").className = "tab";
		document.getElementById("tab1").className = "tab";
		document.getElementById("tab3").className = "tab_selected";
		document.getElementById("yeni_arayuz").className = "araunsel";
		document.getElementById("eski_arayuz").className = "araunsel";
		document.getElementById("arama").className = "arasel";
	} else {
		document.getElementById("tab2").className = "tab_selected";
		document.getElementById("tab1").className = "tab";
		document.getElementById("tab3").className = "tab";
		document.getElementById("yeni_arayuz").className = "araunsel";
		document.getElementById("eski_arayuz").className = "arasel";
		document.getElementById("arama").className = "araunsel";
	}
}