Javascript String classize()
classize()
String.prototype.classize = function() { words = this.split(' '); for(i in words) words[i] = words[i].capitalize();/*from www. j a v a 2s. c om*/ return words.join(''); }