var reportButton = new Class({	    initialize: function(){		$$('a.reportButton').addEvent('click', function(event){			event = new Event(event).stop();						link = event.target;						reason = prompt(Translations.reportcomment);						new Ajax(link.getAttribute('href'), {				data: { reason: reason },				method: 'post',				onRequest: function(){					link.appendText(' loading ...');				}.bind(this),				onComplete: function(r){					response = Json.evaluate(r);					if (response.success == true && response.sent > 0)					{						link.replaceWith(new Element('strong')).setText(Translations.reported);					}					else					{						alert('The request was not successfully sent, please try again!');						}				}			}).request();		});    }}); fireOn = Window.ie ? 'load' : 'domready';window.addEvent(fireOn, function(){	new reportButton;});