
window.onload = function() {
                    textareas = document.getElementsByTagName("textarea");
                    for(i=0; textareas[i]; i++)
                        textareas[i].onclick =     function() {this.select();};
                }