function insertcode_szov3(code)
{
	if (isopera)
	with (document.getElementById('szov3'))
	value += code;
	else instext_szov3(document.getElementById('szov3'),code);
}

function instext_szov3(obj, txt)
{
	if (isie)
	{
		if (!obj.isTextEdit) return;
		if ( obj.caretPos )
		obj.caretPos.text = txt;
		else obj.value = obj.value + txt;
	}
	else
	{
		otext = obj.value; ss = obj.selectionStart;
		obj.value = otext.substring(0,ss) + txt + otext.substring(ss,obj.value.length);
		obj.selectionStart = ss + txt.length;
		obj.selectionEnd = obj.selectionStart;
	}
}

function savecaret_szov3(obj)
{
	if (!document.all) return;
	if (obj.isTextEdit)
	obj.caretPos = document.selection.createRange();
}

function savecaret_szov3_()
{
	savecaret_szov3(document.getElementById('szov3'));
}

function refocus_szov3()
{
	document.getElementById('szov3').focus();
}