Auto replaces spaces with underscores in case property fields

Addresses this ticket: http://manage.dimagi.com/default.asp?122825#701898

Auto replaces spaces with underscores in case property fields of the save/load case management sections. It might be better if the javascript function I wrote here wasn't in the template, but I'm not sure where exactly is best. Any guidelines @biyeun ?