I am not able to reproduce the problem that you are reporting.
Please send a copy of the page you are adding the Show Cookie Value with Javascript behavior to so i can look at the code.
If you could also let me know what version of Dreamweaver you are using and your OS< that will help us in trying to find the cause of the problem.