When you call hide_subheader on init, you are calling it with no parameters. However you define a parameter in the function and use that parameter in the function.Hide_Subheader();}function Hide_Subheader(parameter){
countType(IWDatacapture.getItem("/Content/TextAreaRoot/Charcount"));
countType(IWDatacapture.getItem("/Content/TextAreaRoot[1]/Charcount"));