     S(o.whatDatePaid + "_alternativeDateContextualHelp").css('display', "block")
 
 hideBeenPaid = (ctx,reset,hideFunction) ->
-  S("beenPaidYetWrap").slideUp(0).attr 'aria-hidden', 'true', -> hideFunction(ctx,reset)
-  S("usuallyPaidSameAmountWrap").slideUp(0).attr 'aria-hidden', 'true'
-  S("monthlyPayDayWrap").slideUp(0).attr 'aria-hidden', 'true'
-  S("beenPaidYetWrap").slideDown(0).attr 'aria-hidden', 'false'
+  S("beenPaidYetWrap").slideUp 0, -> hideFunction(ctx,reset)
+  S("usuallyPaidSameAmountWrap").slideUp 0
+  S("monthlyPayDayWrap").slideUp 0
+  S("beenPaidYetWrap").slideDown 0
   if not (val(ctx.howOften) is "Other")
     S("howOften_wrap").slideUp(0, -> (val ctx.howOftenFrequencyOther, "") if reset)
 

#
window.whatCosts = (careCostsForThisWorkY, careCostsForThisWorkN, whatCosts) ->
  if not checked(careCostsForThisWorkY)
    S("whatCostsWrap").slideUp(0).attr 'aria-hidden', 'true', -> val(whatCosts,"")

  S(careCostsForThisWorkY).on "click", -> S("whatCostsWrap").slideDown(0).attr 'aria-hidden', 'false'

  S(careCostsForThisWorkN).on "click", -> S("whatCostsWrap").slideUp(0).attr 'aria-hidden', 'true', -> val(whatCosts,"")

onHowOftenFrequency = (ctx,reset) -> #Double -> because it's a function returning a function, which the jQuqery .on function will receive.
  ->                           #The first function exists so the returned function has the "context" variable in scope
    if visible("usuallyPaidSameAmountWrap")
      S("usuallyPaidSameAmountWrap").slideUp 0, ->
        checked(ctx.usuallyPaidSameAmountY,false) if reset
        checked(ctx.usuallyPaidSameAmountN,false) if reset

    S("monthlyPayDayWrap").slideUp 0, -> val(ctx.monthlyPayDay,"") if visible("monthlyPayDayWrap") and reset

    if not (val(ctx.howOftenFrequency) is ctx.defaultValue or val(ctx.howOftenFrequency) is "")
      if checked(ctx.beenPaidYetN)
