Change from using link_to_popup_window to helpmenow_link_to_popup - new chat windows may open in new tabs instead of forcing new window, as defined by your browser. Also updated alert code to simplify logic