This javascript cut & paste code snippet prevents the user from selecting a filename with a space (known to cause problems with some CGI-scripts). The visitors are informed that the field is not allowed to have spaces. You may change the character it checks for as well as the invalid alert message to something else to suit your needs.
Insert this code into your HEAD of HTML
Insert this code into your BODY section
Simply Cut and Paste Script code
Be sure to properly place script position in
HEAD & BODY sections of html
This script has been in the DesignerWiz.com Public Library.