<input type="text" id="txt1" value=""/>
function toUpperCase(obj) { obj.value = obj.value.toUpperCase() }