module HelpPopups module ApplicationHelper def help_popup(topic_code) @topic = Topic.where(:code => topic_code).first return_html = "
" return_html = return_html + image_tag("help_popup.gif", :title => @topic.title, :style => "cursor:pointer", :onclick => "document.getElementById(\"help_popup_" + topic_code + "\").style.display=\"inline\";") return_html.html_safe end end end