+function toTitleCase(str)
+{\r
+ return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});\r
+}
+
+function fieldNameToHumanReadable(str)
+{
+ str = str.replace("_", " ");
+ return toTitleCase(str);
+}
+