Add onclick function for send message link in search page.