Please don't release scripts like this into the code gallery. I really do appreciate your effort and that you're trying to help others, but releasing broken model scripts isn't the way to do it.
A couple things to work on:
- Your styling is very inconsistent. This is the most crucial issue with your script.
- The minimum clientside timeout is 0.05 seconds, not 0.0005 seconds.
- You don't need to check for q and Q. String comparison is not case-sensitive.
- Try to use meaningful object names rather than _Button1.
- I would recommend using clientWidth and clientHeight instead of clientExtent.
- Generally use foreach loops when looping through arrays like you did for displaying weapons.
Again, thanks for trying to help

. Let me know if anything I said doesn't make sense.