var rpPel = null; var Commentarea = null; function $s(){ if(arguments.length == 1) return get$(arguments[0]); var elements = []; $c(arguments).each(function(el){elements.push(get$(el));}); return elements; } function get$(el){ if(typeof el == 'string') el = document.getElementById(el); return el; } function $c(array){ var nArray = []; for (i=0;el=array[i];i++) nArray.push(el); return nArray; } function commentarea(){ var fi = $s(commentformid).getElementsByTagName('textarea'); for(var i=0; i@' + author + ', '; } cfm.style.display = "block"; }else{ replyId.value = "0"; if(dpId) dpId.value = "0"; reRootElement.style.display = "none"; var c = $s("cfmguid"); if(c){ cfm.parentNode.removeChild(cfm); c.parentNode.insertBefore(cfm,c); } if(parseInt(dp) && Commentarea && Commentarea.display != "none"){ Commentarea.focus(); //Commentarea.value = ''; } } return true; }