1) { return true; } else { // Simple is word-characters + {# . ~} return !names[0].match(/^[\w\x23.~]*$/); } } ?>