Copy code code as follows:
Function Checks (T) {
szmsg = "[#_%& '/",:: =!^] ";
alertstr = "";
for (i = 1; I <szmsg.Length+1; i ++) {
if (t.indexof (szmsg.substring (i-1, i))>-1) {{
alertstr = "Do not include illegal characters such as [#_%& '/",;: =!^] "
Break;
}
}
if (alertstr! = "") {{
alert (alertstr);
Return false;
}
Return true;
}