function resizeFrame(nameFrame) {
    document.getElementById(nameFrame).style.height = "1px";        
    document.getElementById(nameFrame).style.height = eval("window.frames." + nameFrame + ".document.documentElement.scrollHeight") + "px";
    document.getElementById(nameFrame).style.width = "1px";        
    document.getElementById(nameFrame).style.width = eval("window.frames." + nameFrame + ".document.documentElement.scrollWidth") + "px";    
}

// Focus para inputs en IE
sfFocus = function() {
 var sfEls = document.getElementsByTagName("INPUT");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onfocus=function() {
   this.className+=" sffocus";
 }
  sfEls[i].onblur=function() {
   this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
  }
 }
}
if (window.attachEvent) window.attachEvent("onload", sfFocus);


// Focus para textareas en IE
sfFocus = function() {
 var sfEls = document.getElementsByTagName("TEXTAREA");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onfocus=function() {
   this.className+=" sffocus";
 }
  sfEls[i].onblur=function() {
   this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
  }
 }
}
if (window.attachEvent) window.attachEvent("onload", sfFocus);
