/**
*입력 필드(커서가 있는 곳)에 문자열 삽입
*@param $t document.getElementById('fieldId')
*@param myValue 될 값 삽입됨
* *
function addSplitToField($t,myValue){
if (document.selection) {
$t.focus()
sel = document.selection.createRange() ;
sel .text = myValue;
$t.focus();
}else if($t.selectionStart || $t.selectionStart == '0') {
var startPos = $t.selectionStart;
var endPos = $t.selectionEnd;
var scrollTop = $t.scrollTop;
$t.value = $t.value.substring(0, startPos) myValue $t. value.substring(endPos , $t.value.length);
$t.selectionStart = startPos myValue.length;
$t.selectionEnd = startPos myValue.length; 🎜>$t.scrollTop =
}else{
$t.value = myValue;
$t.focus()
}