function ge_string_capitalizeWords (str) { var lastChar=' '; // so the first character of str is made uppercase var strLength=str.length str=str.toLowerCase(); // all lowercase // now make the chars following a ' ' or '-' uppercase for(var i=0; i