<input type="text" size="20" onkeydown="this.value = this.value.toUpperCase()" onblur="this.value = this.value.toUpperCase()">