function moveToEnd(node){
var pos = node.value.length;
if(node.createTextRange){//I.E
var textRange = node.createTextRange();
textRange.move('textedit');
textRange.select();
}else if(node.setSelectionRange){
node.setSelectionRange(pos,pos);
}
}
// textarea 에서는 안해봄..





















