/*function harpyaz(harp)
{
	document.myForm.gozle.value += harp; //by akm
	document.myForm.gozle.focus(); //akm
}*/
//by Akmuhammet J.
function harpYaz(mF, mV)
{
	if (document.selection)
	{ 
		var t;
		mF.focus(); 
		sel=document.selection.createRange();
		t=sel.text.lenght;
		sel.text=mV; 
		if (mV.length==0)
		{
			sel.moveStart('character',mV.length); 
			sel.moveEnd('character',mV.length);
		}
		else
		{
			sel.moveStart('character',-mV.length+t);
		}
		sel.select();
	}
	else if (mF.selectionStart || mF.selectionStart=='0')
	{
		var sP=mF.selectionStart;
		var eP=mF.selectionEnd;
		mF.value=mF.value.substring(0,sP)+mV+mF.value.substring(eP,mF.value.length);
		mF.selectionStart=sP+mV.length;
		mF.selectionEnd=sP+mV.length;
		mF.focus();
	}
	else
	{
		mF.value+=mV;
	}
}

