     	$("#" + pensionExpenses).val("")
   $("#pensionExpenses").slideUp(0, emptyPensionExpenses).attr 'aria-hidden', 'true', ->
 
-showHaveExpensesForJob = ->
+showHaveExpensesForJob = (jobExpenses) ->
+  $("#" + jobExpenses).trigger("blur")
   $("#jobExpenses").slideDown(0).attr 'aria-hidden', 'false'
 
 hideExpensesForJob = (jobExpenses) ->

window.initEvents =(payPensionSchemeY, payPensionSchemeN, pensionExpenses,
                    haveExpensesForJobY, haveExpensesForJobN, jobExpenses) ->

  if not $("#" + payPensionSchemeY).prop('checked')
    hidePensionExpenses(pensionExpenses)

  $("#" + payPensionSchemeY).on "click", ->
    showPensionExpenses()

  $("#" + payPensionSchemeN).on "click", ->
    hidePensionExpenses(pensionExpenses)

    hideExpensesForJob(jobExpenses)

  $("#" + haveExpensesForJobY).on "click", ->
    showHaveExpensesForJob(jobExpenses)

  $("#" + haveExpensesForJobN).on "click", ->
    hideExpensesForJob(jobExpenses)


showPensionExpenses = (pensionExpenses) ->
  $("#" + pensionExpenses).trigger("blur")
  $("#pensionExpenses").slideDown(0).attr 'aria-hidden', 'false'

hidePensionExpenses = (pensionExpenses) ->
