var re = /^[a-zA-Z0-9]*$/
if (re.test(stringa))
...
cmq la sezione giusta č scripting