   )
   
   getFieldToConfirm= (fieldConfirmation) ->
-    fieldToConfirmName= fieldConfirmation.name.substring(0,(fieldConfirmation.name.length-13))
+    fieldToConfirmName= fieldConfirmation.name.substring(0,(fieldConfirmation.name.length-14)) + ']'
     fieldToConfirmNameSelector=getFieldNameSelector(fieldToConfirmName)
     
     jQuery(fieldToConfirmNameSelector)

      true
  )
  
  jQuery('[name$="_confirmation"]').blur(->
    fieldToConfirm=getFieldToConfirm(@)
    isValid=true
    

jQuery ->
  # confirmation
  jQuery.validator.addMethod("confirmation", (value,element,params) ->
    fieldConfirmationName=element.name.substring(0,(element.name.length-1)) + '_confirmation]'
    fieldConfirmationNameSelector = getFieldNameSelector(fieldConfirmationName)
    fieldConfirmation=jQuery(fieldConfirmationNameSelector)[0]
    
    if fieldConfirmation.value isnt ""
