 window.initEvents =(payPensionSchemeY, payPensionSchemeN, pensionExpenses,
                     haveExpensesForJobY, haveExpensesForJobN, jobExpenses) ->
+  $("#" + pensionExpenses).trigger("blur")
+  $("#" + jobExpenses).trigger("blur")
 
   if not $("#" + payPensionSchemeY).prop('checked')
     hidePensionExpenses(pensionExpenses)
 
   $("#" + payPensionSchemeY).on "click", ->
-    showPensionExpenses()
+    showPensionExpenses(pensionExpenses)
 
   $("#" + payPensionSchemeN).on "click", ->
     hidePensionExpenses(pensionExpenses)

    hideExpensesForJob(jobExpenses)

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

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


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

hidePensionExpenses = (pensionExpenses) ->

    	$("#" + pensionExpenses).val("")
  $("#pensionExpenses").slideUp(0, emptyPensionExpenses).attr 'aria-hidden', 'true', ->

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

hideExpensesForJob = (jobExpenses) ->
