window.addEvent('domready',function(){ $('addImage').addEvent('click',function(a){ alert($type(a)); return false; }); });