var elem=document.getElementById('cp_id_387'); elem.addEventListener("click", function() { getAvtoList(this); }); elem.dispatchEvent(new Event('click'));