Note!
If you want to use this validation in any other text inputs just add the following attribute to the <input> tag of said text input.
HTML Code:
onkeydown="caps(this.value);"
e.g. To check when giving a rep comment.
Find in reputation bit:
Code:
<input type="text" class="bginput" size="40" maxlength="250" name="reason" id="reason_$postid"/>
Add in the event:
Code:
<input type="text" class="bginput" size="40" maxlength="250" name="reason" id="reason_$postid" onkeydown="caps(this.value);" />
________________
Also, do not try to move the script include to the <head>, the object will throw an error.