Don't ask me why, but you've got to pass your regular _expression_ between slashes, not quotes: try
UpdprojStart = UpdprojStart.replace(/[\s]*/, "-");
One more stupidities of the pedantic "object orientation" of _javascript_ ;-))
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

