function PrepareEditor(usrName) { var editBx = scene.getBoxById("nameEdit"); if (editBx) { editBx.value = usrName; editBx.selectAll(); } }