function SelectAll(id) { document.getElementById(id).focus(); document.getElementById(id).select(); }