
dojo.declare('ReportAbuse',MessagePop,{constructor:function(){this.onLoadHandle=false;},clearDefaultText:function(){if(this.textArea.style.color=='gray'){this.textArea.style.color='#333';this.textArea.innerHTML='';}},handleValidationErrors:function(errors){var errorText;for(var i=0;i<errors.length;i++){errorText=('*'+errors[i]+'<br />');};this.errorsNode.innerHTML=errorText;this.submitButton.setAttribute('src','/img/buttons/btn_send_alert.gif?v=1');this.waitingMsg.style.display='none';},updateToggler:function(){dojo.addClass(this.toggler,'flagged');dojo.query('span',this.toggler.parentNode)[0].innerHTML='Reported'}});dojo.addOnLoad(function(){window.reportAbuse=[];var allAnchors=dojo.query('.reportAbuse').forEach(function(item,index,array){reportAbuse.push(new ReportAbuse(item,true,false));});});