﻿var harf; 
function transkribe() {
harf = document.ceviri.metin.value; 
harf = harf.replace(/-/g, "V");
harf = harf.replace(/lt/g, "1");

document.ceviri.metin.value=harf;
var obj=document.ceviri.metin;
}
function transkribe(unicode) {
var myForm = document.ceviri.metin;
  if (document.selection) {
myForm.focus();
sel = document.selection.createRange();
sel.text = String.fromCharCode(unicode);
document.ceviri.focus();
}
else if (document.ceviri.metin.selectionStart || document.ceviri.metin.selectionStart == "0") {
 var startPos = document.ceviri.metin.selectionStart;
var endPos = document.ceviri.metin.selectionEnd;
 var chaine = document.ceviri.metin.value;
myForm.value = chaine.substring(0, startPos) + String.fromCharCode(unicode) + chaine.substring(endPos, chaine.length);
} else {
 myForm.value += String.fromCharCode(unicode);
}
var obj=document.ceviri.metin;
obj.focus();
obj.scrollTop=obj.scrollHeight;
 }
function copy()
{ textRange=document.ceviri.metin.createTextRange();   textRange.execCommand("Copy");   textRange="";
}
