        if(input.className.indexOf(\&quot;required\&quot;) &gt;= 0) &#123;\n          input.onchange = validate;\n        &#125;\n      &#125;\n      return false;\n    &#125;\n\n    setTimeout(function() &#123;\n      for(var i = 0; i &lt; form.getElementsByTagName(\&quot;input\&quot;).length; ++i) &#123;\n        var input = form.getElementsByTagName(\&quot;input\&quot;)[i];\n        if(input.getAttribute(\&quot;type\&quot;) == \&quot;text\&quot;) &#123;\n          input.value = \&quot;\&quot;;\n        &