Javascript Character input restriction script, with length limiter.

Eg: <input type="text" onkeypress="return inputLimiter(event,'Numbers', this.value)" />