def posted_values(param)
    
      if param.kind_of?(Hash) and param.has_key?('year') and param.has_key?('month')
        year = param['year']
        month = param['month']
        if month.blank? or year.blank?
          values = ''
        else
          values = [Date.new(year.to_i, month.to_i, 1).strftime('%m/%d/%Y')]  # for mm/yy drop downs
        end
      elsif param.kind_of?(Hash)
        # from Hash with multiple answers per question
        values = param.values.map {|v| CGI.unescape(v)}
      elsif param.kind_of?(String)
        values = [CGI.unescape(param)]
      end
    
      # Hash may contain empty string to force post for no checkboxes
  #    values = values.reject {|r| r == ''}
    end
def posted_values(param)
    
      if param.kind_of?(Hash) and param.has_key?('year') and param.has_key?('month')
        year = param['year']
        month = param['month']
        if month.blank? or year.blank?
          values = ''
        else
          values = [Date.new(year.to_i, month.to_i, 1).strftime('%m/%d/%Y')]  # for mm/yy drop downs
        end
      elsif param.kind_of?(Hash)
        # from Hash with multiple answers per question
        values = param.values.map {|v| CGI.unescape(v)}
      elsif param.kind_of?(String)
        values = [CGI.unescape(param)]
      end
    
      # Hash may contain empty string to force post for no checkboxes
  #    values = values.reject {|r| r == ''}
    end
convert posted response to a question into Array of values