I have several if statements that manipulate a form on an ecommerce site. There are two links that specify the situations I am in.

Link: http://www.hickorylax.com/detail.cfm?pid=1
Note: The addbranding2_yn checkbox is not defined on this product
Situation: Click both boxes (shield pro and branding) and try to submit the form, it correctly throws an error saying you can't do that. However, try to enter illegal characters (!, / etc) and it won't throw an alert as it is supposed to. It is not processing the for loop to validate special characters. If statements in the function validatechars() are not processed.

Link: http://www.hickorylax.com/detail.cfm?pid=28
Note: The addshield_yn checkbox is not shown or defined on this product
Situation: Click the first branding box and type in illegal characters and it won't throw an error. Click the checkboxes and leave textboxes blank and it wont throw an error (it is supposed to). If statements in the function validatechars() are not processed.

Your help is appreciated.