           when "fourweekly" then o.usuallyPaidSameAmountFourWeeklyText
           when "monthly" then o.usuallyPaidSameAmountMonthlyText
           else o.usuallyPaidSameAmountOtherText
-
         legend(o.usuallyPaidSameAmount).html(textToUse)
 
       checked(o.usuallyPaidSameAmountY, false)


window.payDay = (o) ->
  S(o.howOftenFrequency).change ->
    if visible("#usuallyPaidSameAmountWrap")
      S("usuallyPaidSameAmountWrap").slideUp 0, ->
        checked(o.usuallyPaidSameAmountY,false)
        checked(o.usuallyPaidSameAmountN,false)

    S("monthlyPayDayWrap").slideUp 0, -> val(o.monthlyPayDay,"") if visible("#monthlyPayDayWrap")

    if val(o.howOftenFrequency) is o.defaultValue or val(o.howOftenFrequency) is ""
    else
      if checked(o.beenPaidYetN)
        textToUse = switch (val(o.howOftenFrequency))
          when "weekly" then o.usuallyPaidSameAmountWeeklyTextExpected

          when "fourweekly" then o.usuallyPaidSameAmountFourWeeklyTextExpected
          when "monthly" then o.usuallyPaidSameAmountMonthlyTextExpected
          else o.usuallyPaidSameAmountOtherTextExpected
        legend(o.usuallyPaidSameAmount).html(textToUse)
          
      if checked(o.beenPaidYetY)
        textToUse = switch (val(o.howOftenFrequency))
