jQuery(document).ready(function () {
  jQuery(".mailenc").each(function() {
    var j = jQuery(this);
    var email = j.children("span:first").text() + "@" + j.children("span:last").text();
    j.replaceWith("<a href=\"mailto:"+email+"\">"+email+"</a>");
  });

  var __fix_textarea = function() {
    jQuery("textarea").each(function() {
      if (this.scrollHeight > this.offsetHeight) {
        if (this.offsetHeight < 400) {
          if (this.scrollHeight < 400) {
            this.style.height = this.scrollHeight+"px";
          } else {
            this.style.height = "400px";
          }
        }
      }  
    });
    window.setTimeout(__fix_textarea, 100);
  }
  window.setTimeout(__fix_textarea, 100);
});