id_prefix = "#{@commentable}_" + params["#{@commentable}_id"] if session["#{@commentable}_new_comment"] page["#{id_prefix}_ask"].hide page["#{id_prefix}_post"].show page["#{id_prefix}_comment_comment"].focus else page["#{id_prefix}_post"].hide page["#{id_prefix}_ask"].show end