var i, inputs

inputs = document.getElementsByTagName ('input')

for (i in inputs) if (inputs[i].className) if (inputs[i].className.match (/input_text/)) {
  inputs[i].onfocus = function () { this.className += ' active' }
  inputs[i].onblur = function () { this.className = this.className.replace (/ *active/g, '') }
}

inputs = document.getElementsByTagName ('textarea')

for (i in inputs) if (inputs[i].className) if (inputs[i].className.match (/input_text/)) {
  inputs[i].onfocus = function () { this.className += ' active' }
  inputs[i].onblur = function () { this.className = this.className.replace (/ *active/g, '') }
}
